class REXML::Element
Public Instance Methods
rpath(&block)
click to toggle source
Evaluates an expression on the element @example
RPath.use :rexml xml = REXML::Document.new('<foo bar="baz"/>') xml.rpath { foo['bar'] } # => "baz"
@see RPath
@return [Object]
# File lib/rpath/adapters/rexml.rb, line 57 def rpath(&block) RPath self, :rexml, &block end