class TCal::Calendar::ICal
- TCal::Calendar::ICal
- TCal::Calendar
- Reference
- Object
Overview
Generates an iCal calendar from a collection of MBTA Alerts. See RFC5545 for the iCal spec, and RFC7986 for additional properties.
Alerts can have an arbitrary set of periods. The equivalent iCal concept is
RDATE;VALUE=PERIOD
, but unfortunately most calendar apps don't support this
part of the standard. Therefore each period is output as a separate event.
Defined in:
t_cal/calendar/ical.crConstructors
-
.new
Creates a calendar instance.
Instance Method Summary
-
#to_s(io : IO) : Nil
Writes the iCal data to the specified
IO
.