to_s

to_s() Class Public methods Also aliased as: inspect

reverse_merge

reverse_merge(other_hash) Instance Public methods Like merge but the other way around: Merges the receiver into the argument and returns a new hash with indifferent access as result: hash = ActiveSupport::HashWithIndifferentAccess.new hash['a'] = nil hash.reverse_merge(a: 0, b: 1) # => {"a"=>nil, "b"=>1}

package_name

package_name() Class Public methods

removeChild

removeChild(arg0) Instance Public methods IXMLDOMNode removeChild remove a child node IXMLDOMNode arg0 --- childNode [IN]

open

PTY.open => [master_io, slave_file]PTY.open {|master_io, slave_file| ... } => block value Class Public methods Allocates a pty (pseudo-terminal). In the block form, yields two arguments master_io, slave_file and the value of the block is returned from open. The IO and File are both closed after the block completes if they haven't been already closed. PTY.open {|master, slave| p master #=> #<IO:masterpty:/dev/pts/1> p slave #=> #<File:/dev/pts/1&g

getpty

PTY.spawn(command_line) { |r, w, pid| ... }PTY.spawn(command_line) => [r, w, pid]PTY.spawn(command, arguments, ...) { |r, w, pid| ... }PTY.spawn(command, arguments, ...) => [r, w, pid] Class Public methods Spawns the specified command on a newly allocated pty. You can also use the alias ::getpty. The command's controlling tty is set to the slave device of the pty and its standard input/output/error is redirected to the slave device. command and command_line are the full

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"