type_id

type_id(name) Class Public methods

values_at

hsh.values_at(key, ...) â array Instance Public methods Return an array containing the values associated with the given keys. Also see Hash.select. h = { "cat" => "feline", "dog" => "canine", "cow" => "bovine" } h.values_at("cow", "cat") #=> ["bovine", "feline"]

default_proc=

hsh.default_proc = proc_obj or nil Instance Public methods Sets the default proc to be executed on each failed key lookup. h.default_proc = proc do |hash, key| hash[key] = key + key end h[2] #=> 4 h["cat"] #=> "catcat"

chown

chown(user, group, list, options = {}) Class Public methods Options: noop verbose Changes owner and group on the named files (in list) to the user user and the group group. 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 'root', 'staff', '/usr/local/bin/ruby' FileUtils.chown nil, 'bin', Dir.glob('/usr/bin/*'), :verbose => true

ole_type

WIN32OLE_TYPE#ole_type #=> OLE type string. Instance Public methods returns type of OLE class. tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Application') puts tobj.ole_type # => Class

show 2

show() Instance Public methods Alias for: display

accept_rule

accept_rule(rule) Instance Public methods Adds rule to the output

get

get(idx) Instance Public methods

finish

finish() Instance Public methods Finishes the SMTP session and closes TCP connection. Raises IOError if not started.

_process_options

_process_options(options) Instance Public methods Process extra options. :api: plugin