Object
Help encode an RRULE value.
TODO - the Maker is both incomplete, and its a bit cheesy, I’d like to do something that is a kind of programmatic version of the UI that iCal has.
count is integral
# File lib/vpim/rrule.rb, line 562 def count=(rcount) if @until raise ArgumentError, "Cannot specify COUNT if UNTIL was specified" end @count = rcount.to_int end
TODO - BY.…
# File lib/vpim/rrule.rb, line 571 def encode unless @freq raise ArgumentError, "Must specify FREQUENCY" end rrule = "FREQ=#{@freq}" [ ["COUNT", @count], ["UNTIL", @until], # TODO... ].each do |k,v| if v rrule += ";#{k}=#{v}" end end rrule end
Generated with the Darkfish Rdoc Generator 2.