Module: Dependor::Sinatra::HasInjector::ClassMethods
- Defined in:
- lib/dependor-sinatra/has_injector.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#injector_creator ⇒ Object
15 16 17 |
# File 'lib/dependor-sinatra/has_injector.rb', line 15 def injector_creator @injector_creator ||= proc{ |objects| Dependor::Sinatra::DefaultInjector.new(objects) } end |
Instance Method Details
#injector(&block) ⇒ Object
19 20 21 |
# File 'lib/dependor-sinatra/has_injector.rb', line 19 def injector(&block) self.injector_creator = block end |