Class: CodeTools::AST::Until

Inherits:
While show all
Defined in:
lib/rubinius/code/compiler/evaluator.rb

Instance Method Summary collapse

Instance Method Details

#execute(e) ⇒ Object



172
173
174
175
176
177
178
179
180
181
182
# File 'lib/rubinius/code/compiler/evaluator.rb', line 172

def execute(e)
  if @check_first
    until @condition.execute(e)
      @body.execute(e)
    end
  else
    begin
      @body.execute(e)
    end until @condition.execute(e)
  end
end