lib/rmega/progress.rb in rmega-0.2.0 vs lib/rmega/progress.rb in rmega-0.2.1
- old
+ new
@@ -8,9 +8,13 @@
@bytes = 0
@real_bytes = 0
@mutex = Mutex.new
@start_time = Time.now
+ if show? and options[:filename]
+ puts options[:filename]
+ end
+
show
end
def show?
options.show_progress