Module: Yep::Container::ClassMethods
- Included in:
- Yep::Container
- Defined in:
- lib/yep/container.rb
Instance Method Summary collapse
Instance Method Details
#add(name, clazz, lifetime = Container::INSTANCE) ⇒ Object
6 7 8 |
# File 'lib/yep/container.rb', line 6 def add(name, clazz, lifetime = Container::INSTANCE) instance.add(name: name, clazz: clazz, lifetime: lifetime) end |
#resolve(name) ⇒ Object
10 11 12 |
# File 'lib/yep/container.rb', line 10 def resolve(name) instance.resolve(name: name) end |