Support Enumerable methods

This commit is contained in:
ksss
2016-12-01 10:39:46 +09:00
parent 2bb47addad
commit 31f0ffeac8
@@ -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