Module: Overridable::ModuleMixin
- Defined in:
- lib/overridable.rb
Overview
If your module includes this module, then classes which include your module will make their methods which also defined in your module overridable. Let’s watch an example: __NOTE__: If you need a custom ‘append_features` method in your module, define that method before include this module in yours, or this is not going to work.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.append_features(mod) ⇒ Object
:nodoc:.
Class Method Details
.append_features(mod) ⇒ Object
:nodoc:
81 82 83 84 85 86 87 |
# File 'lib/overridable.rb', line 81 def self.append_features mod #:nodoc: class << mod include Overridable overrides :append_features include ClassMethods end end |