ctrl-d on ask_simply raises a NoMethod Exception #248

Closed
flomotlik opened this Issue Aug 23, 2012 · 2 comments

Projects

None yet

3 participants

@flomotlik
Contributor

When pressing ctrl-d on stdin.gets in ask_simply a NoMethodException will be raised as stdin.gets returns nil.

The easiest way to resolve this would be to return an empty string when stdin.gets returns nil. Is there anything speaking against this?

Contributor

Not that I'm aware of. Patches welcome =D

Owner
wycats commented Sep 10, 2012

Should be fixed in a57811c

@wycats wycats closed this Sep 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment