def validate_constraints(value)
      options.each do |option, arg|
        if validator_class = Respect.validator_for(option)
          validator_class.new(arg).validate(value)
        end
      end
    end
def validate_constraints(value)
      options.each do |option, arg|
        if validator_class = Respect.validator_for(option)
          validator_class.new(arg).validate(value)
        end
      end
    end
def validate_constraints ( value ) options . each do | option , arg | if validator_class = Respect . validator_for ( option ) validator_class . new ( arg ) . validate ( value ) end end end
Validate all the constraints listed in +options+ to the
 given +value+.
Validate all the constraints listed in + options + to the given + value + .