Class: RailsParam::Validator::Format
- Inherits:
-
RailsParam::Validator
- Object
- RailsParam::Validator
- RailsParam::Validator::Format
- Defined in:
- lib/rails_param/validator/format.rb
Constant Summary
Constants inherited from RailsParam::Validator
Instance Attribute Summary
Attributes inherited from RailsParam::Validator
Instance Method Summary collapse
Methods inherited from RailsParam::Validator
#initialize, #valid!, #validate!
Constructor Details
This class inherits a constructor from RailsParam::Validator
Instance Method Details
#valid_value? ⇒ Boolean
4 5 6 |
# File 'lib/rails_param/validator/format.rb', line 4 def valid_value? matches_time_types? || string_in_format? end |