Skip to content

Instantly share code, notes, and snippets.

@jimmybaker
Created June 12, 2009 15:50
Show Gist options
  • Save jimmybaker/128717 to your computer and use it in GitHub Desktop.
Save jimmybaker/128717 to your computer and use it in GitHub Desktop.
class Time
def is_after_430_pm?
((hour == 16) && (min >= 30)) || (hour > 16)
end
def is_after_5_pm?
(hour >= 17) && (min > 0)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment