update examples to return a string array as chars
This commit is contained in:
parent
df343cb0b2
commit
f710c617ac
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue