update examples to return a string array as chars

This commit is contained in:
Edoardo Tenani 2016-08-23 22:08:22 +02:00
parent df343cb0b2
commit f710c617ac
2 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@ require "../src/spinner"
require "colorize"
chars = Spinner::Charset[:arrow].map do |c|
c.colorize(:light_green)
c.colorize(:light_green).to_s
end
spin = Spin.new(0.2, chars)

View file

@ -1,9 +1,9 @@
require "../src/spinner"
require "colorize"
colors = {:red, :light_red, :yellow, :green, :light_blue, :blue, :magenta}
colors = [:red, :light_red, :yellow, :green, :light_blue, :blue, :magenta]
chars = colors.map do |color|
".xXx.".colorize(color)
".xXx.".colorize(color).to_s
end
spin = Spin.new(0.01, chars)