to_s

to_s() Instance Public methods Also aliased as: string, to_str

do_struct_define_without_accessor

do_struct_define_without_accessor() Instance Public methods Scans content for struct_define_without_accessor

class_variables

mod.class_variables(inherit=true) â array Instance Public methods Returns an array of the names of class variables in mod. This includes the names of class variables in any included modules, unless the inherit parameter is set to false. class One @@var1 = 1 end class Two < One @@var2 = 2 end One.class_variables #=> [:@@var1] Two.class_variables #=> [:@@var2, :@@var1] Two.class_variables(false) #=> [:@@var2]

&lt;=&gt;

stat other_stat â -1, 0, 1, nil Instance Public methods Compares File::Stat objects by comparing their respective modification times. nil is returned if the two values are incomparable. f1 = File.new("f1", "w") sleep 1 f2 = File.new("f2", "w") f1.stat <=> f2.stat #=> -1

to_partial_path

to_partial_path() Instance Public methods Returns a string identifying the path associated with the object. ActionPack uses this to find a suitable partial to represent the object. class Person include ActiveModel::Conversion end person = Person.new person.to_partial_path # => "people/person"

write

write(key, value) Instance Public methods

insert

insert(pos,text) Instance Public methods

eql?

eql?(resolver) Instance Public methods Also aliased as: ==

define_model_callbacks

define_model_callbacks(*callbacks) Instance Public methods #define_model_callbacks accepts the same options define_callbacks does, in case you want to overwrite a default. Besides that, it also accepts an :only option, where you can choose if you want all types (before, around or after) or just some. define_model_callbacks :initializer, only: :after Note, the only: <type> hash will apply to all callbacks defined on that method call. To get around this you can call the #defin

run 2

run() Instance Public methods Looks up and displays ri data according to the options given.