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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Return the last Resource or the last N Resources in the Collection with an optional query
- !ruby/struct:SM::Flow::P 
  body: When there are no arguments, return the last Resource in the Collection. When the first argument is an Integer, return a Collection containing the last N Resources. When the last (optional) argument is a Hash scope the results to the query.
- !ruby/struct:SM::Flow::P 
  body: "@param [Integer] limit (optional)"
- !ruby/struct:SM::Flow::VERB 
  body: "  limit the returned Collection to a specific number of entries\n"
- !ruby/struct:SM::Flow::P 
  body: "@param [Hash] query (optional)"
- !ruby/struct:SM::Flow::VERB 
  body: "  scope the returned Resource or Collection to the supplied query\n"
- !ruby/struct:SM::Flow::P 
  body: "@return [Resource, Collection]"
- !ruby/struct:SM::Flow::VERB 
  body: "  The last resource in the entries of this collection,\n  or a new collection whose query has been merged\n"
- !ruby/struct:SM::Flow::P 
  body: "@api public"
full_name: DataMapper::Collection#last
is_singleton: false
name: last
params: (*args)
visibility: public
