[]

[]( key ) Instance Public methods Return value associated with key from database. Returns nil if there is no such key.

package_name 2

package_name() Class Public methods

hermitian?

hermitian?() Instance Public methods Returns true is this is an hermitian matrix. Raises an error if matrix is not square.

index_name_exists?

index_name_exists?(table_name, index_name, default) Instance Public methods Verifies the existence of an index with a given name. The default argument is returned if the underlying implementation does not define the indexes method, as there's no way to determine the correct answer in that case.

except

except(*skips) Instance Public methods Removes from the query the condition(s) specified in skips. Post.order('id asc').except(:order) # discards the order condition Post.where('id > 10').order('id asc').except(:where) # discards the where condition but keeps the order

friday?

time.friday? â true or false Instance Public methods Returns true if time represents Friday. t = Time.local(1987, 12, 18) #=> 1987-12-18 00:00:00 -0600 t.friday? #=> true

rstrip

str.rstrip â new_str Instance Public methods Returns a copy of str with trailing whitespace removed. See also String#lstrip and String#strip. " hello ".rstrip #=> " hello" "hello".rstrip #=> "hello"

content_type

content_type() Instance Public methods

valid?

valid?(context = nil) Instance Public methods Runs all the validations within the specified context. Returns true if no errors are found, false otherwise. If the argument is false (default is nil), the context is set to :create if new_record? is true, and to :update if it is not. Validations with no :on option will run no matter the context. Validations with some :on option will only run in the specified context.

cp

cp() Instance Public methods Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY ruby -run -e cp -- [OPTION] SOURCE DEST -p preserve file attributes if possible -r copy recursively -v verbose