Class: KQL::Query::SelectedNode

Inherits:
Object
  • Object
show all
Defined in:
lib/kql/query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node, siblings, index, stop: false) ⇒ SelectedNode

Returns a new instance of SelectedNode.



69
70
71
72
73
74
# File 'lib/kql/query.rb', line 69

def initialize(node, siblings, index, stop: false)
  @node = node
  @siblings = siblings
  @index = index
  @stop = stop
end

Instance Attribute Details

#indexObject

Returns the value of attribute index.



67
68
69
# File 'lib/kql/query.rb', line 67

def index
  @index
end

#nodeObject

Returns the value of attribute node.



67
68
69
# File 'lib/kql/query.rb', line 67

def node
  @node
end

#siblingsObject

Returns the value of attribute siblings.



67
68
69
# File 'lib/kql/query.rb', line 67

def siblings
  @siblings
end

#stopObject

Returns the value of attribute stop.



67
68
69
# File 'lib/kql/query.rb', line 67

def stop
  @stop
end