Method: Progress::WithProgress.new

Defined in:
lib/progress/with_progress.rb

.new(*args, &block) ⇒ Object

If block given run each on instance otherwise return instance



13
14
15
# File 'lib/progress/with_progress.rb', line 13

def self.new(*args, &block)
  block ? super.each(&block) : super
end