⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.13
Server IP:
109.199.105.153
Server:
Linux connect.inboxifs.com 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Array
/
View File Name :
rindex-i.ri
U:RDoc::AnyMethod[iI"rindex:ETI"Array#rindex;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"PReturns the index of the last element for which <tt>object == element</tt>.;To:RDoc::Markup::BlankLine o; ; [I"dWhen argument +object+ is given but no block, returns the index of the last such element found:;To:RDoc::Markup::Verbatim; [I"!a = [:foo, 'bar', 2, 'bar'] ;TI"a.rindex('bar') # => 3 ;T:@format0o; ; [I"+Returns +nil+ if no such object found.;T@o; ; [I"ZWhen a block is given but no argument, calls the block with each successive element; ;TI"Vreturns the index of the last element for which the block returns a truthy value:;To;; [I"!a = [:foo, 'bar', 2, 'bar'] ;TI"3a.rindex {|element| element == 'bar' } # => 3 ;T; 0o; ; [I"=Returns +nil+ if the block never returns a truthy value.;T@o; ; [I"NWhen neither an argument nor a block is given, returns a new \Enumerator:;T@o;; [ I"!a = [:foo, 'bar', 2, 'bar'] ;TI"e = a.rindex ;TI":e # => #<Enumerator: [:foo, "bar", 2, "bar"]:rindex> ;TI"1e.each {|element| element == 'bar' } # => 3 ;T; 0o; ; [I"Related: #index.;T: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"{array.rindex(object) -> integer or nil array.rindex {|element| ... } -> integer or nil array.rindex -> new_enumerator ;T0[ I"(*args);T@0FI" Array;TcRDoc::NormalClass00