Sha256: cce59c1d098724214a11e591c71775ad06d0a785179f5b212e5a66e09dbc45e4
Contents?: true
Size: 391 Bytes
Versions: 25
Compression:
Stored size: 391 Bytes
Contents
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
Version data entries
25 entries across 25 versions & 1 rubygems