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