--- !ruby/object:RDoc::RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: Passes elements to the block until the block returns nil or false, then stops iterating and returns an array of all prior elements.
- !ruby/struct:RDoc::Markup::Flow::VERB 
  :body: "   a = [1, 2, 3, 4, 5, 0]\n   a.take_while {|i| i &lt; 3 }   # =&gt; [1, 2]\n"
full_name: Array#take_while
is_singleton: false
name: take_while
params: |
  ary.take_while {|arr| block }   => array

visibility: public
