Class: Xembly::Xpath
- Inherits:
-
Object
- Object
- Xembly::Xpath
- Defined in:
- lib/xembly/xpath.rb
Overview
XPATH directive
Instance Method Summary collapse
- #exec(dom, _) ⇒ Object
-
#initialize(path) ⇒ Xpath
constructor
Ctor.
Constructor Details
#initialize(path) ⇒ Xpath
Ctor.
path-
Path
30 31 32 |
# File 'lib/xembly/xpath.rb', line 30 def initialize(path) @path = path end |
Instance Method Details
#exec(dom, _) ⇒ Object
34 35 36 |
# File 'lib/xembly/xpath.rb', line 34 def exec(dom, _) dom.xpath(@path) end |