In Files

  • rexml-3.2.5/lib/rexml/xpath_parser.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

REXML::XPathNode

@private

Attributes

context[R]
raw_node[R]

Public Class Methods

new(node, context=nil) click to toggle source
 
               # File rexml-3.2.5/lib/rexml/xpath_parser.rb, line 961
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-3.2.5/lib/rexml/xpath_parser.rb, line 970
def position
  @context[:position]
end