shift

shift() Instance Public methods The primary read method for wrapped Strings and IOs, a single row is pulled from the data source, parsed and returned as an Array of fields (if header rows are not used) or a CSV::Row (when header rows are used). The data source must be open for reading. gets readline

skip_until

skip_until(pattern) Instance Public methods Advances the scan pointer until pattern is matched and consumed. Returns the number of bytes advanced, or nil if no match was found. Look ahead to match pattern, and advance the scan pointer to the end of the match. Return the number of characters advanced, or nil if the match was unsuccessful. It's similar to scan_until, but without returning the intervening string. s = StringScanner.new("Fri Dec 12 1975 14:39") s.skip_until /12/

def_e2message 2

def_e2message(c, m) Instance Public methods #def_e2message(c, m) c: exception m: message_form define exception c with message m.

downcase

str.downcase â new_str Instance Public methods Returns a copy of str with all uppercase letters replaced with their lowercase counterparts. The operation is locale insensitiveâonly characters âA'' to âZ'' are affected. Note: case replacement is effective only in ASCII region. "hEllO".downcase #=> "hello"

clear

clear() Instance Public methods

delete

delete() Instance Public methods Deletes the record in the database and freezes this instance to reflect that no changes should be made (since they can't be persisted). Returns the frozen instance. The row is simply removed with an SQL DELETE statement on the record's primary key, and no callbacks are executed. To enforce the object's before_destroy and after_destroy callbacks or any :dependent association options, use #destroy.

ruby_version

ruby_version() Class Public methods A Gem::Version for the currently running ruby.

look_for_directives_in

look_for_directives_in(context, comment) Instance Public methods Look for directives in a normal comment block: * :title: My Awesome Project This method modifies the comment

to_r

str.to_r â rational Instance Public methods Returns a rational which denotes the string form. The parser ignores leading whitespaces and trailing garbage. Any digit sequences can be separated by an underscore. Returns zero for null or garbage string. NOTE: '0.3'.to_r isn't the same as 0.3.to_r. The former is equivalent to '3/10'.to_r, but the latter isn't so. ' 2 '.to_r #=> (2/1) '300/2'.to_r #=> (150/1) '-9.2'.to_r #=> (-46/5) '-9.2e2'.to_r

no_color!

no_color!() Class Public methods Remove the color from output.