Module: ResourceSubscriber::AutoInject::ClassMethods
- Defined in:
- lib/resource_subscriber/auto_inject.rb
Instance Method Summary collapse
Instance Method Details
#ensure_required_dependencies(**options) ⇒ Object
24 25 26 27 |
# File 'lib/resource_subscriber/auto_inject.rb', line 24 def ensure_required_dependencies(**) _missing_dependencies = _required_dependencies.select{ |dep| !.key?(dep) } raise ::StandardError.new("Missing Required Dependencies #{_missing_dependencies.join(',')}", _missing_dependencies) if _missing_dependencies.any? end |
#required_dependencies(*args) ⇒ Object
19 20 21 22 |
# File 'lib/resource_subscriber/auto_inject.rb', line 19 def required_dependencies(*args) self._required_dependencies = self._required_dependencies + args self.__send__(:attr_accessor, *args) end |