Skip to content

Instantly share code, notes, and snippets.

@komagata
Created November 8, 2011 01:57
Show Gist options
  • Save komagata/1346793 to your computer and use it in GitHub Desktop.
Save komagata/1346793 to your computer and use it in GitHub Desktop.
require 'date'
class Date
def weekday?
(1..5).include?(wday)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment