Module: Async::App::Injector

Defined in:
lib/async/app/injector.rb

Instance Method Summary collapse

Instance Method Details

#inject(name) ⇒ Object



4
5
6
7
8
9
# File 'lib/async/app/injector.rb', line 4

def inject(name)
  define_method(name) do
    Async::App.instance.container[name]
  end
  private name
end