Only strip from stdin.gets if it wasn't ended with EOF #252

Merged
merged 1 commit into from Sep 10, 2012

Conversation

Projects
None yet
2 participants
@flomotlik
Contributor

flomotlik commented Sep 10, 2012

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.

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.

wycats added a commit that referenced this pull request Sep 10, 2012

Merge pull request #252 from flomotlik/ask-nil-check
Only strip from stdin.gets if it wasn't ended with EOF

@wycats wycats merged commit 4aecda3 into erikhuda:master Sep 10, 2012

1 check passed

default The Travis build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment