Method: RiCal::PropertyValue::RecurrenceRule::Validations#validate_byweekno_list

Defined in:
lib/ri_cal/property_value/recurrence_rule/validations.rb

#validate_byweekno_listObject



116
117
118
119
120
121
# File 'lib/ri_cal/property_value/recurrence_rule/validations.rb', line 116

def validate_byweekno_list
  days = by_list[:byweekno] || []
  days.each do |day|
    errors << "#{day.source.inspect} is not a valid week number" unless day.valid?
  end
end