lib/cxxproject/ext/progressbar.rb in cxxproject-0.5.48 vs lib/cxxproject/ext/progressbar.rb in cxxproject-0.5.59
- old
+ new
@@ -1,20 +1,20 @@
-class ::ProgressBar
- attr_writer :title
-
- def title_width=(w)
- @title_width = w
- @format = "%-#{@title_width}s #{'%3d%%'.red} #{'%s'.green} #{'%s'.blue}"
- end
-
- show_original = self.instance_method(:show)
- define_method(:show) do
- if @unblocked && !RakeFileUtils.verbose
- show_original.bind(self).call
- end
- end
-
- def unblock
- @unblocked = true
- show
- end
-end
+class ::ProgressBar
+ attr_writer :title
+
+ def title_width=(w)
+ @title_width = w
+ @format = "%-#{@title_width}s #{'%3d%%'.red} #{'%s'.green} #{'%s'.blue}"
+ end
+
+ show_original = self.instance_method(:show)
+ define_method(:show) do
+ if @unblocked && !RakeFileUtils.verbose
+ show_original.bind(self).call
+ end
+ end
+
+ def unblock
+ @unblocked = true
+ show
+ end
+end