module Falkor::TrackableProgress
Public Instance Methods
report_progress(method_to_run, total, *args)
click to toggle source
# File lib/falkor/concerns/trackable_progress.rb, line 7 def report_progress(method_to_run, total, *args) progress = Progress.new(total) send(method_to_run, *args) do |amount, description = nil| progress.increment!(amount, description, &Proc.new) end end