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.



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

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

Instance Method Details

#eachObject

:nodoc:



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

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