Object
A helper class to store the temporary tree while it gets read.
# File lib/ruote/reader/xml.rb, line 50 def initialize(parent, name, atts) @parent = parent @name = name @attributes = atts.remap { |(k, v), h| h[k.gsub(/-/, '_')] = v } @children = [] parent.children << self if parent end
# File lib/ruote/reader/xml.rb, line 60 def to_a [ @name, @attributes, @children.collect { |c| c.to_a } ] end
[Validate]
Generated with the Darkfish Rdoc Generator 2.