Ruby mixins
Topics: Ruby, Object-oriented programming
Ruby implements Mixins as modules that can be included in one or more classes. A module can add methods to a class without requiring it to inherit from a shared base class.
Topics: Ruby, Object-oriented programming
Ruby implements Mixins as modules that can be included in one or more classes. A module can add methods to a class without requiring it to inherit from a shared base class.