is_missing?

is_missing?(location) Instance Public methods

name

WIN32OLE_TYPE#name #=> OLE type name Instance Public methods Returns OLE type name. tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Application') puts tobj.name # => Application to_s

demodulize

demodulize() Instance Public methods Removes the module part from the constant expression in the string. 'ActiveRecord::CoreExtensions::String::Inflections'.demodulize # => "Inflections" 'Inflections'.demodulize # => "Inflections" See also deconstantize.

build

build(attributes = {}, &block) Instance Public methods Returns a new object of the collection type that has been instantiated with attributes and linked to this object, but have not yet been saved. You can pass an array of attributes hashes, this will return an array with the new objects. class Person has_many :pets end person.pets.build # => #<Pet id: nil, name: nil, person_id: 1> person.pets.build(name: 'Fancy-Fancy') # => #<Pet id: nil, name: "Fancy-Fancy"

sort

ary.sort â new_aryary.sort { |a, b| block } â new_ary Instance Public methods Returns a new array created by sorting self. Comparisons for the sort will be done using the <=> operator or using an optional code block. The block must implement a comparison between a and b, and return -1, when a follows b, 0 when a and b are equivalent, or +1 if b follows a. See also Enumerable#sort_by. a = [ "d", "a", "e", "c", "b" ] a.sort #=> ["a", "b

axis_limits

axis_limits(id) Instance Public methods

rindex

str.rindex(substring [, fixnum]) â fixnum or nilstr.rindex(regexp [, fixnum]) â fixnum or nil Instance Public methods Returns the index of the last occurrence of the given substring or pattern (regexp) in str. Returns nil if not found. If the second parameter is present, it specifies the position in the string to end the searchâcharacters beyond this point will not be considered. "hello".rindex('e') #=> 1 "hello".rindex('l') #=> 3 "hello".rindex('

each_pair

each_pair() Instance Public methods Calls the given block once for each key, value pair in the database. Returns self. each

execute

execute() Instance Public methods

multiple_of?

multiple_of?(number) Instance Public methods Check whether the integer is evenly divisible by the argument. 0.multiple_of?(0) # => true 6.multiple_of?(5) # => false 10.multiple_of?(2) # => true