Class: Nokogiri::XML::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/rpath/adapters/nokogiri.rb

Instance Method Summary collapse

Instance Method Details

#rpath(&block) ⇒ Object

Evaluates an expression on the element

Examples:

RPath.use :nokogiri
xml = Nokogiri::XML('<foo bar="baz"/>')
xml.rpath { foo['bar'] } # => "baz"

Returns:

  • (Object)

See Also:

  • #RPath


57
58
59
# File 'lib/rpath/adapters/nokogiri.rb', line 57

def rpath(&block)
  RPath self, :nokogiri, &block
end