Class: Wallace::Koza::Variable

Inherits:
Terminal show all
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

#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.



26
27
28
# File 'lib/modules/koza/koza_node_value.rb', line 26

def eval(args)
  args[@value.to_sym]
end