Subtype polymorphism

hello everyone, can somebody give me an example of a subtype
polymorphism in ruby with a code as the example… thanks

That said, inheritance is kinda silly in Ruby, and only really useful
in specific situations. You should just use duck typing instead.