summaryrefslogtreecommitdiff
path: root/examples/ansi_colors.rb
diff options
context:
space:
mode:
authorAbinoam P. Marques Jr <abinoam@gmail.com>2017-06-30 23:53:15 -0300
committerAbinoam P. Marques Jr <abinoam@gmail.com>2017-06-30 23:53:15 -0300
commit97888f5f91f9675ef2f7809fe1cb423abf6099c8 (patch)
treed26f2898b93308ba8a3e12b5fd3b363a46a0ef59 /examples/ansi_colors.rb
parent7a63996d6eaccbe403c724f40a771e4a48c7ea34 (diff)
downloadhighline-97888f5f91f9675ef2f7809fe1cb423abf6099c8.tar.gz
Rubocop automatic corrections
Diffstat (limited to 'examples/ansi_colors.rb')
-rw-r--r--examples/ansi_colors.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/ansi_colors.rb b/examples/ansi_colors.rb
index 6986e72..e39b5cc 100644
--- a/examples/ansi_colors.rb
+++ b/examples/ansi_colors.rb
@@ -9,7 +9,7 @@ require "rubygems"
require "highline/import"
# Supported color sequences.
-colors = %w{black red green yellow blue magenta cyan white}
+colors = %w[black red green yellow blue magenta cyan white]
# Using color() with symbols.
colors.each_with_index do |c, i|
@@ -26,7 +26,7 @@ say("This should be <%= color('underlined', UNDERLINE) %>!")
say("This might even <%= BLINK %>blink<%= CLEAR %>!")
# It even works with list wrapping.
-erb_digits = %w{Zero One Two Three Four} +
+erb_digits = %w[Zero One Two Three Four] +
["<%= color('Five', :blue) %%>"] +
- %w{Six Seven Eight Nine}
+ %w[Six Seven Eight Nine]
say("<%= list(#{erb_digits.inspect}, :columns_down, 3) %>")