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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Validates that the specified attribute is present.
- !ruby/struct:SM::Flow::P 
  body: "For most property types &quot;being present&quot; is the same as being &quot;not blank&quot; as determined by the attribute's #blank? method. However, in the case of Boolean, &quot;being present&quot; means not nil; i.e. true or false."
- !ruby/struct:SM::Flow::P 
  body: "@note"
- !ruby/struct:SM::Flow::VERB 
  body: "  dm-core's support lib adds the blank? method to many classes,\n"
- !ruby/struct:SM::Flow::P 
  body: "@see lib/dm-core/support/blank.rb (dm-core) for more information."
- !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 :required_attribute, String\n    property :another_required, String\n    property :yet_again, String\n\n    validates_present :required_attribute\n    validates_present :another_required, :yet_again\n\n    # a call to valid? will return false unless\n    # all three attributes are !blank?\n  end\n"
full_name: DataMapper::Validate::ValidatesPresent#validates_present
is_singleton: false
name: validates_present
params: (*fields)
visibility: public
