D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Array
/
Filename :
drop_while-i.ri
back
Copy
U:RDoc::AnyMethod[iI"drop_while:ETI"Array#drop_while;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"QWith a block given, calls the block with each successive element of +self+; ;TI"2stops if the block returns +false+ or +nil+; ;TI"`returns a new array _omitting_ those elements for which the block returned a truthy value; ;TI"does not modify +self+:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"a = [0, 1, 2, 3, 4, 5] ;TI":a.drop_while {|element| element < 3 } # => [3, 4, 5] ;T:@format0o; ; [I"3With no block given, returns a new Enumerator.;T@o; ; [I"NRelated: see {Methods for Fetching}[rdoc-ref:Array@Methods+for+Fetching].;T: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"Kdrop_while {|element| ... } -> new_array drop_while -> new_enumerator ;T0[ I"();T@FI" Array;TcRDoc::NormalClass00