diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-12-01 11:46:10 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-12-01 11:46:10 +0900 |
| commit | c37c255f191345a1e883222cdb70d09862f33ac8 (patch) | |
| tree | 23a17fc6d84fbc917d093c2f5428bd42c46c4159 | |
| parent | 8461a31cb491f272524d14a9e54fcc9fae7a22c1 (diff) | |
| parent | 31f0ffeac8dc2214d432be3ef78f9776dad32cb0 (diff) | |
| download | mruby-c37c255f191345a1e883222cdb70d09862f33ac8.tar.gz mruby-c37c255f191345a1e883222cdb70d09862f33ac8.zip | |
Merge pull request #3311 from ksss/enum-generator
Support Enumerable methods
| -rw-r--r-- | mrbgems/mruby-enumerator/mrblib/enumerator.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mrbgems/mruby-enumerator/mrblib/enumerator.rb b/mrbgems/mruby-enumerator/mrblib/enumerator.rb index 9abaca38a..1515a7a89 100644 --- a/mrbgems/mruby-enumerator/mrblib/enumerator.rb +++ b/mrbgems/mruby-enumerator/mrblib/enumerator.rb @@ -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 |
