summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorksss <[email protected]>2014-03-14 23:42:04 +0900
committerksss <[email protected]>2014-03-14 23:42:04 +0900
commit29964cfdac05d558ae699e890d7224d5d04eadb5 (patch)
tree802058d4a47547dd5db5eec623feb2d0286ebba6
parente893349e95259dd7902048928525e30352478c7d (diff)
downloadmruby-29964cfdac05d558ae699e890d7224d5d04eadb5.tar.gz
mruby-29964cfdac05d558ae699e890d7224d5d04eadb5.zip
make private method enumerator_block_call
-rw-r--r--mrbgems/mruby-enumerator/mrblib/enumerator.rb5
1 files changed, 5 insertions, 0 deletions
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: