Method: Utils::Spinner#start_processing

Defined in:
lib/utils/processing_spinner.rb

#start_processingObject



9
10
11
12
13
14
15
16
# File 'lib/utils/processing_spinner.rb', line 9

def start_processing
  @wheel = %w{| / - \\}
  @processing = true
  while @processing do
    print "\b" + @wheel.rotate!.first
    sleep(0.1)
  end
end