Class: Journey::Nodes::Literal

Inherits:
Terminal show all
Defined in:
lib/journey/nodes/node.rb

Direct Known Subclasses

Dummy

Instance Attribute Summary

Attributes inherited from Node

#left, #memo

Instance Method Summary collapse

Methods inherited from Node

#each, #initialize, #name, #symbol?, #to_dot, #to_s, #to_sym

Constructor Details

This class inherits a constructor from Journey::Nodes::Node

Instance Method Details

#literal?Boolean

Returns:

  • (Boolean)


48
# File 'lib/journey/nodes/node.rb', line 48

def literal?; true; end

#typeObject



49
# File 'lib/journey/nodes/node.rb', line 49

def type; :LITERAL; end