Permalink
Browse files

Support Enumerable methods

  • Loading branch information...
ksss committed Dec 1, 2016
1 parent 2bb47ad commit 31f0ffeac8dc2214d432be3ef78f9776dad32cb0
Showing with 1 addition and 0 deletions.
  1. +1 −0 mrbgems/mruby-enumerator/mrblib/enumerator.rb
@@ -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.