plural

plural(record_or_class) Class Public methods Returns the plural class name of a record or class. ActiveModel::Naming.plural(post) # => "posts" ActiveModel::Naming.plural(Highrise::Person) # => "highrise_people"

humanize

humanize(options = {}) Instance Public methods Capitalizes the first word, turns underscores into spaces, and strips a trailing '_id' if present. Like titleize, this is meant for creating pretty output. The capitalization of the first word can be turned off by setting the optional parameter capitalize to false. By default, this parameter is true. 'employee_salary'.humanize # => "Employee salary" 'author_id'.humanize # => "Author" 'author_id'.hu

set_label

set_label(val, str, *args) Instance Public methods

extern

extern(signature, *opts) Instance Public methods Creates a global method from the given C signature.

record

record(*command, &block) Instance Public methods record command. command should be a method name and arguments. For example: recorder.record(:method_name, [:arg1, :arg2])

locale=

locale=(locale) Class Public methods

new

new(lock = Monitor.new) Class Public methods

value=

value=(val) Instance Public methods

generate_key!

dh.generate_key! â self Instance Public methods Generates a private and public key unless a private key already exists. If this DH instance was generated from public DH parameters (e.g. by encoding the result of #public_key), then this method needs to be called first in order to generate the per-session keys before performing the actual key exchange. Example dh = OpenSSL::PKey::DH.new(2048) public_key = dh.public_key #contains no private/public key yet public_key.generate_key! put

_add_new_tables

_add_new_tables() Instance Public methods