method

new

ruby latest stable - Class: REXML::XPathNode

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

new(node, context=nil)
public

No documentation available.

# File lib/rexml/xpath_parser.rb, line 921
    def initialize(node, context=nil)
      if node.is_a?(XPathNode)
        @raw_node = node.raw_node
      else
        @raw_node = node
      end
      @context = context || {}
    end