Class: Uttk::Dumpers::Xml
- Inherits:
-
Dumper
- Object
- Logger::Backend
- Dumper
- Uttk::Dumpers::Xml
- Includes:
- Concrete
- Defined in:
- lib/uttk/dumpers/Xml.rb
Instance Attribute Summary
Attributes inherited from Dumper
Instance Method Summary collapse
-
#initialize(*a, &b) ⇒ Xml
constructor
A new instance of Xml.
- #reset ⇒ Object
Methods inherited from Dumper
#<<, #each_output, #flush, #print, #puts
Methods inherited from Logger::Backend
Constructor Details
#initialize(*a, &b) ⇒ Xml
Returns a new instance of Xml.
17 18 19 20 21 |
# File 'lib/uttk/dumpers/Xml.rb', line 17 def initialize ( *a, &b ) super puts '<?xml version="1.0" encoding="iso-8859-1"?>' reset end |
Instance Method Details
#reset ⇒ Object
24 25 26 27 |
# File 'lib/uttk/dumpers/Xml.rb', line 24 def reset @doc = @root = REXML::Document.new @doc_stack = [] end |