Class: KQL::Query::SelectedNode
- Inherits:
-
Object
- Object
- KQL::Query::SelectedNode
- Defined in:
- lib/kql/query.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#node ⇒ Object
Returns the value of attribute node.
-
#siblings ⇒ Object
Returns the value of attribute siblings.
-
#stop ⇒ Object
Returns the value of attribute stop.
Instance Method Summary collapse
-
#initialize(node, siblings, index, stop: false) ⇒ SelectedNode
constructor
A new instance of SelectedNode.
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
#index ⇒ Object
Returns the value of attribute index.
67 68 69 |
# File 'lib/kql/query.rb', line 67 def index @index end |
#node ⇒ Object
Returns the value of attribute node.
67 68 69 |
# File 'lib/kql/query.rb', line 67 def node @node end |
#siblings ⇒ Object
Returns the value of attribute siblings.
67 68 69 |
# File 'lib/kql/query.rb', line 67 def siblings @siblings end |
#stop ⇒ Object
Returns the value of attribute stop.
67 68 69 |
# File 'lib/kql/query.rb', line 67 def stop @stop end |