Class: Wallace::Koza::Literal

Inherits:
Terminal show all
Defined in:
lib/modules/koza/koza_node_value.rb

Overview

Holds a literal option from the terminal set.

Direct Known Subclasses

EphemeralInstance

Instance Attribute Summary

Attributes inherited from Terminal

#value

Instance Method Summary collapse

Methods inherited from Terminal

#initialize

Constructor Details

This class inherits a constructor from Wallace::Koza::Terminal

Instance Method Details

#eval(args) ⇒ Object

Evaluates this terminal.

Parameters:

  • args, the arguments to the program.



39
40
41
# File 'lib/modules/koza/koza_node_value.rb', line 39

def eval(args)
  @value
end