You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be handy to have Schedule#to_s return a text description of the Schedule.
schedule=Repeatable::Schedule.new(weekday_in_month: {weekday: 2,count: 1})schedule.to_s# => "The first Tuesday of every month"
Obviously, that's a straightforward case and things get more difficult with Unions and Intersections.
The first step would probably involve coming up with how you'd naturally describe more complex expressions and then devise a plan for a #to_s for each Expression type.
The text was updated successfully, but these errors were encountered:
It would be handy to have
Schedule#to_s
return a text description of theSchedule
.Obviously, that's a straightforward case and things get more difficult with
Union
s andIntersection
s.The first step would probably involve coming up with how you'd naturally describe more complex expressions and then devise a plan for a
#to_s
for eachExpression
type.The text was updated successfully, but these errors were encountered: