Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/droom/monkeys.rb

Instance Method Summary collapse

Instance Method Details

#to_icsObject



2
3
4
# File 'lib/droom/monkeys.rb', line 2

def to_ics
  to_rical.to_s
end

#to_ricalObject



6
7
8
9
10
11
12
# File 'lib/droom/monkeys.rb', line 6

def to_rical
  RiCal.Calendar do |cal|
    self.flatten.each do |item|
      cal.add_subcomponent(item.to_rical) if item.respond_to?(:to_rical)
    end
  end
end