Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/droom/monkeys.rb
Instance Method Summary collapse
Instance Method Details
#to_icalendar ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/droom/monkeys.rb', line 6 def to_icalendar cal = Icalendar::Calendar.new self.flatten.each do |item| cal.add_event(item.icalendar_event) if item.respond_to? :icalendar_event end cal end |
#to_ics ⇒ Object
2 3 4 |
# File 'lib/droom/monkeys.rb', line 2 def to_ics to_icalendar.to_ical end |