Module: ActiveDryDeps::Stub
- Defined in:
- lib/active_dry_deps/stub.rb
Constant Summary collapse
- CONTAINER_CONST =
Object.const_get(ActiveDryDeps.config.container)
Instance Method Summary collapse
Instance Method Details
#stub(path) ⇒ Object
9 10 11 |
# File 'lib/active_dry_deps/stub.rb', line 9 def stub(path, ...) CONTAINER_CONST.stub(Deps.resolve_key(path), ...) end |
#unstub(*keys) ⇒ Object
13 14 15 |
# File 'lib/active_dry_deps/stub.rb', line 13 def unstub(*keys) CONTAINER_CONST.unstub(*keys.map { resolve_key(_1) }) end |