to_s

to_s() Instance Public methods Alias for: to_pem

year

d.year â integer Instance Public methods Returns the year. Date.new(2001,2,3).year #=> 2001 (Date.new(1,1,1) - 1).year #=> 0

getname

getname(address) Instance Public methods Gets the hostname for address from the DNS resolver. address must be a Resolv::IPv4, Resolv::IPv6 or a String. Retrieved name will be a Resolv::DNS::Name.

each_key

hsh.each_key {| key | block } â hshhsh.each_key â an_enumerator Instance Public methods Calls block once for each key in hsh, passing the key as a parameter. If no block is given, an enumerator is returned instead. h = { "a" => 100, "b" => 200 } h.each_key {|key| puts key } produces: a b

names

names() Class Public methods

eql?

eql?(other) Instance Public methods Checks equality used by Hash.

add_flash_types

add_flash_types(*types) Instance Public methods Creates new flash types. You can pass as many types as you want to create flash types other than the default alert and notice in your controllers and views. For instance: # in application_controller.rb class ApplicationController < ActionController::Base add_flash_types :warning end # in your controller redirect_to user_path(@user), warning: "Incomplete profile" # in your view <%= warning %> This method will automatically

trace_vinfo_for_element

trace_vinfo_for_element(elem) Instance Public methods Alias for: trace_info_for_element

focus

focus() Instance Public methods

enable

trace.enable â true or falsetrace.enable { block } â obj Instance Public methods Activates the trace Return true if trace was enabled. Return false if trace was disabled. trace.enabled? #=> false trace.enable #=> false (previous state) # trace is enabled trace.enabled? #=> true trace.enable #=> true (previous state) # trace is still enabled If a block is given, the trace will only be enabled within the scope of