igneus / calendarium-romanum

liturgical calendar library (Roman Catholic, post-Vatican II)
50 stars 21 forks source link

Implement Calendar#[] #15

Closed igneus closed 6 years ago

igneus commented 6 years ago

There is currently method #day to retrieve liturgical data for a specified date; #[] will be partly an alias, partly a generalization:

It should accept either a Date (anything that behaves like a Date) or a Range of Dates (or date-like objects) and return a single Day or an Array of Days.

The same method should be also available on PerpetualCalendar, but it's not required to provide both Calendar#[] and PerpetualCalendar#[] in the same PR.