summaryrefslogtreecommitdiff
path: root/golf_prelude.rb
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-07 12:31:50 (GMT)
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-07 12:31:50 (GMT)
commitaf32570535b1a3f3bad3c69aacde44f61164b79a (patch)
tree497c0b29ff9f610a5936c8d641edde2d6918dd8d /golf_prelude.rb
parent99d989be9e3e2d2031c43ca865e096dbdbf0b9d9 (diff)
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
Diffstat (limited to 'golf_prelude.rb')
-rw-r--r--golf_prelude.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/golf_prelude.rb b/golf_prelude.rb
index 8034601..e45f4ca 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