Method: Hermod::XmlSectionBuilder#parent_node

Defined in:
lib/hermod/xml_section_builder.rb

#parent_node(name, options = {}) ⇒ Object

Public: defines an XML parent node that wraps other nodes

name - the name of the node. This will become the name of the method on the XmlSection. options - a hash of options used to set up validations.

Returns nothing you should rely on



187
188
189
190
191
# File 'lib/hermod/xml_section_builder.rb', line 187

def parent_node(name, options={})
  create_method(name, [], [], options) do |value, attributes|
    [value, attributes]
  end
end