Created
February 27, 2009 08:04
-
-
Save perezd/71349 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'smart_month' | |
SmartMonth::Rulesets.add_rule('Christmas','December 25th') | |
Month.december.christmas #=> Date object containing December 25th of this year. | |
SmartMonth::Rulesets.add_rule('Weekly Meetings','every friday') | |
Month.march.weekly_meetings #=> array of corresponding Date objects. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment