2015-12-30 11:55:14 +00:00
|
|
|
require "../src/spinner"
|
|
|
|
|
|
|
|
puts "starting..."
|
|
|
|
sp = Spin.new(0.1)
|
|
|
|
sp.start
|
|
|
|
sleep 3
|
|
|
|
sp.stop
|
|
|
|
puts "end!"
|
|
|
|
|
2015-12-30 14:21:42 +00:00
|
|
|
sp1 = Spin.new(0.1, Spinner::Charset[:three_dots])
|
2015-12-30 11:55:14 +00:00
|
|
|
sp1.start
|
|
|
|
sleep 3
|
|
|
|
sp1.stop
|
|
|
|
|
|
|
|
sp1 = Spin.new(0.1)
|
2015-12-30 14:21:42 +00:00
|
|
|
sp1.chars = Spinner::Charset[:arrow]
|
2015-12-30 11:55:14 +00:00
|
|
|
sp1.start
|
|
|
|
sleep 3
|
|
|
|
sp1.stop
|