From 1fbace12a46380be2edd20675544b05b523a73a4 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 4 Dec 2025 19:33:09 +0900 Subject: [PATCH] mruby-object-ext: add parentheses to to_enum call added parentheses to to_enum call where the return value is used. Co-authored-by: Claude --- mrbgems/mruby-object-ext/mrblib/object.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrbgems/mruby-object-ext/mrblib/object.rb b/mrbgems/mruby-object-ext/mrblib/object.rb index e7e60692e..065fb22ae 100644 --- a/mrbgems/mruby-object-ext/mrblib/object.rb +++ b/mrbgems/mruby-object-ext/mrblib/object.rb @@ -8,7 +8,7 @@ module Kernel # 'my string'.yield_self {|s|s.upcase} #=> "MY STRING" # def yield_self(&block) - return to_enum :yield_self unless block + return to_enum(:yield_self) unless block block.call(self) end alias then yield_self