Module: Icalendar

Defined in:
lib/icalendar/base.rb,
lib/icalendar/rrule.rb,
lib/icalendar/parser.rb,
lib/icalendar/helpers.rb,
lib/icalendar/calendar.rb,
lib/icalendar/component.rb,
lib/icalendar/parameter.rb,
lib/icalendar/conversions.rb,
lib/icalendar/component/todo.rb,
lib/icalendar/component/alarm.rb,
lib/icalendar/component/event.rb,
lib/icalendar/component/journal.rb,
lib/icalendar/component/freebusy.rb,
lib/icalendar/component/timezone.rb

Overview

Copyright © 2005 Jeff Rose

This library is free software; you can redistribute it and/or modify it
under the same terms as the ruby language itself, see the file COPYING for
details.

Defined Under Namespace

Modules: DateProp, TzidSupport Classes: Alarm, Base, Calendar, Component, Daylight, Event, Freebusy, FrozenProxy, Geo, IcalendarError, InvalidPropertyValue, Journal, Parameter, Parser, RRule, Standard, Timezone, Todo, UnknownComponentClass, UnknownPropertyMethod

Constant Summary collapse

VERSION =
'1.3.0'
MAX_LINE_LENGTH =
75

Class Method Summary collapse

Class Method Details

.parse(src, single = false) ⇒ Object



16
17
18
19
20
21
22
23
24
# File 'lib/icalendar/parser.rb', line 16

def Icalendar.parse(src, single = false)
  cals = Icalendar::Parser.new(src).parse

  if single
    cals.first
  else
    cals
  end
end