lib/vpim/property/recurrence.rb in vpim-0.360 vs lib/vpim/property/recurrence.rb in vpim-0.597
- old
+ new
@@ -1,7 +1,7 @@
=begin
- Copyright (C) 2006 Sam Roberts
+ Copyright (C) 2008 Sam Roberts
This library is free software; you can redistribute it and/or modify it
under the same terms as the ruby language itself, see the file COPYING for
details.
=end
@@ -35,9 +35,13 @@
# Check if this event overlaps with the time period later than or equal to +t0+, but
# earlier than +t1+.
def occurs_in?(t0, t1)
occurences.each_until(t1).detect { |t| tend = t + (duration || 0); tend > t0 }
+ end
+
+ def rdates
+ Vpim.decode_date_time_list(propvalue('RDATE'))
end
end
end
end