encrypt

cipher.encrypt â self Instance Public methods Initializes the Cipher for encryption. Make sure to call #encrypt or #decrypt before using any of the following methods: key=, iv=, #random_key, #random_iv, #pkcs5_keyivgen Internally calls EVP_CipherInit_ex(ctx, NULL, NULL, NULL, NULL, 1).

eventloop_wait

eventloop_wait(check_root = false) Instance Public methods

parameterize

parameterize(string, sep = '-') Instance Public methods Replaces special characters in a string so that it may be used as part of a 'pretty' URL. class Person def to_param "#{id}-#{name.parameterize}" end end @person = Person.find(1) # => #<Person id: 1, name: "Donald E. Knuth"> <%= link_to(@person.name, person_path(@person)) %> # => <a href="/person/1-donald-e-knuth">Donald E. Knuth</a>

render_template

render_template(template_file, out_file = nil) Instance Public methods Load and render the erb template in the given template_file and write it out to out_file. Both template_file and out_file should be Pathname-like objects. An io will be yielded which must be captured by binding in the caller.

included_modules

mod.included_modules â array Instance Public methods Returns the list of modules included in mod. module Mixin end module Outer include Mixin end Mixin.included_modules #=> [] Outer.included_modules #=> [Mixin]

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