module Looop
Public Class Methods
for(_initial_condition, evaluation_step, after_eval_step) { || ... }
click to toggle source
# File lib/looop.rb, line 2 def self.for(_initial_condition, evaluation_step, after_eval_step, &blk) while(evaluation_step.call) yield after_eval_step.call end end