Merge pull request #3311 from ksss/enum-generator

Support Enumerable methods
This commit is contained in:
Yukihiro "Matz" Matsumoto
2016-12-01 11:46:10 +09:00
committed by GitHub
@@ -516,6 +516,7 @@ class Enumerator
# just for internal
class Generator
include Enumerable
def initialize(&block)
raise TypeError, "wrong argument type #{self.class} (expected Proc)" unless block.kind_of? Proc