Class: Dependor::SendingInjector

Inherits:
Object
  • Object
show all
Defined in:
lib/dependor/sending_injector.rb

Instance Method Summary collapse

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