Closed wilsonfreitas closed 11 years ago
After a second though I realized that Calendar shouldn't read the specification file. It should receive a list of dates and a new class, an extension of Calendar should handle that. I am changing this issue into a BUG, instead of an enhancement.
Done d5c74aa0807dfe535dfb70e7cb00c872da6f4437
Now bizdays
has 2 classes Calendar
, which receives a list of holidays and CalendarSpec
which handles with tha calendar specification file.
Where to find the calendar spec? The directory should be provided, or the path should be passed together with the calendar spec name, but the calendar's name wouldn't have the path.
or specify the directory explicitly
or lastly a singleton to hold the settings.