Class: NxBuild::Xml

Inherits:
XmlNode show all
Defined in:
lib/nxbuild/xml/xml.rb

Instance Attribute Summary

Attributes inherited from XmlNode

#attr, #children, #tag

Instance Method Summary collapse

Methods inherited from XmlNode

#<<, #[], #[]=

Constructor Details

#initialize(tag) ⇒ Xml

Returns a new instance of Xml.



5
6
7
# File 'lib/nxbuild/xml/xml.rb', line 5

def initialize(tag)
  super
end

Instance Method Details

#dump(buffer, indent = 0) ⇒ Object



9
10
11
12
# File 'lib/nxbuild/xml/xml.rb', line 9

def dump(buffer, indent = 0)
  buffer << %{<?xml version="1.0" encoding="UTF-8"?>\n}
  super
end