Created
September 6, 2011 23:35
-
-
Save ryangreenberg/1199301 to your computer and use it in GitHub Desktop.
self.destruct!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby -wKU | |
class Object | |
def destruct! | |
print "This message will self-destruct in..." | |
5.downto(0) {|i| print "#{i}..."; $stdout.flush; sleep(1)} | |
File.open(__FILE__, 'w') { } | |
end | |
end | |
self.destruct! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Win. Although to be fair, you could do this in any language :)