Class: Janeway::AST::Null
- Inherits:
-
Expression
- Object
- Expression
- Janeway::AST::Null
- Defined in:
- lib/janeway/ast/null.rb
Overview
Represents JSON null literal within a filter expression
Instance Attribute Summary
Attributes inherited from Expression
Instance Method Summary collapse
-
#literal? ⇒ Boolean
Return true if this is a literal expression.
- #to_s ⇒ Object
- #tree(level = 0) ⇒ Array
Methods inherited from Expression
#indented, #initialize, #singular_query?, #type
Constructor Details
This class inherits a constructor from Janeway::AST::Expression
Instance Method Details
#literal? ⇒ Boolean
Return true if this is a literal expression
19 20 21 |
# File 'lib/janeway/ast/null.rb', line 19 def literal? true end |
#to_s ⇒ Object
7 8 9 |
# File 'lib/janeway/ast/null.rb', line 7 def to_s 'null' end |
#tree(level = 0) ⇒ Array
13 14 15 |
# File 'lib/janeway/ast/null.rb', line 13 def tree(level = 0) indented(level, 'null') end |