Module: MAbbre::Extension

Included in:
Mixin
Defined in:
lib/mabbre/extension.rb

Overview

This module is extended by MAbbre::Mixin and all custom extensions of MAbbre::Mixin. You should not extend this module directly, instead simply include MAbbre::Mixin into your custom extension:

module MyExtension
  include MAbbre::Mixin
  # Define custom methods here.
end

module M
  extend MyExtension
  # You can use MAbbre's and MyExtension's methods here.
end

If you’re overriding the extended or included methods in your custom extension always make sure to call super, so MAbbre can be properly initialized.