Class: ActionNode
Instance Method Summary collapse
- #gen ⇒ Object
-
#initialize(action, consequence) ⇒ ActionNode
constructor
A new instance of ActionNode.
Methods inherited from Node
Constructor Details
#initialize(action, consequence) ⇒ ActionNode
Returns a new instance of ActionNode.
253 254 255 256 |
# File 'lib/code_generator.rb', line 253 def initialize action, consequence @action = action @consequence = consequence end |
Instance Method Details
#gen ⇒ Object
258 259 260 |
# File 'lib/code_generator.rb', line 258 def gen "ON #{@action} #{@consequence}" end |