class Oga::XML::Element

Public Instance Methods

rpath(&block) click to toggle source

Evaluates an RPath expression on the element @example

RPath.use :oga
xml = Oga.parse_xml('<foo><bar baz="qux"/></foo>')
xml.children.first.rpath { bar['baz'] } # => "qux"

@see RPath @return [Object]

# File lib/rpath/adapters/oga.rb, line 76
def rpath(&block)
  RPath self, :oga, &block
end