--- !ruby/object:RI::MethodDescription 
aliases: 
- !ruby/object:RI::AliasName 
  name: "[]"
block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Slices collection by adding limit and offset to the query, so a single query is executed
- !ruby/struct:SM::Flow::P 
  body: "@example"
- !ruby/struct:SM::Flow::VERB 
  body: "  Journal.all(:limit =&gt; 10).slice(3, 5)\n"
- !ruby/struct:SM::Flow::P 
  body: "will execute query with the following limit and offset (when repository uses DataObjects adapter, and thus queries use SQL):"
- !ruby/struct:SM::Flow::VERB 
  body: "  LIMIT 5 OFFSET 3\n"
- !ruby/struct:SM::Flow::P 
  body: "@api semipublic"
full_name: DataMapper::Query#slice
is_singleton: false
name: slice
params: (*args)
visibility: public
