module Icalendar # A Todo calendar component is a grouping of component # properties and possibly Alarm calendar components that represent # an action-item or assignment. For example, it can be used to # represent an item of work assigned to an individual; such as "turn in # travel expense today". class Todo < Component attr_reader :alarms def initialize() super("VTODO") @alarms = alarms end def to_s print_string { |s| @alarms.each { |alarm| alarm.to_s } } end end end