Class: ControlflowNode

Inherits:
Object
  • Object
show all
Defined in:
lib/nodes.rb

Overview

Superclass for control flow statements (if/while).

Direct Known Subclasses

IfNode, WhileNode

Instance Method Summary collapse

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