lib/dependor/auto_inject.rb in dependor-0.0.6 vs lib/dependor/auto_inject.rb in dependor-1.0.0
- old
+ new
@@ -13,14 +13,14 @@
def self.included(klass)
klass.extend ClassMethods
end
def method_missing(name, *args, &block)
- auto_injector.get(name)
+ auto_injector.get_by_class_name(name)
end
- def respond_to?(name)
- auto_injector.resolvable?(name)
+ def respond_to_missing?(name, include_private = false)
+ auto_injector.class_exists?(name)
end
def inject(klass, overrides = {})
injector = Dependor::CustomizedInjector.new(auto_injector, overrides)
instantiator = Dependor::Instantiator.new(injector)