Class: Pinwheel
- Inherits:
-
Object
- Object
- Pinwheel
- Defined in:
- lib/salesforcedeploytool/functions.rb
Instance Method Summary collapse
- #clean ⇒ Object
-
#initialize ⇒ Pinwheel
constructor
A new instance of Pinwheel.
- #spin_it ⇒ Object
Constructor Details
#initialize ⇒ Pinwheel
Returns a new instance of Pinwheel.
4 5 6 |
# File 'lib/salesforcedeploytool/functions.rb', line 4 def initialize @pinwheel = %w{| / - \\} end |
Instance Method Details
#clean ⇒ Object
12 13 14 |
# File 'lib/salesforcedeploytool/functions.rb', line 12 def clean print "\b" end |
#spin_it ⇒ Object
8 9 10 |
# File 'lib/salesforcedeploytool/functions.rb', line 8 def spin_it print "\b" + @pinwheel.rotate!.first end |