From af32570535b1a3f3bad3c69aacde44f61164b79a Mon Sep 17 00:00:00 2001 From: kazu Date: Thu, 7 Sep 2017 12:31:50 +0000 Subject: [PATCH] Use `%i`-literal instead of array of symbols git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- golf_prelude.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/golf_prelude.rb b/golf_prelude.rb index 8034601287..e45f4cafd9 100644 --- a/golf_prelude.rb +++ b/golf_prelude.rb @@ -85,7 +85,7 @@ class String split('') end - (Array.instance_methods - instance_methods - [:to_ary, :transpose, :flatten, :flatten!, :compact, :compact!, :assoc, :rassoc]).each{|meth| + (Array.instance_methods - instance_methods - %i[to_ary transpose flatten flatten! compact compact! assoc rassoc]).each{|meth| eval " def #{meth}(*args, &block) a = to_a