lib/progress.rb in progress-2.3.0 vs lib/progress.rb in progress-2.4.0
- old
+ new
@@ -128,9 +128,14 @@
io.puts
end
end
end
+ # check in block of showing progress
+ def running?
+ !levels.empty?
+ end
+
# set note
def note=(s)
if levels.last
levels.last.note = s
end