mruby-enum-ext: fix remaining block parameter spacing

changed block spacing from method{ to method { for consistency.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-12-07 08:24:12 +09:00
parent b7563c327b
commit 8b0a4519b1
+2 -2
View File
@@ -923,13 +923,13 @@ class Array
return to_enum(:sort_by) unless block
ary = []
self.each_with_index{|e, i|
self.each_with_index {|e, i|
ary.push([block.call(e), i])
}
if ary.size > 1
ary.sort!
end
ary.collect!{|e,i| self[i]}
ary.collect! {|e,i| self[i]}
end
def sort_by!(&block)