For some reason when I run:
name = gets.chomp
puts name
I get the error:
gets:1:in <main>': undefined method
chomp' for nil:NilClass (NoMethodError)
If I remove the .chomp and run:
name = gets
puts name
I get no prompt or error, the console just gives me the finished time. What am I doing wrong?
By the way I'm using Sublime, configured with Ruby