Created
April 24, 2013 13:30
-
-
Save blasterpal/5452132 to your computer and use it in GitHub Desktop.
prompt for input ruby
This file contains hidden or 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
| def prompt(*args) | |
| print(*args) | |
| STDIN.gets.strip | |
| end | |
| # inspired from somewhere on stackoverflow. if that's all you need, then no need for a whole library. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment