Modules and mixins in ruby

Before getting started with modules and mixins, lets first find out the need of module & mixins in OOP. In object oriented programming languages multiple inheritance is basic paradigm (child class extends behavior of base class). C++ supports multiple inheritance. Java does support same using interfaces. In ruby language, multiple inheritance is achieved very easily … Continue reading Modules and mixins in ruby