lib/ri_cal/component/calendar.rb in rubyredrick-ri_cal-0.6.1 vs lib/ri_cal/component/calendar.rb in rubyredrick-ri_cal-0.6.2

- old
+ new

@@ -214,12 +214,10 @@ # if to is nil (the default) then this method will return a string, # otherwise to should be an IO to which the iCalendar file contents will be written def export(to=nil) export_stream = FoldingStream.new(to) export_stream.puts("BEGIN:VCALENDAR") - #TODO: right now I'm assuming that all timezones are internal what happens when we export - # an imported calendar. export_properties_to(export_stream) export_x_properties_to(export_stream) export_required_timezones(export_stream) export_subcomponent_to(export_stream, events) export_subcomponent_to(export_stream, todos) @@ -230,9 +228,11 @@ nil else export_stream.string end end + + alias_method :export_to, :export end end end