diff --git a/mrbgems/mruby-enumerator/mrblib/enumerator.rb b/mrbgems/mruby-enumerator/mrblib/enumerator.rb index 176ae661c..02d88a9e5 100644 --- a/mrbgems/mruby-enumerator/mrblib/enumerator.rb +++ b/mrbgems/mruby-enumerator/mrblib/enumerator.rb @@ -267,8 +267,13 @@ class Enumerator @args = args end return self unless block_given? + enumerator_block_call(&block) + end + + def enumerator_block_call(&block) @obj.__send__ @meth, *@args, &block end + private :enumerator_block_call ## # call-seq: