Class: Compel::Validation::If
- Defined in:
- lib/compel/validation/conditions/if.rb
Instance Attribute Summary
Attributes inherited from Condition
#option_value, #options, #value, #value_type
Instance Method Summary collapse
Methods inherited from Condition
#initialize, validate, #validate
Constructor Details
This class inherits a constructor from Compel::Validation::Condition
Instance Method Details
#validate_value ⇒ Object
8 9 10 11 12 |
# File 'lib/compel/validation/conditions/if.rb', line 8 def validate_value unless valid? "is invalid" end end |