Skip to content

Ruby: undefined method `chomp' #327

Open
angelistudio opened this Issue Jan 29, 2014 · 0 comments

1 participant

@angelistudio

Hi there,
I installed REPL, and then pry. Everything is just fine, except when I run:

firstName = gets.chomp

I get the following error: undefined method `chomp' for nil:NilClass (NoMethodError)

Is there a way to fix this?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.