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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Validates that the specified attribute is of the correct primitive type.
- !ruby/struct:SM::Flow::P 
  body: "@example [Usage]"
- !ruby/struct:SM::Flow::VERB 
  body: "  require 'dm-validations'\n\n  class Person\n    include DataMapper::Resource\n\n    property :birth_date, Date\n\n    validates_is_primitive :birth_date\n\n    # a call to valid? will return false unless\n    # the birth_date is something that can be properly\n    # casted into a Date object.\n  end\n"
full_name: DataMapper::Validate::ValidatesIsPrimitive#validates_is_primitive
is_singleton: false
name: validates_is_primitive
params: (*fields)
visibility: public
