-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Description
Currently this code:
class Pet
def initialize
@name = "cinco"
end
def call
puts "Come here #{@neam.upcase}"
end
end
Pet.new.callGives us this error message
scratch.rb:7:in `call': undefined method `upcase' for nil:NilClass (NoMethodError)
Which gives us no context or info about the code causing this error. I would love it to instead show:
1 class Pet
6 def call
❯ 7 puts "Come here #{@neam.upcase}"
8 end
9 end
scratch.rb:7:in `call': undefined method `upcase' for nil:NilClass (NoMethodError)
Metadata
Metadata
Assignees
Labels
No labels