# File lib/icalendar/calendar.rb, line 28 def event(&block) e = Event.new # Note: I'm not sure this is the best way to pass this down, but it works e.tzid = self.timezones[0].tzid if self.timezones.length > 0 self.add_component e if block e.instance_eval &block if e.tzid e.dtstart.ical_params = { "TZID" => e.tzid } e.dtend.ical_params = { "TZID" => e.tzid } end end e end