Skip to content

Instantly share code, notes, and snippets.

@richo
Created June 29, 2012 04:25
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 richo/3015747 to your computer and use it in GitHub Desktop.
Save richo/3015747 to your computer and use it in GitHub Desktop.
class Thing < Thread
def self.start!
new do
mainloop
end
end
def mainloop
loop do
puts "working"
sleep 1
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment