mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Support Enumerable methods
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user