Class: Badgerfish::Parser
- Inherits:
-
Object
- Object
- Badgerfish::Parser
- Defined in:
- lib/badgerfish/parser.rb
Instance Method Summary collapse
-
#initialize ⇒ Parser
constructor
A new instance of Parser.
- #load(xml) ⇒ Object
Constructor Details
#initialize ⇒ Parser
Returns a new instance of Parser.
6 7 8 |
# File 'lib/badgerfish/parser.rb', line 6 def initialize() @parser = Badgerfish::OxSaxParser.new end |
Instance Method Details
#load(xml) ⇒ Object
10 11 12 |
# File 'lib/badgerfish/parser.rb', line 10 def load(xml) @parser.load(xml) end |