Method: Pump::Xml::TagArray#initialize
- Defined in:
- lib/pump/xml/tag_array.rb
#initialize(name, attributes = {}, nodes = [], options = {}) ⇒ TagArray
Returns a new instance of TagArray.
7 8 9 10 11 12 13 14 |
# File 'lib/pump/xml/tag_array.rb', line 7 def initialize(name, attributes={}, nodes=[], ={}) tag = Tag.new(name, attributes, nodes, { :level => 1, :extra_indent => [:extra_indent], :xml_key_style => [:xml_key_style] }) array_root = [:array_root] || name.to_s.pluralize super(array_root, {}, [tag], ) end |