Module: Mimi::Core::Module

Defined in:
lib/mimi/core/module.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Invoked on a descendant module declaration, registers a descendant module in the list of loaded modules.



10
11
12
13
14
# File 'lib/mimi/core/module.rb', line 10

def self.included(base)
  return if Mimi.loaded_modules.include?(base)
  Mimi.loaded_modules << base
  base.send :extend, ClassMethods
end