Module: Dependor::Sinatra::HasInjector
- Included in:
- Sinatra::Base
- Defined in:
- lib/dependor-sinatra/has_injector.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
4 5 6 |
# File 'lib/dependor-sinatra/has_injector.rb', line 4 def self.included(klass) klass.extend ClassMethods end |
Instance Method Details
#injector ⇒ Object
8 9 10 |
# File 'lib/dependor-sinatra/has_injector.rb', line 8 def injector @injector ||= self.class.injector_creator.call(self) end |