Skip to content

Instantly share code, notes, and snippets.

@xeago

xeago/.rb Secret

Created April 11, 2016 12:31
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 xeago/affc40abbe9af240da87d05a69b310d4 to your computer and use it in GitHub Desktop.
Save xeago/affc40abbe9af240da87d05a69b310d4 to your computer and use it in GitHub Desktop.
while true
r=STDIN.getc
return r if r in %w[y n]
puts "Please answer 'y' or 'n'."
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment