class Gammo::XPath::Context

Class for representing a context www.w3.org/TR/1999/REC-xpath-19991116/#section-Introduction @!visibility private

Attributes

node[RW]

Defines context node, context position and context size.

position[RW]

Defines context node, context position and context size.

size[RW]

Defines context node, context position and context size.

variables[R]

Variables to be expanded in placeholders.

Public Class Methods

new(node:, variables: {}) click to toggle source

@param [Gammo::Node] node @param [Hash{Symbol => String, Symbol, Integer, TrueClass, FalseClass, call}] variables

# File lib/gammo/xpath/context.rb, line 15
def initialize(node:, variables: {})
  @node      = node
  @position  = 1
  @size      = 1
  @variables = variables
end