I am creating a Word class and I am getting an error:
TypeError: superclass mismatch for class Word
Here is the
link664 has clearly explained the problem.
However, there's an easier fix without quitting irb (and losing all your other work). You can delete an existing class definition this way.
irb(main):051:0> Object.send(:remove_const, :Word)
and you can verify with:
irb(main):052:0> Word.public_instance_methods
which should return:
NameError: uninitialized constant Word
from (irb):52