Skip to content
Permalink
Browse files
Use alias enum_for to_enum instead of alias :enum_for :to_enum.
  • Loading branch information
matz committed Jun 21, 2017
1 parent 057be5f commit 464d3fc0a329ba045052b07fdbfbc3e37dc787d2
Showing 1 changed file with 1 addition and 1 deletion.
@@ -612,7 +612,7 @@ module Kernel
def to_enum(meth=:each, *args)
Enumerator.new self, meth, *args
end
alias :enum_for :to_enum
alias enum_for to_enum
end

module Enumerable

0 comments on commit 464d3fc

Please sign in to comment.