class Oga::XML::Document

Public Instance Methods

rpath(&block) click to toggle source

Evaluates an RPath expression on the document @example

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

@see RPath @return [Object]

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