find_index

ary.index(obj) â int or nilary.index { |item| block } â int or nilary.index â Enumerator Instance Public methods Returns the index of the first object in ary such that the object is == to obj. If a block is given instead of an argument, returns the index of the first object for which the block returns true. Returns nil if no match is found. See also #rindex. An Enumerator is returned if neither a block nor argument is given. a = [ "a", "b", "c" ] a

text=

text=(arg0) Instance Public methods VOID text text content of the node and subtree

div

fix.div(numeric) â integer Instance Public methods Performs integer division: returns integer value.

try_convert

IO.try_convert(obj) â io or nil Class Public methods Try to convert obj into an IO, using #to_io method. Returns converted IO or nil if obj cannot be converted for any reason. IO.try_convert(STDOUT) #=> STDOUT IO.try_convert("STDOUT") #=> nil require 'zlib' f = open("/tmp/zz.gz") #=> #<File:/tmp/zz.gz> z = Zlib::GzipReader.open(f) #=> #<Zlib::GzipReader:0x81d8744> IO.try_convert(z) #=> #<File:/tmp/zz.gz>

new

Cipher.new(string) â cipher Class Public methods The string must contain a valid cipher name like âAES-128-CBCâ or â3DESâ. A list of cipher names is available by calling ::ciphers.

get_option

get_option() Instance Public methods `get_option' is an alias of `get'. get

id_before_type_cast

id_before_type_cast() Instance Public methods Returns the primary key value before type cast.

stats

stats() Instance Public methods Get the statistics from the memcached servers.

def_class_accessor

def_class_accessor(klass, name, type, *args) Instance Public methods

ask_for_password

ask_for_password(question) Instance Public methods Ask for a password. Does not echo response to terminal.