I'm getting a mismatch error and I've looked up why it would appear and I'm confused because what I'm doing doesn't match the error cause. Plus I've followed the instructions from a guide that I'm using.
The code on irb...
>> class Cat
>> attr_accessor :name, :age, :gender
>> end
=> nil
>> class Pets
>> attr_accessor :name, :age, :gender
>> end
=> nil
>> class Cat < Pets
>> end
TypeError: superclass mismatch for class Cat
from (irb):24
any thoughts? thanks.