rake_system

rake_system(*cmd) Class Public methods Run a command line on windows.

parse_attr

parse_attr(context, single, tk, comment) Instance Public methods Creates an RDoc::Attr for the name following tk, setting the comment to comment.

round

int.round([ndigits]) â integer or float Instance Public methods Rounds flt to a given precision in decimal digits (default 0 digits). Precision may be negative. Returns a floating point number when ndigits is positive, self for zero, and round down for negative. 1.round #=> 1 1.round(2) #=> 1.0 15.round(-1) #=> 20

do_struct_define_without_accessor

do_struct_define_without_accessor() Instance Public methods Scans content for struct_define_without_accessor

to_s

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

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