Created
February 27, 2009 08:36
-
-
Save perezd/71363 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' | |
Month.december.each do |day| | |
day.to_day #=> returns day of week | |
day.to_i #=> returns the date as an integer | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment