mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user