Class: XmlUtils::TreeParser
- Inherits:
-
Object
- Object
- XmlUtils::TreeParser
- Defined in:
- lib/xmlutils/tree_parser.rb
Instance Method Summary collapse
-
#initialize(source, document = nil) ⇒ TreeParser
constructor
A new instance of TreeParser.
- #parse ⇒ Object
Constructor Details
Instance Method Details
#parse ⇒ Object
26 27 28 29 30 31 |
# File 'lib/xmlutils/tree_parser.rb', line 26 def parse while current_token && current_token.type != :eof parse_node(@document) end @document end |