Class: Vpim::Repo::Directory::Calendar

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

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ Calendar

:nodoc:



86
87
88
# File 'lib/vpim/repo.rb', line 86

def initialize(file) #:nodoc:
  @file = file
end

Instance Method Details

#displayedObject



94
95
96
# File 'lib/vpim/repo.rb', line 94

def displayed
  true
end

#eventsObject



98
99
100
# File 'lib/vpim/repo.rb', line 98

def events
  Repo.events_from_file(@file)
end

#nameObject



90
91
92
# File 'lib/vpim/repo.rb', line 90

def name
  File.basename(@file)
end

#todosObject



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

def todos
  Repo.todos_from_file(@file)
end