class REXML::XPathNode

@private

Attributes

context[R]
raw_node[R]

Public Class Methods

new(node, context=nil) click to toggle source
# File rexml/xpath_parser.rb, line 955
def initialize(node, context=nil)
  if node.is_a?(XPathNode)
    @raw_node = node.raw_node
  else
    @raw_node = node
  end
  @context = context || {}
end

Public Instance Methods

position() click to toggle source
# File rexml/xpath_parser.rb, line 964
def position
  @context[:position]
end