create

create(input) Class Public methods REFACTOR: There's no real reason this should be separate from initialize.

<=>

rational numeric â -1, 0, +1 or nil Instance Public methods Performs comparison and returns -1, 0, or +1. nil is returned if the two values are incomparable. Rational(2, 3) <=> Rational(2, 3) #=> 0 Rational(5) <=> 5 #=> 0 Rational(2,3) <=> Rational(1,3) #=> 1 Rational(1,3) <=> 1 #=> -1 Rational(1,3) <=> 0.3 #=> 1

range

range(from=None, to=None) Instance Public methods

readpartial

readpartial(maxlen, buf=nil) Instance Public methods

order

order(*args) Instance Public methods Allows to specify an order attribute: User.order('name') => SELECT "users".* FROM "users" ORDER BY name User.order('name DESC') => SELECT "users".* FROM "users" ORDER BY name DESC User.order('name DESC, email') => SELECT "users".* FROM "users" ORDER BY name DESC, email User.order(:name) => SELECT "users".* FROM "users" ORDER BY "users"."name" ASC User.order(email: :desc) => SELECT "users".* FROM "users" ORDER BY "users"."email

generate_key

generate_key(salt, key_size=64) Instance Public methods Returns a derived key suitable for use. The default key_size is chosen to be compatible with the default settings of ActiveSupport::MessageVerifier. i.e. OpenSSL::Digest::SHA1#block_length

fetch

sdbm.fetch(key) â value or nilsdbm.fetch(key) { |key| ... } Instance Public methods Returns the value in the database associated with the given key string. If a block is provided, the block will be called when there is no value associated with the given key. The key will be passed in as an argument to the block. If no block is provided and no value is associated with the given key, then an IndexError will be raised.

delete_sql

delete_sql(sql, name = nil) Instance Protected methods Executes the delete statement and returns the number of rows affected.

retrbinary

retrbinary(cmd, blocksize, rest_offset = nil) Instance Public methods Puts the connection into binary (image) mode, issues the given command, and fetches the data returned, passing it to the associated block in chunks of blocksize characters. Note that cmd is a server command (such as âRETR myfileâ).

load_schema_if_pending!

load_schema_if_pending!() Class Public methods