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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Validates that the length of the attribute is equal to, less than, greater than or within a certain range (depending upon the options you specify).
- !ruby/struct:SM::Flow::P 
  body: "@option :allow_nil&lt;Boolean&gt; true/false (default is true) @option :minimum ensures that the attribute's length is greater than"
- !ruby/struct:SM::Flow::VERB 
  body: "  or equal to the supplied value\n"
- !ruby/struct:SM::Flow::P 
  body: "@option :min alias for :minimum @option :maximum ensures the attribute's length is less than or equal"
- !ruby/struct:SM::Flow::VERB 
  body: "  to the supplied value\n"
- !ruby/struct:SM::Flow::P 
  body: "@option :max alias for :maximum @option :equals ensures the attribute's length is equal to the"
- !ruby/struct:SM::Flow::VERB 
  body: "  supplied value\n"
- !ruby/struct:SM::Flow::P 
  body: "@option :is alias for :equals @option :in&lt;Range&gt; given a Range, ensures that the attributes length is"
- !ruby/struct:SM::Flow::VERB 
  body: "  include?'ed in the Range\n"
- !ruby/struct:SM::Flow::P 
  body: "@option :within&lt;Range&gt; alias for :in"
- !ruby/struct:SM::Flow::P 
  body: "@example [Usage]"
- !ruby/struct:SM::Flow::VERB 
  body: "  require 'dm-validations'\n\n  class Page\n    include DataMapper::Resource\n\n    property high, Integer\n    property low, Integer\n    property just_right, Integer\n\n    validates_length :high, :min =&gt; 100000000000\n    validates_length :low, :equals =&gt; 0\n    validates_length :just_right, :within =&gt; 1..10\n\n    # a call to valid? will return false unless:\n    # high is greater than or equal to 100000000000\n    # low is equal to 0\n    # just_right is between 1 and 10 (inclusive of both 1 and 10)\n"
full_name: DataMapper::Validate::ValidatesLength#validates_length
is_singleton: false
name: validates_length
params: (*fields)
visibility: public
