Class: Xembly::Xpath

Inherits:
Object
  • Object
show all
Defined in:
lib/xembly/xpath.rb

Overview

XPATH directive

Instance Method Summary collapse

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