Module: NoBacksies::Included

Defined in:
lib/no_backsies.rb

Overview

Callback system for #included.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.append_features(base) ⇒ Object



287
288
289
290
# File 'lib/no_backsies.rb', line 287

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

Instance Method Details

#included(mod) ⇒ Object



293
294
295
296
297
298
299
# File 'lib/no_backsies.rb', line 293

def included(mod)
  if defined?(super)
    callback_invoke(:included, mod){ super(mod) }
  else
    callback_invoke(:included, mod)
  end
end