Class: Vpim::Repo::Directory::Calendar
- Defined in:
- lib/vpim/repo.rb
Instance Method Summary collapse
-
#displayed ⇒ Object
:nodoc:.
-
#each(klass, &block) ⇒ Object
:nodoc:.
-
#encode ⇒ Object
:nodoc:.
-
#initialize(file) ⇒ Calendar
constructor
:nodoc:.
-
#name ⇒ Object
:nodoc:.
Methods inherited from Calendar
Constructor Details
#initialize(file) ⇒ Calendar
:nodoc:
150 151 152 |
# File 'lib/vpim/repo.rb', line 150 def initialize(file) #:nodoc: @file = file end |
Instance Method Details
#displayed ⇒ Object
:nodoc:
158 159 160 |
# File 'lib/vpim/repo.rb', line 158 def displayed #:nodoc: true end |
#each(klass, &block) ⇒ Object
:nodoc:
162 163 164 |
# File 'lib/vpim/repo.rb', line 162 def each(klass, &block) #:nodoc: file_each(@file, klass, &block) end |
#encode ⇒ Object
:nodoc:
166 167 168 |
# File 'lib/vpim/repo.rb', line 166 def encode #:nodoc: open(@file, "r"){|f| f.read} end |
#name ⇒ Object
:nodoc:
154 155 156 |
# File 'lib/vpim/repo.rb', line 154 def name #:nodoc: File.basename(@file) end |