class Object
Public Instance Methods
Source
# File comxxx.rb, line 302 def include?(val) end
returns true if the given val is present
Source
# File comxxx.rb, line 308 def index(val) end
returns the index of the item which equals to val. If no item found, returns nil
# File comxxx.rb, line 313 def indexes(index_1,..., index_n) end
returns an array consisting of elements at the given indices
# File comxxx.rb, line 318 def indices(index_1,..., index_n) end
returns an array consisting of elements at the given indices
Source
# File comxxx.rb, line 323 def join([sep]) end
returns a string created by converting each element to a string
Source
# File comxxx.rb, line 328 def length end
return the number of elements of the db file
Source
# File comxxx.rb, line 336 def nitems end
return the number of non-nil elements of the db file
Source
# File comxxx.rb, line 351 def replace(other) end
replaces the contents of the db file with the contents of other
Source
# File comxxx.rb, line 356 def reverse end
returns the array of the items in reverse order
Source
# File comxxx.rb, line 366 def reverse_each yield x end
iterate over each item in reverse order
Source
# File comxxx.rb, line 372 def rindex(val) end
returns the index of the last item which verify item == val
Source
# File comxxx.rb, line 390 def unshift(obj) end
insert obj to the front of the db file