Class: Dependor::SendingInjector
- Defined in:
- lib/dependor/sending_injector.rb
Instance Method Summary collapse
- #get(name) ⇒ Object
-
#initialize(context) ⇒ SendingInjector
constructor
A new instance of SendingInjector.
Constructor Details
#initialize(context) ⇒ SendingInjector
Returns a new instance of SendingInjector.
2 3 4 |
# File 'lib/dependor/sending_injector.rb', line 2 def initialize(context) @context = context end |
Instance Method Details
#get(name) ⇒ Object
6 7 8 |
# File 'lib/dependor/sending_injector.rb', line 6 def get(name) @context.__send__(name) end |