freeze

freeze() Instance Public methods

type_cast

type_cast(value) Instance Public methods

load_methods_matching

load_methods_matching(name) Instance Public methods Returns an Array of RI data for methods matching name

bodytag

bodytag() Instance Public methods

accepts_nested_attributes_for

accepts_nested_attributes_for(*attr_names) Instance Public methods Defines an attributes writer for the specified association(s). Supported options: :allow_destroy If true, destroys any members from the attributes hash with a _destroy key and a value that evaluates to true (eg. 1, '1', true, or 'true'). This option is off by default. :reject_if Allows you to specify a Proc or a Symbol pointing to a method that checks whether a record should be built for a certain attribute has

[]

[](key) Instance Public methods

attribute_alias?

attribute_alias?(new_name) Instance Public methods Is new_name an alias?

new

new(addr = '::', family = Socket::AF_UNSPEC) Class Public methods Creates a new ipaddr object either from a human readable IP address representation in string, or from a packed in_addr value followed by an address family. In the former case, the following are the valid formats that will be recognized: âaddressâ, âaddress/prefixlenâ and âaddress/maskâ, where IPv6 address may be enclosed in square brackets (`[' and `]'). If a prefixlen or a mask is specified, it returns a masked IP

disable_C_comments

disable_C_comments() Instance Public methods

peek

peek(depth=0) Instance Public methods Peek at the depth event in the stack. The first element on the stack is at depth 0. If depth is -1, will parse to the end of the input stream and return the last event, which is always :end_document. Be aware that this causes the stream to be parsed up to the depth event, so you can effectively pre-parse the entire document (pull the entire thing into memory) using this method.