Class: VTD::Xml::Parser
- Inherits:
-
Object
- Object
- VTD::Xml::Parser
- Defined in:
- lib/vtd/xml/parser.rb
Instance Method Summary collapse
- #find(xpath) ⇒ Object
-
#initialize(path) ⇒ Parser
constructor
A new instance of Parser.
Constructor Details
#initialize(path) ⇒ Parser
Returns a new instance of Parser.
4 5 6 7 8 9 |
# File 'lib/vtd/xml/parser.rb', line 4 def initialize(path) @path = path @gen = com.ximpleware.VTDGen.new @gen.parse_file(@path, false) end |