expr

expr(expression) Class Public methods

background_call

background_call(*args, &blk) Class Public methods Alias for: bg_eval_proc

pluralize

pluralize(count = nil, locale = :en) Instance Public methods Returns the plural form of the word in the string. If the optional parameter count is specified, the singular form will be returned if count == 1. For any other value of count the plural will be returned. If the optional parameter locale is specified, the word will be pluralized as a word of that language. By default, this parameter is set to :en. You must define your own inflection rules for languages other than English.

name

digest.name â string Instance Public methods Returns the sn of this Digest instance. Example digest = OpenSSL::Digest::SHA512.new puts digest.name # => SHA512

classicAnchor

classicAnchor() Class Public methods accessor

ips_from

ips_from(header) Instance Protected methods

to_param

to_param() Instance Public methods

revoke!

revoke!() Instance Public methods

calculate_ip

calculate_ip() Instance Public methods Sort through the various IP address headers, looking for the IP most likely to be the address of the actual remote client making this request. REMOTE_ADDR will be correct if the request is made directly against the Ruby process, on e.g. Heroku. When the request is proxied by another server like HAProxy or Nginx, the IP address that made the original request will be put in an X-Forwarded-For header. If there are multiple proxies, that header ma

entries

Dir.entries( dirname ) â array Class Public methods Returns an array containing all of the filenames in the given directory. Will raise a SystemCallError if the named directory doesn't exist. Dir.entries("testdir") #=> [".", "..", "config.h", "main.rb"]