Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ruby / usr / share / ri / 2.2.0 / system / Enumerable / find_index-i.ri
Size: Mime:
U:RDoc::AnyMethod[iI"find_index:ETI"Enumerable#find_index;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph;	[	I"FCompares each entry in <i>enum</i> with <em>value</em> or passes ;TI"Gto <em>block</em>.  Returns the index for the first for which the ;TI"Bevaluated value is non-false.  If no object matches, returns ;TI"<code>nil</code>;To:RDoc::Markup::BlankLineo;
;	[I"OIf neither block nor argument is given, an enumerator is returned instead.;T@o:RDoc::Markup::Verbatim;	[I"D(1..10).find_index  { |i| i % 5 == 0 and i % 7 == 0 }  #=> nil
;TI"C(1..100).find_index { |i| i % 5 == 0 and i % 7 == 0 }  #=> 34
;TI"B(1..100).find_index(50)                                #=> 49;T:@format0:
@fileI"enum.c;T:0@omit_headings_from_table_of_contents_below0I"enum.find_index(value)          -> int or nil
enum.find_index { |obj| block } -> int or nil
enum.find_index                 -> an_enumerator
;T0[I"	(p1);T@FI"Enumerable;TcRDoc::NormalModule00