Sha256: 0c5c66528c8255f00bd1388cce0ba885adc47cdcdfd19a053e16ca949344d411

Contents?: true

Size: 267 Bytes

Versions: 7

Compression:

Stored size: 267 Bytes

Contents

class Dependor::CustomizedInjector
  def initialize(injector, customizations)
    @injector = injector
    @customizations = customizations
  end

  def get(name)
    return @customizations[name] if @customizations.key?(name)
    return @injector.get(name)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dependor-1.0.1 lib/dependor/customized_injector.rb
dependor-1.0.0 lib/dependor/customized_injector.rb
dependor-0.0.6 lib/dependor/customized_injector.rb
dependor-0.0.5 lib/dependor/customized_injector.rb
dependor-0.0.4 lib/dependor/customized_injector.rb
dependor-0.0.3 lib/dependor/customized_injector.rb
dependor-0.0.2 lib/dependor/customized_injector.rb