Sha256: 0bca014de71f078e8bbb7f13186225174c4a13de9e24f6a5d0d07741f0f0c8a2

Contents?: true

Size: 797 Bytes

Versions: 1

Compression:

Stored size: 797 Bytes

Contents

require 'bundler/setup'
require 'spin_r'

def test_spinner(spinner, name)
  block = proc do
    sleep 1
    puts 'You spin my head right round! right round!'
    sleep 2
    puts 'When you go down!'
    sleep 3
    puts 'When you go down town!'
  end

  puts "SpinR::Spinners::#{name} Spinner"
  puts
  SpinR.spin(spinner, &block)
  puts
  puts
end

test_spinner SpinR::Spinners::TRADITIONAL, 'TRADITIONAL'
test_spinner SpinR::Spinners::BLOCK, 'BLOCK'
test_spinner SpinR::Spinners::DOTTED_1, 'DOTTED_1'
test_spinner SpinR::Spinners::DOTTED_2, 'DOTTED_2'
test_spinner SpinR::Spinners::DOTTED_3, 'DOTTED_3'
test_spinner SpinR::Spinners::DOTTED_4, 'DOTTED_4'
test_spinner SpinR::Spinners::WORLD, 'WORLD'
test_spinner SpinR::Spinners::TRIANGLE, 'TRIANGLE'
test_spinner SpinR::Spinners::EMOJI, 'EMOJI'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spin_r-0.1.0 demo.rb