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.
265 266 267 268 |
# File 'lib/code_generator.rb', line 265 def initialize action, consequence @action = action @consequence = consequence end |
Instance Method Details
#gen ⇒ Object
270 271 272 |
# File 'lib/code_generator.rb', line 270 def gen "ON #{@action} #{@consequence}" end |