Class: Vpim::Repo::Apple3

Inherits:
Vpim::Repo show all
Defined in:
lib/vpim/repo.rb

Overview

An Apple iCal version 3 repository.

Defined Under Namespace

Classes: Calendar

Instance Method Summary collapse

Constructor Details

#initialize(where = "~/Library/Calendars") ⇒ Apple3

Returns a new instance of Apple3.



102
103
104
# File 'lib/vpim/repo.rb', line 102

def initialize(where = "~/Library/Calendars")
  @where = where.to_str
end

Instance Method Details

#eachObject

:nodoc:



106
107
108
109
110
111
# File 'lib/vpim/repo.rb', line 106

def each #:nodoc:
  Dir[ File.expand_path(@where + "/**/*.calendar") ].each do |dir|
    yield Calendar.new(dir)
  end
  self
end