Class: ControlflowNode
- Inherits:
-
Object
- Object
- ControlflowNode
- Defined in:
- lib/nodes.rb
Overview
Superclass for control flow statements (if/while).
Instance Method Summary collapse
-
#initialize(expression, block) ⇒ ControlflowNode
constructor
A new instance of ControlflowNode.
Constructor Details
#initialize(expression, block) ⇒ ControlflowNode
Returns a new instance of ControlflowNode.
308 309 310 311 |
# File 'lib/nodes.rb', line 308 def initialize(expression, block) @expression = expression @block = block end |