number_to_human

number_to_human(number, options = {}) Instance Public methods Pretty prints (formats and approximates) a number in a way it is more readable by humans (eg.: 1200000000 becomes â1.2 Billionâ). This is useful for numbers that can get very large (and too hard to read). See number_to_human_size if you want to print a file size. You can also define you own unit-quantifier names if you want to use other decimal units (eg.: 1500 becomes â1.5 kilometersâ, 0.150 becomes â150 millilitersâ, e

getbyte

getbyte() Instance Public methods See Zlib::GzipReader documentation for a description.

configure

configure(*args) Class Public methods def configure(win, *args) if args[-1].kind_of?(Hash) opts = args.pop else opts = {} end params = [] params.push(_epath(win)) args.each{|win| case win when '-', 'x', '^' # RELATIVE PLACEMENT params.push(win) else params.push(_epath(win)) end } opts.each{|k, v| params.push("-#{k}") params.push((v.kind_of?(TkObject))? v.epath: v) } if Tk::TCL_MAJOR_VERSION < 8 || (Tk::TCL_MAJOR_VERSION == 8 && Tk::TCL_MINOR_

content_type

content_type() Instance Public methods returns âtype/subtypeâ which is MIME Content-Type. It is downcased for canonicalization. Content-Type parameters are stripped.

fetch

fetch(key, *extras) Instance Public methods Same as Hash#fetch where the key passed as argument can be either a string or a symbol: counters = ActiveSupport::HashWithIndifferentAccess.new counters[:foo] = 1 counters.fetch('foo') # => 1 counters.fetch(:bar, 0) # => 0 counters.fetch(:bar) { |key| 0 } # => 0 counters.fetch(:zoo) # => KeyError: key not found: "zoo"

cipher

ssl.cipher => [name, version, bits, alg_bits] Instance Public methods The cipher being used for the current connection

do_not_reverse_lookup 2

basicsocket.do_not_reverse_lookup => true or false Instance Public methods Gets the ::do_not_reverse_lookup flag of basicsocket. TCPSocket.open("www.ruby-lang.org", 80) {|sock| p sock.do_not_reverse_lookup #=> false p sock.peeraddr #=> ["AF_INET", 80, "carbon.ruby-lang.org", "221.186.184.68"] sock.do_not_reverse_lookup = true p sock.peeraddr #=> ["AF_INET", 80, "221.186.184.68", "221.186.184.68"] }

remove_index

remove_index(options = {}) Instance Public methods Removes the given index from the table. Remove the index_table_name_on_column in the table_name table t.remove_index :column Remove the index named index_table_name_on_branch_id in the table_name table t.remove_index column: :branch_id Remove the index named index_table_name_on_branch_id_and_party_id in the table_name table t.remove_index column: [:branch_id, :party_id] Remove the index named by_branch_party in the table_name ta

fetch_multi

fetch_multi(*names) Instance Public methods Fetches data from the cache, using the given keys. If there is data in the cache with the given keys, then that data is returned. Otherwise, the supplied block is called for each key for which there was no data, and the result will be written to the cache and returned. Options are passed to the underlying cache implementation. Returns an array with the data for each of the names. For example: cache.write("bim", "bam") cache.fetch_multi("b

&lt;&lt;

<<(row) Instance Public methods The primary write method for wrapped Strings and IOs, row (an Array or CSV::Row) is converted to CSV and appended to the data source. When a CSV::Row is passed, only the row's fields() are appended to the output. The data source must be open for writing. add_row puts