Sha256: 4226eec631f90848ae56b63570fa1122128c0d885aa1fc38d37eb6709abec3cd

Contents?: true

Size: 210 Bytes

Versions: 7

Compression:

Stored size: 210 Bytes

Contents

# frozen_string_literal: true

module Async::App::Injector
  def inject(name)
    define_method(name) do
      $__ASYNC_APP.container[name] # rubocop:disable Style/GlobalVars
    end
    private name
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
async-tools-0.2.9 lib/async/app/injector.rb
async-tools-0.2.8 lib/async/app/injector.rb
async-tools-0.2.7 lib/async/app/injector.rb
async-tools-0.2.6 lib/async/app/injector.rb
async-tools-0.2.5 lib/async/app/injector.rb
async-tools-0.2.4 lib/async/app/injector.rb
async-tools-0.2.2 lib/async/app/injector.rb