number_to_human_size

number_to_human_size(number, options = {}) Instance Public methods Formats the bytes in number into a more understandable representation (e.g., giving it 1500 yields 1.5 KB). This method is useful for reporting file sizes to users. You can customize the format in the options hash. See number_to_human if you want to pretty-print a generic number. Options :locale - Sets the locale to be used for formatting (defaults to current locale). :precision - Sets the precision of the number

-

-(v) Instance Public methods Vector subtraction.

message_verifier

message_verifier(verifier_name) Instance Public methods Returns a message verifier object. This verifier can be used to generate and verify signed messages in the application. It is recommended not to use the same verifier for different things, so you can get different verifiers passing the verifier_name argument. Parameters verifier_name - the name of the message verifier. Examples message = Rails.application.message_verifier('sensitive_data').generate('my sensible data') Rails

pbkdf2_hmac_sha1

PKCS5.pbkdf2_hmac_sha1(pass, salt, iter, keylen) => string Class Public methods Parameters pass - string salt - string - should be at least 8 bytes long. iter - integer - should be greater than 1000. 20000 is better. keylen - integer This method is available in almost any version of OpenSSL. Conforms to rfc2898.

delete_namespace

delete_namespace(namespace="xmlns") Instance Public methods Removes a namespace from this node. This only works if the namespace is actually declared in this node. If no argument is passed, deletes the default namespace. Evaluates to: this element doc = Document.new "<a xmlns:foo='bar' xmlns='twiddle'/>" doc.root.delete_namespace puts doc # -> <a xmlns:foo='bar'/> doc.root.delete_namespace 'foo' puts doc # -> <a/>

interactive

interactive() Instance Public methods Runs ri interactively using Readline if it is available.

process_args

process_args(argv) Class Public methods Parses argv and returns a Hash of options

parsed

parsed() Instance Public methods BOOL parsed has sub-tree been completely parsed

label

label(object_name, method, content_or_options = nil, options = nil, &block) Instance Public methods Returns a label tag tailored for labelling an input field for a specified attribute (identified by method) on an object assigned to the template (identified by object). The text of label will default to the attribute name unless a translation is found in the current I18n locale (through helpers.label.<modelname>.<attribute>) or you specify it explicitly. Additional op

inside

inside(x, y) Instance Public methods