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