diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-07 12:31:50 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-07 12:31:50 +0000 |
commit | 56c13cdce54ccaabaade39ff736f05f8c3e2fc7c (patch) | |
tree | 497c0b29ff9f610a5936c8d641edde2d6918dd8d | |
parent | 68b35a5dde919b4999fcdf49bdde46078feba56f (diff) | |
download | ruby-56c13cdce54ccaabaade39ff736f05f8c3e2fc7c.tar.gz |
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
-rw-r--r-- | golf_prelude.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |