Module: NoBacksies::Inherited

Defined in:
lib/no_backsies.rb

Overview

Callback system for #inherited.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.append_features(base) ⇒ Object



323
324
325
326
# File 'lib/no_backsies.rb', line 323

def self.append_features(base)
  base.extend CallbackMethods
  base.extend self
end

Instance Method Details

#inherited(base) ⇒ Object



329
330
331
332
333
334
335
# File 'lib/no_backsies.rb', line 329

def inherited(base)
  if defined?(super)
    callback_invoke(:inherited, base){ super(base) }
  else
    callback_invoke(:inherited, base)
  end
end