Class: Calyx::Production::Terminal
- Inherits:
-
Object
- Object
- Calyx::Production::Terminal
- Defined in:
- lib/calyx/production/terminal.rb
Instance Method Summary collapse
- #evaluate ⇒ Object
-
#initialize(atom) ⇒ Terminal
constructor
A new instance of Terminal.
Constructor Details
#initialize(atom) ⇒ Terminal
Returns a new instance of Terminal.
4 5 6 |
# File 'lib/calyx/production/terminal.rb', line 4 def initialize(atom) @atom = atom end |
Instance Method Details
#evaluate ⇒ Object
8 9 10 |
# File 'lib/calyx/production/terminal.rb', line 8 def evaluate [:atom, @atom] end |