Class: Predicator::AST::Literal

Inherits:
Terminal show all
Defined in:
lib/predicator/ast.rb

Instance Attribute Summary

Attributes inherited from Node

#left

Instance Method Summary collapse

Methods inherited from Node

#each, #initialize, #to_dot, #to_instructions, #to_s, #variable?

Constructor Details

This class inherits a constructor from Predicator::AST::Node

Instance Method Details

#literal?Boolean

Returns:

  • (Boolean)


42
# File 'lib/predicator/ast.rb', line 42

def literal?; true; end

#typeObject



41
# File 'lib/predicator/ast.rb', line 41

def type; :LITERAL; end