Method: RiCal::PropertyValue::RecurrenceRule::Validations#valid?
- Defined in:
- lib/ri_cal/property_value/recurrence_rule/validations.rb
#valid? ⇒ Boolean
Validate that the parameters of the reciever conform to RFC 2445 If errors are found they will be added to the receivers errors
Whenever any of the parameters are set, e.g. with:
recurrence_rule.count = 2
the errors will be reset
13 14 15 16 |
# File 'lib/ri_cal/property_value/recurrence_rule/validations.rb', line 13 def valid? validate if @errors.nil? errors.empty? end |