Module: Medicine::DI
- Defined in:
- lib/medicine.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
12 13 14 |
# File 'lib/medicine.rb', line 12 def self.included(base) base.extend(ClassMethods) end |
.prepended(base) ⇒ Object
16 17 18 |
# File 'lib/medicine.rb', line 16 def self.prepended(base) base.extend(ClassMethods) end |
Instance Method Details
#initialize(*args) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/medicine.rb', line 20 def initialize(*args) @dependencies = extract_dependencies(args) assert_all_dependencies_met define_dependency_methods super end |