Class: Uttk::Dumpers::Xml

Inherits:
Dumper show all
Includes:
Concrete
Defined in:
lib/uttk/dumpers/Xml.rb

Instance Attribute Summary

Attributes inherited from Dumper

#options

Instance Method Summary collapse

Methods inherited from Dumper

#<<, #each_output, #flush, #print, #puts

Methods inherited from Logger::Backend

#update

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

#resetObject



24
25
26
27
# File 'lib/uttk/dumpers/Xml.rb', line 24

def reset
  @doc = @root = REXML::Document.new
  @doc_stack = []
end