⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.116
Server IP:
78.40.11.138
Server:
Linux tango.o2switch.net 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
alt
/
ruby31
/
share
/
ri
/
system
/
Enumerable
/
Edit File: any%3f-i.ri
U:RDoc::AnyMethod[iI" any?:ETI"Enumerable#any?;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"9Returns whether any element meets a given criterion.;To:RDoc::Markup::BlankLine o; ; [I"$With no argument and no block, ;TI"+returns whether any element is truthy:;T@o:RDoc::Markup::Verbatim; [ I"$(1..4).any? # => true ;TI"$%w[a b c d].any? # => true ;TI"$[1, false, nil].any? # => true ;TI"%[].any? # => false ;T:@format0o; ; [I"+With argument +pattern+ and no block, ;TI"0returns whether for any element +element+, ;TI""<tt>pattern === element</tt>:;T@o;; [I"4[nil, false, 0].any?(Integer) # => true ;TI"4[nil, false, 0].any?(Numeric) # => true ;TI"5[nil, false, 0].any?(Float) # => false ;TI"4%w[bar baz bat bam].any?(/m/) # => true ;TI"5%w[bar baz bat bam].any?(/foo/) # => false ;TI"5%w[bar baz bat bam].any?('ba') # => false ;TI"4{foo: 0, bar: 1, baz: 2}.any?(Array) # => true ;TI"5{foo: 0, bar: 1, baz: 2}.any?(Hash) # => false ;TI"5[].any?(Integer) # => false ;T; 0o; ; [I"JWith a block given, returns whether the block returns a truthy value ;TI"for any element:;T@o;; [ I"G(1..4).any? {|element| element < 2 } # => true ;TI"H(1..4).any? {|element| element < 1 } # => false ;TI"G{foo: 0, bar: 1, baz: 2}.any? {|key, value| value < 1 } # => true ;TI"H{foo: 0, bar: 1, baz: 2}.any? {|key, value| value < 0 } # => false ;T; 0o; ; [I"#Related: #all?, #none?, #one?.;T: @fileI"enum.c;T:0@omit_headings_from_table_of_contents_below0I"zany? -> true or false any?(pattern) -> true or false any? {|element| ... } -> true or false ;T0[ I"(*args);T@6FI"Enumerable;TcRDoc::NormalModule00
Simpan