fnmatch?

File.fnmatch?( pattern, path, [flags] ) â (true or false) Class Public methods Returns true if path matches against pattern The pattern is not a regular expression; instead it follows rules similar to shell filename globbing. It may contain the following metacharacters: * Matches any file. Can be restricted by other values in the glob. * will match all files; c* will match all files beginning with c; *c will match all files ending with c; and *c* will match all files that have c

add

add(attribute, message = :invalid, options = {}) Instance Public methods Adds message to the error messages on attribute. More than one error can be added to the same attribute. If no message is supplied, :invalid is assumed. person.errors.add(:name) # => ["is invalid"] person.errors.add(:name, 'must be implemented') # => ["is invalid", "must be implemented"] person.errors.messages # => {:name=>["must be implemented", "is invalid"]} If message is a symbol, it will be

package_name

package_name() Class Public methods

preload

preload(*args) Instance Public methods Allows preloading of args, in the same way that includes does: User.preload(:posts) => SELECT "posts".* FROM "posts" WHERE "posts"."user_id" IN (1, 2, 3)

add_file_digest

add_file_digest(name, mode, digest_algorithms) Instance Public methods Adds name with permissions mode to the tar, yielding io for writing the file. The digest_algorithm is written to a read-only name.sum file following the given file contents containing the digest name and hexdigest separated by a tab. The created digest object is returned.

ancestor?

ancestor?(des) Instance Public methods Alias for: isancestor

_invoke

_invoke(*args) Class Public methods

invoke

invoke(idx=nil) Instance Public methods

hash

flt.hash â integer Instance Public methods Returns a hash code for this float.

sql_query_length

sql_query_length() Instance Public methods Returns the maximum length of an SQL query.