lib/hiccup.rb in hiccup-0.2.0 vs lib/hiccup.rb in hiccup-0.2.1
- old
+ new
@@ -14,24 +14,30 @@
# should start
# * ends - true or false indicating whether the recurrence
# ever ends
# * end_date - The date when the recurrence pattern ends
# * skip - The number of instances to skip # <== change this to :interval
-# * pattern - An array of recurrence rules
+# * weekly_pattern - An array of recurrence rules for a
+# weekly recurrence
+# * monthly_pattern - An array of recurrence rules for a
+# monthly recurrence
#
# Examples:
#
# Every other Monday
-# :kind => :weekly, :pattern => ["Monday"]
+# :kind => :weekly, :weekly_pattern => ["Monday"]
#
# Every year on June 21 (starting in 1999)
# :kind => :yearly, :start_date => Date.new(1999, 6, 21)
#
# The second and fourth Sundays of the month
-# :kind => :monthly, :pattern => [[2, "Sunday"], [4, "Sunday"]]
+# :kind => :monthly, :monthly_pattern => [[2, "Sunday"], [4, "Sunday"]]
#
#
module Hiccup
+
+
+ Kinds = [:never, :weekly, :monthly, :annually]
def hiccup(*modules)
options = modules.extract_options!
add_hiccup_modules(modules)