db_dir

db_dir() Instance Public methods

is_ca?

is_ca?(cert) Instance Public methods

test

test(cmd, file1 [, file2] ) â obj Instance Public methods Uses the integer cmd to perform various tests on file1 (first table below) or on file1 and file2 (second table). File tests on a single file: Cmd Returns Meaning "A" | Time | Last access time for file1 "b" | boolean | True if file1 is a block device "c" | boolean | True if file1 is a character device "C" | Time | Last change time for file1 "d" | boolean | True if file1 exists and is a directory "e" | boolea

sort_descending

sort_descending() Instance Public methods

substitute_at

substitute_at(column, index) Instance Public methods Returns a bind substitution value given a bind index and column NOTE: The column param is currently being used by the sqlserver-adapter

check_key

check_key(signer, key) Instance Public methods Ensures the public key of key matches the public key in signer

peeraddr

ipsocket.peeraddr([reverse_lookup]) => [address_family, port, hostname, numeric_address] Instance Public methods Returns the remote address as an array which contains address_family, port, hostname and numeric_address. It is defined for connection oriented socket such as TCPSocket. If reverse_lookup is true or :hostname, hostname is obtained from numeric_address using reverse lookup. Or if it is false, or :numeric, hostname is same as numeric_address. Or if it is nil or ommitte

identical?

identical?(a, b) Class Public methods Alias for: compare_file

write

IO.write(name, string, [offset] ) => fixnumIO.write(name, string, [offset], open_args ) => fixnum Class Public methods Opens the file, optionally seeks to the given offset, writes string, then returns the length written. write ensures the file is closed before returning. If offset is not given, the file is truncated. Otherwise, it is not truncated. If the last argument is a hash, it specifies option for internal open(). The key would be the following. open_args: is ex

select

select(sql, name = nil, binds = []) Instance Protected methods Returns an ActiveRecord::Result instance.