Class: Wallace::Koza::Variable
- Inherits:
-
Terminal
- Object
- KozaNodeValue
- Terminal
- Wallace::Koza::Variable
- Defined in:
- lib/modules/koza/koza_node_value.rb
Overview
Holds a variable option from the terminal set.
Instance Attribute Summary
Attributes inherited from Terminal
Instance Method Summary collapse
-
#eval(args) ⇒ Object
Evaluates this terminal.
Methods inherited from Terminal
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.
26 27 28 |
# File 'lib/modules/koza/koza_node_value.rb', line 26 def eval(args) args[@value.to_sym] end |