L
Lucas Holland
Hi!
The following code:
name = gets.comp.to_s
if name == "Bill" or name == "Steve"
puts "Wow, you're pretty smart!"
end
yields this error, once executed:
NoMethodError: undefined method ‘comp’ for "Bill":String
What is wrong with the code?
Thanks in advance,
chell
The following code:
name = gets.comp.to_s
if name == "Bill" or name == "Steve"
puts "Wow, you're pretty smart!"
end
yields this error, once executed:
NoMethodError: undefined method ‘comp’ for "Bill":String
What is wrong with the code?
Thanks in advance,
chell