Class: Nokogiri::XML::Node
- Inherits:
-
Object
- Object
- Nokogiri::XML::Node
- Defined in:
- lib/assert2/xhtml.rb,
lib/assert2/xhtml.rb
Overview
ERGO retire these monkey patches as Nokogiri catches up
Defined Under Namespace
Classes: XPathPredicateYielder
Instance Method Summary collapse
Instance Method Details
#content=(string) ⇒ Object
341 342 343 |
# File 'lib/assert2/xhtml.rb', line 341 def content= string self.native_content = encode_special_chars(string.to_s) end |
#xpath_with_callback(path, method_name, &block) ⇒ Object
357 358 359 |
# File 'lib/assert2/xhtml.rb', line 357 def xpath_with_callback(path, method_name, &block) xpath path, XPathPredicateYielder.new(method_name, &block) end |