not_found

not_found(generator, req, res) Instance Public methods Returns a 404 page built by generator for req on res.

item_count

item_count() Instance Public methods

__create_widget_set__

__create_widget_set__(new_set, src_set={}) Class Public methods

block_length

digest_obj.block_length â integer Instance Public methods Returns the block length of the digest. This method is overridden by each implementation subclass.

number_to_human

number_to_human(number, options = {}) Instance Public methods Pretty prints (formats and approximates) a number in a way it is more readable by humans (eg.: 1200000000 becomes â1.2 Billionâ). This is useful for numbers that can get very large (and too hard to read). See number_to_human_size if you want to print a file size. You can also define you own unit-quantifier names if you want to use other decimal units (eg.: 1500 becomes â1.5 kilometersâ, 0.150 becomes â150 millilitersâ, e

required_attribute?

required_attribute?(name) Class Public methods Is name a required attribute?

to_io

to_io() Instance Public methods

to_mailtext

to_mailtext() Instance Public methods Returns the RFC822 e-mail text equivalent of the URL, as a String. Example: require 'uri' uri = URI.parse("mailto:ruby-list@ruby-lang.org?Subject=subscribe&cc=myaddr") uri.to_mailtext # => "To: ruby-list@ruby-lang.org\nSubject: subscribe\nCc: myaddr\n\n\n" to_rfc822text

build

build(args) Class Public methods Description Create a new URI::LDAP object from components, with syntax checking. The components accepted are host, port, dn, attributes, scope, filter, and extensions. The components should be provided either as an Array, or as a Hash with keys formed by preceding the component names with a colon. If an Array is used, the components must be passed in the order [host, port, dn, attributes, scope, filter, extensions]. Example: newuri = URI::LDAP.build

unescape_element

unescape_element(str) Class Public methods Synonym for ::unescapeElement