From 49f86f19b2debe1ad5f56575d01d20a82cb76e57 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sun, 1 Oct 2023 22:33:42 +0900 Subject: [PATCH] mruby-enumerator: put "__" prefix to internal enumerator_block_call() --- mrbgems/mruby-enumerator/mrblib/enumerator.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mrbgems/mruby-enumerator/mrblib/enumerator.rb b/mrbgems/mruby-enumerator/mrblib/enumerator.rb index 72cc97d5a..eaad43cd1 100644 --- a/mrbgems/mruby-enumerator/mrblib/enumerator.rb +++ b/mrbgems/mruby-enumerator/mrblib/enumerator.rb @@ -173,7 +173,7 @@ class Enumerator end n = offset - 1 - enumerator_block_call do |*i| + __enumerator_block_call do |*i| n += 1 block.call i.__svalue, n end @@ -223,7 +223,7 @@ class Enumerator def with_object(object, &block) return to_enum(:with_object, object) unless block - enumerator_block_call do |i| + __enumerator_block_call do |i| block.call [i,object] end object @@ -288,13 +288,13 @@ class Enumerator obj.instance_eval{@args = args} end return obj unless block - enumerator_block_call(&block) + __enumerator_block_call(&block) end - def enumerator_block_call(&block) + def __enumerator_block_call(&block) @obj.__send__ @meth, *@args, **@kwd, &block end - private :enumerator_block_call + private :__enumerator_block_call ## # call-seq: