Class: RUXML::Parser
- Inherits:
-
Object
- Object
- RUXML::Parser
- Defined in:
- lib/ruxml/parser.rb
Instance Method Summary collapse
Instance Method Details
#each ⇒ Object
10 11 12 13 14 15 |
# File 'lib/ruxml/parser.rb', line 10 def each while next_node yield node end raise ParseError.new("RUXML encountered an error in the XML") if errored end |
#each_node ⇒ Object
17 18 19 20 21 22 |
# File 'lib/ruxml/parser.rb', line 17 def each_node while next_node yield end raise ParseError.new("RUXML encountered an error in the XML") if errored end |
#get_node ⇒ Object
4 5 6 7 8 |
# File 'lib/ruxml/parser.rb', line 4 def get_node next_node raise ParseError.new("RUXML encountered an error in the XML") if errored node end |