Class: Mixture::Validate::Match
- Defined in:
- lib/mixture/validate/match.rb
Overview
Checks that a value matches.
Instance Method Summary collapse
-
#validate(record, attribute, value) ⇒ void
Performs the validation.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Mixture::Validate::Base
Instance Method Details
#validate(record, attribute, value) ⇒ void
This method returns an undefined value.
Performs the validation.
15 16 17 18 |
# File 'lib/mixture/validate/match.rb', line 15 def validate(record, attribute, value) super error("Value does not match") unless match? end |