--- !ruby/object:RI::MethodDescription 
aliases: 
- !ruby/object:RI::AliasName 
  name: slice
block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Simulates Array#slice and returns a new Collection whose query has a new offset or limit according to the arguments provided.
- !ruby/struct:SM::Flow::P 
  body: If you provide a range, the min is used as the offset and the max minues the offset is used as the limit.
- !ruby/struct:SM::Flow::P 
  body: "@param [Integer, Array(Integer), Range] *args"
- !ruby/struct:SM::Flow::VERB 
  body: "  the offset, offset and limit, or range indicating first and last position\n"
- !ruby/struct:SM::Flow::P 
  body: "@return [Resource, Collection, nil]"
- !ruby/struct:SM::Flow::VERB 
  body: "  The entry which resides at that offset and limit,\n  or a new Collection object with the set limits and offset\n"
- !ruby/struct:SM::Flow::P 
  body: "@return [nil]"
- !ruby/struct:SM::Flow::VERB 
  body: "  The offset (or starting offset) is out of range\n"
- !ruby/struct:SM::Flow::P 
  body: "@raise [ArgumentError] &quot;arguments may be 1 or 2 Integers,"
- !ruby/struct:SM::Flow::VERB 
  body: "  or 1 Range object, was: #{args.inspect}&quot;\n"
- !ruby/struct:SM::Flow::P 
  body: "@api public"
full_name: DataMapper::Collection#[]
is_singleton: false
name: "[]"
params: (*args)
visibility: public
