Module: Tardigrade
- Defined in:
- lib/tardigrade.rb,
lib/tardigrade/version.rb,
lib/tardigrade/injector.rb,
lib/tardigrade/dependency.rb
Defined Under Namespace
Modules: Dependency, Injector
Constant Summary
collapse
- VERSION =
"0.1.0"
Class Method Summary
collapse
Class Method Details
.add_dependency(name, klass, **options) ⇒ Object
8
9
10
11
|
# File 'lib/tardigrade.rb', line 8
def self.add_dependency(name, klass, **options)
@dependencies ||= {}
@dependencies[name] = { class: klass, memoize: !!options[:memoize] }
end
|
.dependencies ⇒ Object
13
14
15
|
# File 'lib/tardigrade.rb', line 13
def self.dependencies
@dependencies || {}
end
|