degree

degree(node) Instance Public methods

inspect

mtch.inspect â str Instance Public methods Returns a printable version of mtch. puts /.$/.match("foo").inspect #=> #<MatchData "o"> puts /(.)(.)(.)/.match("foo").inspect #=> #<MatchData "foo" 1:"f" 2:"o" 3:"o"> puts /(.)(.)?(.)/.match("fo").inspect #=> #<MatchData "fo" 1:"f" 2:nil 3:"o"> puts /(?<foo>.)(?<bar>.)(?<baz>.)/.match("hoge").inspect #=> #<MatchData "hog" foo:"h" bar:"o" baz:"g">

id

id() Instance Public methods Returns the primary key value.

input_end

input_end(win) Class Public methods

&lt;&lt;

<<(child) Instance Public methods

rectangular

Complex.rectangular(real[, imag]) â complex Class Public methods Returns a complex object which denotes the given rectangular form. Complex.rectangular(1, 2) #=> (1+2i)

_proc_on_safelevel 2

_proc_on_safelevel(cmd=nil) Instance Public methods instance & class method

create

create(attributes = nil, &block) Instance Public methods Creates an object (or multiple objects) and saves it to the database, if validations pass. The resulting object is returned whether the object was saved successfully to the database or not. The attributes parameter can be either a Hash or an Array of Hashes. These Hashes describe the attributes on the objects that are to be created. Examples # Create a single new object User.create(first_name: 'Jamie') # Create an Array

digest!

digest_obj.digest! â string Instance Public methods Returns the resulting hash value and resets the digest to the initial state.

begin

mtch.begin(n) â integer Instance Public methods Returns the offset of the start of the nth element of the match array in the string. n can be a string or symbol to reference a named capture. m = /(.)(.)(\d+)(\d)/.match("THX1138.") m.begin(0) #=> 1 m.begin(2) #=> 2 m = /(?<foo>.)(.)(?<bar>.)/.match("hoge") p m.begin(:foo) #=> 0 p m.begin(:bar) #=> 2