Skip to content

Instantly share code, notes, and snippets.

@perezd
Created February 27, 2009 08:36
Show Gist options
  • Save perezd/71363 to your computer and use it in GitHub Desktop.
Save perezd/71363 to your computer and use it in GitHub Desktop.
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