Sha256: ceac2d0c5cf094c2f77fe29c84e2b7f90e35760be0e366590f7db159435fb965

Contents?: true

Size: 182 Bytes

Versions: 1

Compression:

Stored size: 182 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
async-tools-0.2.10 lib/async/app/injector.rb