puts

ios.puts(obj, ...) â nil Instance Public methods Writes the given objects to ios as with IO#print. Writes a record separator (typically a newline) after any that do not already end with a newline sequence. If called with an array argument, writes each element on a new line. If called without arguments, outputs a single record separator. $stdout.puts("this", "is", "a", "test") produces: this is a test

loop_rest=

loop_rest=(rest) Instance Public methods

each

each() Instance Public methods Yields each row of the data source in turn. Support for Enumerable. The data source must be open for reading.

add_index

add_index(table_name, column_name, options = {}) Instance Public methods Adds a new index to the table. column_name can be a single Symbol, or an Array of Symbols. The index will be named after the table and the column name(s), unless you pass :name as an option. Creating a simple index add_index(:suppliers, :name) generates: CREATE INDEX suppliers_name_index ON suppliers(name) Creating a unique index add_index(:accounts, [:branch_id, :party_id], unique: true) generates: CREATE

_set_variable

_set_variable(p1, p2, p3) Instance Public methods

none

none() Instance Public methods Returns a chainable relation with zero records. The returned relation implements the Null Object pattern. It is an object with defined null behavior and always returns an empty array of records without querying the database. Any subsequent condition chained to the returned relation will continue generating an empty relation and will not fire any query to the database. Used in cases where a method or scope could return zero records but the result needs

set_numeric_element_type

set_numeric_element_type(idxs, val) Instance Public methods

prefix

prefix() Class Public methods

coerce

coerce(oth) Instance Public methods Args v URI or String Description attempt to parse other URI +oth+ return [parsed_oth, self] Usage require 'uri' uri = URI.parse("http://my.example.com") uri.coerce("http://foo.com") #=> [#<URI::HTTP:0x00000000bcb028 URL:http://foo.com/>, #<URI::HTTP:0x00000000d92178 URL:http://my.example.com>]

rfc822 2

rfc822() Instance Public methods Alias for: rfc2822