Class: CAL::C

Inherits:
Object
  • Object
show all
Defined in:
lib/remind/calendar.rb

Overview

Calendar object.

Instance Method Summary collapse

Constructor Details

#initialize(f) ⇒ C

Calendar f



11
12
13
# File 'lib/remind/calendar.rb', line 11

def initialize f
  @f = f
end

Instance Method Details

#each(&b) ⇒ Object

each calendar event



15
16
17
18
# File 'lib/remind/calendar.rb', line 15

def each &b
  @f.events.each { |e| b.call(E.new(e)) }
  return nil
end

#map(&b) ⇒ Object

map each calendar event



20
21
22
23
24
# File 'lib/remind/calendar.rb', line 20

def map &b
  a = []
  @f.events.each { |e| a << b.call(E.new(e)) }
  return a
end