Class: WhileNode

Inherits:
ControlflowNode show all
Defined in:
lib/nodes.rb

Instance Method Summary collapse

Methods inherited from ControlflowNode

#initialize

Constructor Details

This class inherits a constructor from ControlflowNode

Instance Method Details

#evaluate(scope) ⇒ Object



261
262
263
264
265
# File 'lib/nodes.rb', line 261

def evaluate(scope)
  while @expression.evaluate(scope)
    @block.evaluate(scope)
  end
end