Method: BOAST::While#initialize

Defined in:
lib/BOAST/Language/While.rb

#initialize(condition, &block) ⇒ While

Creates a new instance of the While construct.

Parameters:

  • condition (Expression)
  • block (Proc, nil)

    if given, will be evaluated when #pr is called



13
14
15
16
17
# File 'lib/BOAST/Language/While.rb', line 13

def initialize(condition, &block)
  super()
  @condition = condition
  @block = block
end