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



355
356
357
# File 'lib/assert2/xhtml.rb', line 355

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