generate_message

generate_message(attribute, type = :invalid, options = {}) Instance Public methods Translates an error message in its default scope (activemodel.errors.messages). Error messages are first looked up in models.MODEL.attributes.ATTRIBUTE.MESSAGE, if it's not there, it's looked up in models.MODEL.MESSAGE and if that is not there also, it returns the translation of the default message (e.g. activemodel.errors.messages.MESSAGE). The translated model name, translated attribute name and th

shellsplit

str.shellsplit => array Instance Public methods Splits str into an array of tokens in the same way the UNIX Bourne shell does. See Shellwords.shellsplit for details.

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.

wait

wait() Instance Public methods

pipeline_r

pipeline_r(*cmds, &block) Class Public methods ::pipeline_r starts a list of commands as a pipeline with a pipe which connects stdout of the last command. Open3.pipeline_r(cmd1, cmd2, ... [, opts]) {|last_stdout, wait_threads| ... } last_stdout, wait_threads = Open3.pipeline_r(cmd1, cmd2, ... [, opts]) ... last_stdout.close Each cmd is a string or an array. If it is an array, the elements are passed to Process.spawn. cmd: commandline command li

configure

configure(*args) Class Public methods def configure(win, *args) if args[-1].kind_of?(Hash) opts = args.pop else opts = {} end params = [] params.push(_epath(win)) args.each{|win| case win when '-', 'x', '^' # RELATIVE PLACEMENT params.push(win) else params.push(_epath(win)) end } opts.each{|k, v| params.push("-#{k}") params.push((v.kind_of?(TkObject))? v.epath: v) } if Tk::TCL_MAJOR_VERSION < 8 || (Tk::TCL_MAJOR_VERSION == 8 && Tk::TCL_MINOR_

chown_R

chown_R(user, group, list, options = {}) Class Public methods Options: noop verbose force Changes owner and group on the named files (in list) to the user user and the group group recursively. user and group may be an ID (Integer/String) or a name (String). If user or group is nil, this method does not change the attribute. FileUtils.chown_R 'www', 'www', '/var/www/htdocs' FileUtils.chown_R 'cvs', 'cvs', '/var/cvs', :verbose => true

add_alias

add_alias(an_alias, context) Instance Public methods Abstract method. Contexts in their building phase call this to register a new alias for this known method/attribute. creates a new AnyMethod/Attribute named an_alias.new_name; adds self as an alias for the new method or attribute adds the method or attribute to aliases adds the method or attribute to context.

clear

clear() Instance Public methods

configinfo

configinfo(slot = nil) Instance Public methods