{
'Daily' => ->(set=false, args = {}){
unless set
@recurrence_template = ['standard','Days']
else
Parser.rrule(:daily, args)
end;
}, 'Every Weekday ( Mon - Fri )' => ->(set=false, args = {}){
unless set
@recurrence_template = 'set_points'
else
args[:by_day] = [1,2,3,4,5]
Parser.rrule(:weekly, args)
end;
}, 'Every Mon, Wed, Fri' => ->(set=false, args = {}){
unless set
@recurrence_template = 'set_points'
else
args[:by_day] = [1,3,5]
Parser.rrule(:weekly, args)
end;
}, 'Every Tues, Thurs' => ->(set=false, args = {}){
unless set
@recurrence_template = 'set_points'
else
args[:by_day] = [2,4]
Parser.rrule(:weekly, args)
end;
}, 'Every Weekend' => ->(set=false, args = {}){
unless set
@recurrence_template = 'set_points'
else
args[:by_day] = [0,6]
Parser.rrule(:weekly, args)
end;
}, 'Weekly' => ->(set=false, args = {}){
unless set
@recurrence_template = ['weekly', 'Weeks']
else
Parser.rrule(:weekly, args)
end;
}, 'Monthly' => ->(set=false, args = {}){
unless set
@recurrence_template = ['monthly', 'Months']
else
Parser.rrule(:monthly, args)
end;
}, 'Yearly' => ->(set=false, args = {}){
unless set
@recurrence_template = ['standard', 'Years']
else
Parser.rrule(:yearly, args)
end;
} }