Class: Integer

Inherits:
Object show all
Defined in:
lib/core_extensions.rb

Instance Method Summary collapse

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