date = date-fullyear date-month date-mday date-fullyear = 4 DIGIT date-month = 2 DIGIT date-mday = 2 DIGIT
time = time-hour [“:”] time-minute [“:”] time-second [time-secfrac] [time-zone] time-hour = 2 DIGIT time-minute = 2 DIGIT time-second = 2 DIGIT time-secfrac = “,” 1*DIGIT time-zone = “Z” / time-numzone time-numzome = sign time-hour [“:”] time-minute
TIME = '(\d\d)(\d\d)(\d\d)(Z)?'
This method is called automatically when the module is mixed in. I guess you have to do this to mixin class methods rather than instance methods.
# File lib/icalendar/helpers.rb, line 30 def self.append_features(base) super klass.extend(ClassMethods) end