Repository URL to install this package:
Version:
2.2.2-1 ▾
|
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::BlankLine o: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