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 / first-i.ri
Size: Mime:
U:RDoc::AnyMethod[iI"
first:ETI"Enumerable#first;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"NReturns the first element, or the first +n+ elements, of the enumerable. ;TI"RIf the enumerable is empty, the first form returns <code>nil</code>, and the ;TI"(second form returns an empty array.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[	I")%w[foo bar baz].first     #=> "foo"
;TI"2%w[foo bar baz].first(2)  #=> ["foo", "bar"]
;TI"9%w[foo bar baz].first(10) #=> ["foo", "bar", "baz"]
;TI"&[].first                  #=> nil;T:@format0:
@fileI"enum.c;T:0@omit_headings_from_table_of_contents_below0I"Cenum.first       ->  obj or nil
enum.first(n)    ->  an_array
;T0[I"(*args);T@FI"Enumerable;TcRDoc::NormalModule00