Skip to content

Instantly share code, notes, and snippets.

@danieltreacy
Created March 12, 2012 00:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danieltreacy/2018904 to your computer and use it in GitHub Desktop.
Save danieltreacy/2018904 to your computer and use it in GitHub Desktop.
Counter v1
module DebtClock
class Counter
@@count = 0
def start
Thread.new {
loop do
@@count += 1
puts "#{@@count}\n"
sleep 1
end
}
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment