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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Get the highest value of a property
- !ruby/struct:SM::Flow::P 
  body: "@example the age of the oldest friend"
- !ruby/struct:SM::Flow::VERB 
  body: "  Friend.max(:age)\n"
- !ruby/struct:SM::Flow::P 
  body: "@example the age of the oldest female friend"
- !ruby/struct:SM::Flow::VERB 
  body: "  Friend.max(:age, :conditions =&gt; [ 'gender = ?', 'female' ])\n"
- !ruby/struct:SM::Flow::P 
  body: "@param property [Symbol] the property you wish to get the highest value of @param opts [Hash, Symbol] the conditions"
- !ruby/struct:SM::Flow::P 
  body: "@return [Integer] return the highest value of a property given the conditions"
- !ruby/struct:SM::Flow::P 
  body: "@api public"
full_name: DataMapper::Aggregates::Functions#max
is_singleton: false
name: max
params: (*args)
visibility: public
