⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Array
/
View File Name :
sort_by%21-i.ri
U:RDoc::AnyMethod[iI" sort_by!:ETI"Array#sort_by!;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I",Sorts the elements of +self+ in place, ;TI"=using an ordering determined by the block; returns self.;To:RDoc::Markup::BlankLine o; ; [I"3Calls the block with each successive element; ;TI"@sorts elements based on the values returned from the block.;T@o; ; [I"^For duplicates returned by the block, the ordering is indeterminate, and may be unstable.;T@o; ; [I"5This example sorts strings based on their sizes:;To:RDoc::Markup::Verbatim; [I"$a = ['aaaa', 'bbb', 'cc', 'd'] ;TI"*a.sort_by! {|element| element.size } ;TI"'a # => ["d", "cc", "bbb", "aaaa"] ;T:@format0o; ; [I"1Returns a new \Enumerator if no block given:;T@o;; [I"$a = ['aaaa', 'bbb', 'cc', 'd'] ;TI"Ga.sort_by! # => #
;T; 0: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"Narray.sort_by! {|element| ... } -> self array.sort_by! -> new_enumerator ;T0[ I"();T@&FI" Array;TcRDoc::NormalClass00