Class: Wallace::Koza::Terminal

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

Overview

Holds an option from the terminal set.

Direct Known Subclasses

Literal, Variable

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Terminal

Constructs a terminal.

Parameters:

  • value, the value of the node.



13
14
15
# File 'lib/modules/koza/koza_node_value.rb', line 13

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



7
8
9
# File 'lib/modules/koza/koza_node_value.rb', line 7

def value
  @value
end