Module: Falkor::TrackableProgress
- Included in:
- Download, Extract::TarGz, Yard::Documentation
- Defined in:
- lib/falkor/concerns/trackable_progress.rb
Instance Method Summary collapse
Instance Method Details
#report_progress(method_to_run, total, *args) ⇒ Object
7 8 9 10 11 12 |
# 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 |