Repository URL to install this package:
Version:
2.2.2-1 ▾
|
U:RDoc::AnyMethod[iI" any?:ETI"Enumerable#any?;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"JPasses each element of the collection to the given block. The method ;TI"Greturns <code>true</code> if the block ever returns a value other ;TI"Fthan <code>false</code> or <code>nil</code>. If the block is not ;TI"Kgiven, Ruby adds an implicit block of <code>{ |obj| obj }</code> that ;TI"Iwill cause #any? to return +true+ if at least one of the collection ;TI"%members is not +false+ or +nil+.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"@%w[ant bear cat].any? { |word| word.length >= 3 } #=> true ;TI"@%w[ant bear cat].any? { |word| word.length >= 4 } #=> true ;TI"?[nil, true, 99].any? #=> true;T:@format0: @fileI"enum.c;T:0@omit_headings_from_table_of_contents_below0I"4enum.any? [{ |obj| block }] -> true or false ;T0[ I"();T@FI"Enumerable;TcRDoc::NormalModule00