Exception: Ruber::ComponentManager::UnresolvedDep
- Inherits:
-
DependencyError
- Object
- RuntimeError
- DependencyError
- Ruber::ComponentManager::UnresolvedDep
- Defined in:
- lib/ruber/component_manager.rb
Overview
Exception raised by Ruber::ComponentManager when some dependencies of the plugins can’t be found.
Instance Attribute Summary (collapse)
-
- (Object) missing
readonly
a hash containing the missing dependencies.
Instance Method Summary (collapse)
-
- (UnresolvedDep) initialize(missing)
constructor
Creates a new Ruber::ComponentManager::UnresolvedDep.
Constructor Details
- (UnresolvedDep) initialize(missing)
Creates a new Ruber::ComponentManager::UnresolvedDep. missing is a hash containing the missing dependencies. It must have the same format as the missing attribute.
353 354 355 356 357 358 359 |
# File 'lib/ruber/component_manager.rb', line 353 def initialize missing @missing = Hash[missing] text = @missing.map do |k, v| "#{k} (needed by #{v.join ','})" end super "The following plugins couldn't be found: #{text.join(', ')}" end |
Instance Attribute Details
- (Object) missing (readonly)
a hash containing the missing dependencies. The keys are the names of the plugins who have unknown dependencies, while the values are arrays with the name of the missing dependencies
346 347 348 |
# File 'lib/ruber/component_manager.rb', line 346 def missing @missing end |