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
332 333 334 |
# File 'lib/assert2/xhtml.rb', line 332 def content= string self.native_content = encode_special_chars(string.to_s) end |
#xpath_with_callback(path, method_name, &block) ⇒ Object
348 349 350 |
# File 'lib/assert2/xhtml.rb', line 348 def xpath_with_callback(path, method_name, &block) xpath path, XPathPredicateYielder.new(method_name, &block) end |