From 8a8df658f6ef233ff3a75de2f9e989c942cd0c05 Mon Sep 17 00:00:00 2001 From: "Abinoam P. Marques Jr" Date: Sun, 24 Sep 2017 22:59:30 -0300 Subject: Use Hash#each_value --- lib/highline/style.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/highline/style.rb b/lib/highline/style.rb index 0ac5102..773cba0 100755 --- a/lib/highline/style.rb +++ b/lib/highline/style.rb @@ -93,7 +93,7 @@ class HighLine #:nodoc: # reset to builtin only styles @styles = list.select { |_name, style| style.builtin } @code_index = {} - @styles.each { |_name, style| index(style) } + @styles.each_value { |style| index(style) } end # Converts all given color codes to hexadecimal and -- cgit v1.2.1