Class: Safrano::Filter::Leave
- Defined in:
- lib/odata/filter/base.rb,
lib/odata/filter/tree.rb
Overview
Leaves are Nodes with a parent but no children
Direct Known Subclasses
DateTimeLit, DateTimeOffsetLit, DecimalLit, FPNumber, Guid16, Literal, QString
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
Attributes inherited from Node
Instance Method Summary collapse
-
#accept?(tok, typ) ⇒ Boolean
nil is considered as accepted, otherwise non-nil=the error.
- #attach(_child) ⇒ Object
- #check_types ⇒ Object
Methods inherited from Node
Constructor Details
This class inherits a constructor from Safrano::Filter::Node
Instance Attribute Details
#parent ⇒ Object
Returns the value of attribute parent.
24 25 26 |
# File 'lib/odata/filter/tree.rb', line 24 def parent @parent end |
Instance Method Details
#accept?(tok, typ) ⇒ Boolean
nil is considered as accepted, otherwise non-nil=the error
27 28 29 |
# File 'lib/odata/filter/tree.rb', line 27 def accept?(tok, typ) Parser::ErrorInvalidToken(tok, typ) end |
#attach(_child) ⇒ Object
33 34 35 |
# File 'lib/odata/filter/tree.rb', line 33 def attach(_child) Safrano::Filter::Parser::ErrorLeaveChild end |
#check_types ⇒ Object
31 |
# File 'lib/odata/filter/tree.rb', line 31 def check_types; end |