Class: Integer
Instance Method Summary collapse
- #poopoos(smiley = '😍') ⇒ Object (also: #poopoos_for)
Instance Method Details
#poopoos(smiley = '😍') ⇒ Object Also known as: poopoos_for
2 3 4 5 6 7 8 9 |
# File 'lib/core_extensions.rb', line 2 def poopoos(smiley = '😍') pb = ProgressBar.create(format: "%e %b 🚽 #{smiley} %i %p%% %t", progress_mark: '💩', remainder_mark: ' ', total: self) Thread.current.instance_variable_set(:@poopoo, pb) end |