const_get

mod.const_get(sym, inherit=true) â objmod.const_get(str, inherit=true) â obj Instance Public methods Checks for a constant with the given name in mod If inherit is set, the lookup will also search the ancestors (and Object if mod is a Module.) The value of the constant is returned if a definition is found, otherwise a NameError is raised. Math.const_get(:PI) #=> 3.14159265358979 This method will recursively look up constant names if a namespaced class name is provided.

query

query() Instance Public methods Request query as a Hash

state_undefine

state_undefine(*names) Instance Public methods

format

format(format = nil, *args) Instance Public methods Returns the contents of this Tms object as a formatted string, according to a format string like that passed to Kernel#format. In addition, format accepts the following extensions: %u Replaced by the user CPU time, as reported by #utime. %y Replaced by the system CPU time, as reported by stime (Mnemonic: y of âs*y*stemâ) %U Replaced by the children's user CPU time, as reported by #cutime %Y Replaced by the children'

configure

configure(key, val=None) Instance Public methods

set_symbol_type

set_symbol_type(val) Instance Public methods Also aliased as: symbol_type=

truncate

truncate(truncate_at, options = {}) Instance Public methods Truncates a given text after a given length if text is longer than length: 'Once upon a time in a world far far away'.truncate(27) # => "Once upon a time in a wo..." Pass a string or regexp :separator to truncate text at a natural break: 'Once upon a time in a world far far away'.truncate(27, separator: ' ') # => "Once upon a time in a..." 'Once upon a time in a world far far away'.truncate(27, separator: /\s/) # =

_conv_listelement

_conv_listelement(arg) Class Public methods

new

Time.new â timeTime.new(year, month=nil, day=nil, hour=nil, min=nil, sec=nil, utc_offset=nil) â time Class Public methods Returns a Time object. It is initialized to the current system time if no argument is given. Note: The new object will use the resolution available on your system clock, and may include fractional seconds. If one or more arguments specified, the time is initialized to the specified time. sec may have fraction if it is a rational. utc_offset is the offset from U

auth_tag=

cipher.auth_tag = string â string Instance Public methods Sets the authentication tag to verify the contents of the ciphertext. The tag must be set after calling #decrypt, #key= and #iv=, but before assigning the associated authenticated data using #auth_data= and of course, before decrypting any of the ciphertext. After all decryption is performed, the tag is verified automatically in the call to #final.