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.
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 aDate
) or aRange
ofDates
(or date-like objects) and return a singleDay
or anArray
ofDay
s.The same method should be also available on
PerpetualCalendar
, but it's not required to provide bothCalendar#[]
andPerpetualCalendar#[]
in the same PR.