Please sign in to comment.
Only strip from stdin.gets if it wasn't ended with EOF
When stdin.gets is ended by pressing ctrl-d or the equivalent EOF keys it returns nil and ask_simply raises a NoMethodException when calling strip.
- Loading branch information...
Showing with 8 additions and 1 deletion.