Skip to content

Instantly share code, notes, and snippets.

@jrgifford
Created June 1, 2011 10:37
Show Gist options
  • Save jrgifford/1002091 to your computer and use it in GitHub Desktop.
Save jrgifford/1002091 to your computer and use it in GitHub Desktop.
print "Press enter to continue.."
STDOUT.flush
value = gets.to_i
if value == '\r'
puts "Dude,seriously? If you're going to fail, please faile. *facepalm*."
# Yes, that's an intentional typo
else
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment