Class: Safrano::Filter::Leave

Inherits:
Node
  • Object
show all
Defined in:
lib/odata/filter/base.rb,
lib/odata/filter/tree.rb

Overview

Leaves are Nodes with a parent but no children

Instance Attribute Summary collapse

Attributes inherited from Node

#value

Instance Method Summary collapse

Methods inherited from Node

#==, #initialize, #success

Constructor Details

This class inherits a constructor from Safrano::Filter::Node

Instance Attribute Details

#parentObject

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

Returns:

  • (Boolean)


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_typesObject



31
# File 'lib/odata/filter/tree.rb', line 31

def check_types; end