load_defaults

load_defaults() Class Public methods Loads the default specifications. It should be called only once.

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.

stylesheet_path

stylesheet_path(source, options = {}) Instance Public methods Computes the path to a stylesheet asset in the public stylesheets directory. If the source filename has no extension, .css will be appended (except for explicit URIs). Full paths from the document root will be passed through. Used internally by stylesheet_link_tag to build the stylesheet path. stylesheet_path "style" # => /stylesheets/style.css stylesheet_path "dir/style.css"

logout

logout() Instance Public methods Sends a LOGOUT command to inform the server that the client is done with the connection.

each_child

each_child(with_directory=true, &b) Instance Public methods Iterates over the children of the directory (files and subdirectories, not recursive). It yields Pathname object for each child. By default, the yielded pathnames will have enough information to access the files. If you set with_directory to false, then the returned pathnames will contain the filename only. Pathname("/usr/local").each_child {|f| p f } #=> #<Pathname:/usr/local/share> # #<Pathname:/usr/loc

count

ary.count â intary.count(obj) â intary.count { |item| block } â int Instance Public methods Returns the number of elements. If an argument is given, counts the number of elements which equal obj using ===. If a block is given, counts the number of elements for which the block returns a true value. ary = [1, 2, 4, 2] ary.count #=> 4 ary.count(2) #=> 2 ary.count { |x| x%2 == 0 } #=> 3

move_into

move_into(dest) Instance Public methods

removeChild

removeChild(arg0) Instance Public methods IXMLDOMNode removeChild remove a child node IXMLDOMNode arg0 --- childNode [IN]

instrument

instrument(name, payload={}) Instance Public methods Instrument the given block by measuring the time taken to execute it and publish it. Notice that events get sent even if an error occurs in the passed-in block.

new

new(*args, &b) Class Public methods