Method: DataModel::Errors#max_error_message

Defined in:
lib/data_model/errors.rb

#max_error_message(max, val) ⇒ String

Generate a message for a min error

Parameters:

  • max (Numeric)

    the maximum value

  • val (Numeric)

    the value that failed

Returns:

  • (String)

    the message



165
166
167
# File 'lib/data_model/errors.rb', line 165

def max_error_message(max, val)
	"value is more than the maximum of #{max}, it is #{val}"
end