Class: Nokogiri::XML::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/assert2/xhtml.rb

Defined Under Namespace

Classes: XPathPredicateYielder

Instance Method Summary collapse

Instance Method Details

#xpath_with_callback(path, method_name, &block) ⇒ Object



363
364
365
# File 'lib/assert2/xhtml.rb', line 363

def xpath_with_callback(path, method_name, &block)
  xpath path, XPathPredicateYielder.new(method_name, &block)
end