Class: Vpim::Repo::Directory::Calendar
- Inherits:
-
Object
- Object
- Vpim::Repo::Directory::Calendar
- Defined in:
- lib/vpim/repo.rb
Instance Method Summary collapse
- #displayed ⇒ Object
- #events ⇒ Object
-
#initialize(file) ⇒ Calendar
constructor
:nodoc:.
- #name ⇒ Object
- #todos ⇒ Object
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
#displayed ⇒ Object
94 95 96 |
# File 'lib/vpim/repo.rb', line 94 def displayed true end |
#events ⇒ Object
98 99 100 |
# File 'lib/vpim/repo.rb', line 98 def events Repo.events_from_file(@file) end |
#name ⇒ Object
90 91 92 |
# File 'lib/vpim/repo.rb', line 90 def name File.basename(@file) end |
#todos ⇒ Object
102 103 104 |
# File 'lib/vpim/repo.rb', line 102 def todos Repo.todos_from_file(@file) end |