Class: Vpim::Repo

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/vpim/repo.rb,
lib/vpim/repo.rb

Overview

A Repo is a representation of a calendar repository.

Currently supported repository types are:

  • Repo::Apple3, an Apple iCal3 repository.

  • Repo::Directory, a directory hierarchy containing .ics files

  • Repo::Uri, a URI that identifies a single iCalendar

All repository types support at least the methods of Repo, and all repositories return calendars that support at least the methods of Repo::Calendar.

Direct Known Subclasses

Apple3, Directory, Uri

Defined Under Namespace

Classes: Apple3, Calendar, Directory, Uri

Instance Method Summary collapse

Constructor Details

#initialize(where) ⇒ Repo

Open a repository at location where.



33
34
# File 'lib/vpim/repo.rb', line 33

def initialize(where)
end

Instance Method Details

#eachObject

Enumerate the calendars in the repository.



37
38
# File 'lib/vpim/repo.rb', line 37

def each #:yield: calendar
end