Class: Janeway::AST::Null

Inherits:
Expression show all
Defined in:
lib/janeway/ast/null.rb

Instance Attribute Summary

Attributes inherited from Expression

#value

Instance Method Summary collapse

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

Returns:



18
19
20
# File 'lib/janeway/ast/null.rb', line 18

def literal?
  true
end

#to_sObject



6
7
8
# File 'lib/janeway/ast/null.rb', line 6

def to_s
  'null'
end

#tree(level = 0) ⇒ Array

Parameters:

  • level (Integer) (defaults to: 0)

Returns:

  • (Array)


12
13
14
# File 'lib/janeway/ast/null.rb', line 12

def tree(level = 0)
  indented(level, 'null')
end