Skip to content

Commit

Permalink
Support Enumerable methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ksss committed Dec 1, 2016
1 parent 2bb47ad commit 31f0ffe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mrbgems/mruby-enumerator/mrblib/enumerator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 31f0ffe

Please sign in to comment.