add

add(keys={}) Instance Public methods

expand_pair

expand_pair(str) Instance Public methods

current_configinfo 2

current_configinfo(slot=nil) Instance Public methods

uri_option

uri_option(uri, config) Class Public methods

gamma

Math.gamma(x) â float Class Public methods Calculates the gamma function of x. Note that gamma(n) is same as fact(n-1) for integer n > 0. However gamma(n) returns float and can be an approximation. def fact(n) (1..n).inject(1) {|r,i| r*i } end 1.upto(26) {|i| p [i, Math.gamma(i), fact(i-1)] } #=> [1, 1.0, 1] # [2, 1.0, 1] # [3, 2.0, 2] # [4, 6.0, 6] # [5, 24.0, 24] # [6, 120.0, 120] # [7, 720.0, 720] # [8, 5040.0, 5040] # [9, 40320.0, 40320] # [10, 362880.

next_value

next_value() Instance Public methods

>>

>> source Instance Public methods Appends the output to source, which is either a string of a file name or an IO object.

trap

Signal.trap( signal, command ) â objSignal.trap( signal ) {| | block } â obj Class Public methods Specifies the handling of signals. The first parameter is a signal name (a string such as âSIGALRM'', âSIGUSR1'', and so on) or a signal number. The characters âSIG'' may be omitted from the signal name. The command or block specifies code to be run when the signal is raised. If the command is the string âIGNORE'' or âSIG_IGN'', the signal will be ignored. If the command is âDEFAULT''

out

out(key, obj) Instance Public methods

to_xml

to_xml(options = {}, &block) Instance Public methods Builds an XML document to represent the model. Some configuration is available through options. However more complicated cases should override ActiveRecord::Base#to_xml. By default the generated XML document will include the processing instruction and all the object's attributes. For example: <?xml version="1.0" encoding="UTF-8"?> <topic> <title>The First Topic</title> <author-name>David</