Class: VTD::Xml::Finder
- Inherits:
-
Object
- Object
- VTD::Xml::Finder
- Includes:
- Enumerable
- Defined in:
- lib/vtd/xml/finder.rb
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(nav, xpath) ⇒ Finder
constructor
A new instance of Finder.
Constructor Details
#initialize(nav, xpath) ⇒ Finder
Returns a new instance of Finder.
6 7 8 9 10 11 12 |
# File 'lib/vtd/xml/finder.rb', line 6 def initialize(nav, xpath) @nav = nav @xpath = xpath @auto_pilot = com.ximpleware.AutoPilot.new(@nav) @auto_pilot.select_xpath(@xpath) end |