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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Construct a validator. Capture the :if and :unless clauses when present.
- !ruby/struct:SM::Flow::P 
  body: "@param field&lt;String, Symbol&gt; The property specified for validation"
- !ruby/struct:SM::Flow::P 
  body: "@option :if&lt;Symbol, Proc&gt; The name of a method or a Proc to call to"
- !ruby/struct:SM::Flow::VERB 
  body: "                    determine if the validation should occur.\n"
- !ruby/struct:SM::Flow::P 
  body: "@option :unless&lt;Symbol, Proc&gt; The name of a method or a Proc to call to"
- !ruby/struct:SM::Flow::VERB 
  body: "                        determine if the validation should not occur\n"
- !ruby/struct:SM::Flow::P 
  body: All additional key/value pairs are passed through to the validator that is sub-classing this GenericValidator
full_name: DataMapper::Validate::GenericValidator::new
is_singleton: true
name: new
params: (field, opts = {})
visibility: public
