mruby-io: add parentheses to to_enum call

added parentheses to to_enum call where the return value is used,
explicitly specifying :each for readability.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-12-04 19:31:40 +09:00
parent 6e67d64068
commit 5f20013219
+1 -1
View File
@@ -210,7 +210,7 @@ class IO
#
# 15.2.20.5.3
def each(&block)
return to_enum unless block
return to_enum(:each) unless block
while line = self.gets
block.call(line)