Method: IcalImporter::Parser#parse
- Defined in:
- lib/ical_importer/parser.rb
#parse(&block) ⇒ Object
49 50 51 52 53 54 55 56 |
# File 'lib/ical_importer/parser.rb', line 49 def parse(&block) if worth_parsing? collected = Collector.new(feed.first.events).collect @imported_single_events = collected.single_events @imported_recurrence_events = collected.recurrence_events tap_and_each (@imported_single_events + @imported_recurrence_events), &block end end |