Module: Kangaru::Initialiser

Defined in:
lib/kangaru/initialiser.rb

Class Method Summary collapse

Class Method Details

.extended(namespace) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/kangaru/initialiser.rb', line 3

def self.extended(namespace)
  source = caller[0].gsub(/:.*$/, "")

  Kangaru.application = Application.new(source:, namespace:)
  Kangaru.eager_load(Initialisers)

  namespace.extend Interface
end