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

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

Instance Method Summary collapse

Methods inherited from Calendar

#events, #file_each, #todos

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

#displayedObject

: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

#encodeObject

:nodoc:



166
167
168
# File 'lib/vpim/repo.rb', line 166

def encode #:nodoc:
  open(@file, "r"){|f| f.read}
end

#nameObject

:nodoc:



154
155
156
# File 'lib/vpim/repo.rb', line 154

def name #:nodoc:
  File.basename(@file)
end