Module: IoC::Helper
- Included in:
- Object
- Defined in:
- lib/ioc/helper.rb
Instance Method Summary collapse
Instance Method Details
#inject(*names) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/ioc/helper.rb', line 5 def inject(*names) container = Container.instance names.each do |name| define_method(name) { container.retrieve(name) } end end |