readline

readline(eol=$/) Instance Public methods Reads a line from the stream which is separated by eol. Raises EOFError if at end of file.

sanitize_sql_array

sanitize_sql_array(ary) Instance Protected methods Accepts an array of conditions. The array has each value sanitized and interpolated into the SQL statement. ["name='%s' and group_id='%s'", "foo'bar", 4] returns "name='foo''bar' and group_id='4'"

runtime=

runtime=(value) Class Public methods

each_codepoint

str.each_codepoint {|integer| block } â strstr.each_codepoint â an_enumerator Instance Public methods Passes the Integer ordinal of each character in str, also known as a codepoint when applied to Unicode strings to the given block. If no block is given, an enumerator is returned instead. "hello\u0639".each_codepoint {|c| print c, ' ' } produces: 104 101 108 108 111 1593

item_create

item_create(keys={}) Instance Public methods

itembind

itembind(tag, context, *args) Instance Public methods def itembind(tag, context, cmd=Proc.new, *args) _bind([path, "bind", tagid(tag)], context, cmd, *args) self end

strip

str.strip â new_str Instance Public methods Returns a copy of str with leading and trailing whitespace removed. " hello ".strip #=> "hello" "\tgoodbye\r\n".strip #=> "goodbye"

sign

pkey.sign(digest, data) â String Instance Public methods To sign the String data, digest, an instance of OpenSSL::Digest, must be provided. The return value is again a String containing the signature. A PKeyError is raised should errors occur. Any previous state of the Digest instance is irrelevant to the signature outcome, the digest instance is reset to its initial state during the operation. Example data = 'Sign me!' digest = OpenSSL::Digest::SHA256.new pkey = OpenSSL::PKey::RS

time_zone_options_for_select

time_zone_options_for_select(selected = nil, priority_zones = nil, model = ::ActiveSupport::TimeZone) Instance Public methods Returns a string of option tags for pretty much any time zone in the world. Supply a ActiveSupport::TimeZone name as selected to have it marked as the selected option tag. You can also supply an array of ActiveSupport::TimeZone objects as priority_zones, so that they will be listed above the rest of the (long) list. (You can use ActiveSupport::TimeZone.us_zo

fetch

fetch(set, attr) Instance Public methods Sends a FETCH command to retrieve data associated with a message in the mailbox. The set parameter is a number or an array of numbers or a Range object. The number is a message sequence number. attr is a list of attributes to fetch; see the documentation for Net::IMAP::FetchData for a list of valid attributes. The return value is an array of Net::IMAP::FetchData. For example: p imap.fetch(6..8, "UID") #=> [#<Net::IMAP::FetchData seqno