I know abstract classes are not a feature in Ruby, and surely there is a philosophic reason behind that, but I would like to know if there is way to approach problems that typically are resolved using abstract classes in other languages like C++ and Java.
For example: I need three classes Triangle, Square, and Circle. Because these are all geometric figures, I was thinking in coding an abstract class called AbstractFigure with an abstract method get_area, which would be implemented by the concrete classes Triangle, Square, and Circle.
How can I do this following Ruby philosophy?
get_areamethod.