Class: Vpim::Repo::Directory

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

Defined Under Namespace

Classes: Calendar

Instance Method Summary collapse

Constructor Details

#initialize(where = ".") ⇒ Directory

Returns a new instance of Directory.



168
169
170
# File 'lib/vpim/repo.rb', line 168

def initialize(where = ".")
  @where = where.to_str
end

Instance Method Details

#eachObject

:nodoc:



172
173
174
175
176
177
# File 'lib/vpim/repo.rb', line 172

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