module

module() Instance Public methods Attempts to locate the extend module object. Returns the name if not known. The scoping rules of Ruby to resolve the name of an extension module are: first look into the children of the current context; if not found, look into the children of extension modules, in reverse extend order; if still not found, go up the hierarchy of names. This method has O(n!) behavior when the module calling extend is referencing nonexistent modules. Avoid ca

image_alt

image_alt(src) Instance Public methods Returns a string suitable for an html image tag alt attribute. The src argument is meant to be an image file path. The method removes the basename of the file path and the digest, if any. It also removes hyphens and underscores from file names and replaces them with spaces, returning a space-separated, titleized string. Examples image_alt('rails.png') # => Rails image_alt('hyphenated-file-name.png') # => Hyphenated file name image_alt(

nodeTypedValue=

nodeTypedValue=(arg0) Instance Public methods VOID nodeTypedValue get the strongly typed value of the node

new

new(opts = {}) Class Public methods Synopsis URI::Parser.new([opts]) Args The constructor accepts a hash as options for parser. Keys of options are pattern names of URI components and values of options are pattern strings. The constructor generetes set of regexps for parsing URIs. You can use the following keys: * :ESCAPED (URI::PATTERN::ESCAPED in default) * :UNRESERVED (URI::PATTERN::UNRESERVED in default) * :DOMLABEL (URI::PATTERN::DOMLABEL in default) * :TOPLABEL (URI::PATTERN

mutex

mutex() Instance Public methods

failsafe

failsafe(font) Class Public methods

error

error(progname = nil, &block) Instance Public methods Log an ERROR message. See info for more information.

from

from(value, subquery_name = nil) Instance Public methods Specifies table from which the records will be fetched. For example: Topic.select('title').from('posts') # => SELECT title FROM posts Can accept other relation objects. For example: Topic.select('title').from(Topic.approved) # => SELECT title FROM (SELECT * FROM topics WHERE approved = 't') subquery Topic.select('a.title').from(Topic.approved, :a) # => SELECT a.title FROM (SELECT * FROM topics WHERE approved = 't')

readlines

ARGF.readlines(sep=$/) â arrayARGF.readlines(limit) â arrayARGF.readlines(sep, limit) â array Instance Public methods Reads ARGF's current file in its entirety, returning an Array of its lines, one line per element. Lines are assumed to be separated by sep. lines = ARGF.readlines lines[0] #=> "This is line one\n"

clear

clear() Instance Public methods Clear the error messages. person.errors.full_messages # => ["name cannot be nil"] person.errors.clear person.errors.full_messages # => []