Class: Janeway::AST::Selector
- Inherits:
-
Expression
- Object
- Expression
- Janeway::AST::Selector
- Defined in:
- lib/janeway/ast/selector.rb
Overview
Represent a selector, which is an expression that filters nodes from a list based on a predicate.
Direct Known Subclasses
ArraySliceSelector, DescendantSegment, FilterSelector, IndexSelector, NameSelector, WildcardSelector
Instance Attribute Summary collapse
-
#next ⇒ Object
Subsequent expression that modifies the result of this selector list.
Attributes inherited from Expression
Instance Method Summary collapse
Methods inherited from Expression
#indented, #initialize, #literal?, #singular_query?, #tree, #type
Constructor Details
This class inherits a constructor from Janeway::AST::Expression
Instance Attribute Details
#next ⇒ Object
Subsequent expression that modifies the result of this selector list.
28 29 30 |
# File 'lib/janeway/ast/selector.rb', line 28 def next @next end |
Instance Method Details
#==(other) ⇒ Object
30 31 32 |
# File 'lib/janeway/ast/selector.rb', line 30 def ==(other) value == other&.value end |