Unverified Commit 31f0ffea authored by ksss's avatar ksss

Support Enumerable methods

parent 2bb47add
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment