class JobIteration::TestHelper::StoppingSupervisor
Public Class Methods
new(stop_after_count)
click to toggle source
# File lib/job-iteration/test_helper.rb, line 7 def initialize(stop_after_count) @stop_after_count = stop_after_count @calls = 0 end
Public Instance Methods
call()
click to toggle source
# File lib/job-iteration/test_helper.rb, line 12 def call @calls += 1 (@calls % @stop_after_count) == 0 end