api_dir

api_dir() Instance Public methods

fields_for

fields_for(record_name, record_object = nil, options = {}, &block) Instance Public methods Creates a scope around a specific model object like #form_for, but doesn't create the form tags themselves. This makes #fields_for suitable for specifying additional model objects in the same form. Although the usage and purpose of field_for is similar to form_for's, its method signature is slightly different. Like form_for, it yields a FormBuilder object associated with a particular mode

filtered_parameters

filtered_parameters() Instance Public methods Return a hash of parameters with all sensitive data replaced.

to_d

int.to_d â bigdecimal Instance Public methods Convert int to a BigDecimal and return it. require 'bigdecimal' require 'bigdecimal/util' 42.to_d # => #<BigDecimal:1008ef070,'0.42E2',9(36)>

infinite?

infinite?() Instance Public methods Returns nil, -1, or +1 depending on whether the value is finite, -infinity, or +infinity.

select

select(root) => array Instance Public methods Selects and returns an array with all matching elements, beginning with one node and traversing through all children depth-first. Returns an empty array if no match is found. The root node may be any element in the document, or the document itself. For example: selector = HTML::Selector.new "input[type=text]" matches = selector.select(element) matches.each do |match| puts "Found text field with name #{match.attributes['name']}" en

dataType

dataType() Instance Public methods VARIANT dataType the data type of the node

has_attributes?

has_attributes?() Instance Public methods Evaluates to true if this element has any attributes set, false otherwise.

end_sequence

emitter.end_sequence Instance Public methods End sequence emission. See Psych::Handler#end_sequence

divmod

fix.divmod(numeric) â array Instance Public methods See Numeric#divmod.