Class: Pinwheel

Inherits:
Object
  • Object
show all
Defined in:
lib/salesforcedeploytool/functions.rb

Instance Method Summary collapse

Constructor Details

#initializePinwheel

Returns a new instance of Pinwheel.



4
5
6
# File 'lib/salesforcedeploytool/functions.rb', line 4

def initialize
  @pinwheel = %w{| / - \\}
end

Instance Method Details

#cleanObject



12
13
14
# File 'lib/salesforcedeploytool/functions.rb', line 12

def clean
  print "\b"
end

#spin_itObject



8
9
10
# File 'lib/salesforcedeploytool/functions.rb', line 8

def spin_it
  print "\b" + @pinwheel.rotate!.first
end