rossta / montrose

Recurring events library for Ruby. Enumerable recurrence objects and convenient chainable interface.
https://rossta.net/montrose/
MIT License
843 stars 53 forks source link

Support inquiries other than .include? #122

Closed martinstreicher closed 3 years ago

martinstreicher commented 5 years ago

I am posting this to collect thoughts and perhaps learn of approaches using the current code.

I see that .include? is a way to determine if a timestamp (instance of Time) is included in a schedule. That's useful, but it's making very fine-grained comparisons to yield a match.

I would like to have the following methods:

I am sure there are other conveniences for comparing, such as whether a calendar includes any of the times, all of the times, none of the the times.

rossta commented 5 years ago

@martinstreicher Thanks for the suggestions. Feel free to start a PR if you're able/interested in adding these features.

martinstreicher commented 5 years ago

I am working with this code on a project, so I can likely put up a PR shortly.

rossta commented 3 years ago

Closing for now. Feel free to open if you're still actively working on this.