Module: Nanoboy::Hook::InheritedHook

Defined in:
lib/nanoboy/hook.rb

Overview

This is the main Nanoboy hook, that is fired in the usual class creation class MyClass (< MyParent); end

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



13
14
15
# File 'lib/nanoboy/hook.rb', line 13

def self.included klass
  Hook.nanoboy_alias klass, :inherited
end

Instance Method Details

#inherited_with_nanoboy(subclass) ⇒ Object



8
9
10
11
# File 'lib/nanoboy/hook.rb', line 8

def inherited_with_nanoboy(subclass)
  inherited_without_nanoboy(subclass)
  Nanoboy.load_extensions_for subclass
end