mruby-string-ext: String#lines should return self called with block

This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-06-27 16:45:28 +09:00
parent edb24b130e
commit e6fa544b67
+3 -1
View File
@@ -98,8 +98,10 @@ class String
lines.each do |line|
blk.call(line)
end
self
else
lines
end
lines
end
##