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 <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-12-04 19:33:09 +09:00
parent 5f20013219
commit 1fbace12a4
+1 -1
View File
@@ -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