Programming Ruby 3.2 (5th Edition): B2.0 page 381, 'cat'.methods --> 'dog'.methods

Hmm… I think the point here is that it’s the singleton methods minus the string instance methods so, 'cat'.methods is confusing, but I think it actually works. It probably should be animal.methods, though.