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_predicate, #to_s, #variable?

Constructor Details

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

Instance Method Details

#literal?Boolean

Returns:

  • (Boolean)


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

def literal?; true; end

#typeObject



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

def type; :LITERAL; end