Skip to content
Permalink
Browse files
Support Enumerable methods
  • Loading branch information
ksss committed Dec 1, 2016
1 parent 2bb47ad commit 31f0ffeac8dc2214d432be3ef78f9776dad32cb0
Showing 1 changed file with 1 addition and 0 deletions.
@@ -516,6 +516,7 @@ def feed(value)

# just for internal
class Generator
include Enumerable
def initialize(&block)
raise TypeError, "wrong argument type #{self.class} (expected Proc)" unless block.kind_of? Proc

0 comments on commit 31f0ffe

Please sign in to comment.