Skip to content

Instantly share code, notes, and snippets.

@nuclearsandwich
Created June 10, 2012 21:07
Show Gist options
  • Save nuclearsandwich/2907337 to your computer and use it in GitHub Desktop.
Save nuclearsandwich/2907337 to your computer and use it in GitHub Desktop.
five_hour_clock = Clock.new(5)
five_hour_clock.next_hour #=> 0
five_hour_clock.next_hour #=> 1
five_hour_clock.next_hour #=> 2
five_hour_clock.reset!
five_hour_clock.pass_time(16) #=> 1
four_hour_clock = Clock.new(4)
#...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment