Module: InjectableDependencies::ClassMethods
- Defined in:
- lib/injectable_dependencies.rb
Instance Method Summary collapse
Instance Method Details
#dependency(name, &block) ⇒ Object
25 26 27 28 29 30 31 32 |
# File 'lib/injectable_dependencies.rb', line 25 def dependency(name, &block) dependencies << name if block define_method(name, &block) # available to all instances else no_default_dependencies << name end end |