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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Returns a new Collection optionally scoped by <tt>query</tt>
- !ruby/struct:SM::Flow::P 
  body: This returns a new Collection scoped relative to the current Collection.
- !ruby/struct:SM::Flow::VERB 
  body: "  cars_from_91 = Cars.all(:year_manufactured =&gt; 1991)\n  toyotas_91 = cars_from_91.all(:manufacturer =&gt; 'Toyota')\n  toyotas_91.all? { |car| car.year_manufactured == 1991 }       #=&gt; true\n  toyotas_91.all? { |car| car.manufacturer == 'Toyota' }        #=&gt; true\n"
- !ruby/struct:SM::Flow::P 
  body: If <tt>query</tt> is a Hash, results will be found by merging <tt>query</tt> with this Collection's query. If <tt>query</tt> is a Query, results will be found using <tt>query</tt> as an absolute query.
- !ruby/struct:SM::Flow::P 
  body: "@param [Hash, Query] query"
- !ruby/struct:SM::Flow::VERB 
  body: "  optional parameters to scope results with\n"
- !ruby/struct:SM::Flow::P 
  body: "@return [Collection]"
- !ruby/struct:SM::Flow::VERB 
  body: "  Collection scoped by <tt>query</tt>\n"
- !ruby/struct:SM::Flow::P 
  body: "@api public"
full_name: DataMapper::Collection#all
is_singleton: false
name: all
params: (query = nil)
visibility: public
