Exception: Ruber::ComponentManager::CircularDep
- Inherits:
-
DependencyError
- Object
- RuntimeError
- DependencyError
- Ruber::ComponentManager::CircularDep
- Defined in:
- lib/ruber/component_manager.rb
Overview
Exception raised by Ruber::ComponentManager when circular dependencies among plugins are detected.
Instance Attribute Summary (collapse)
-
- (Object) circular_deps
readonly
The plugins among which the circular dependencies exist.
Instance Method Summary (collapse)
-
- (CircularDep) initialize(circular)
constructor
Creates a new Ruber::ComponentManager::CircularDep.
Constructor Details
- (CircularDep) initialize(circular)
Creates a new Ruber::ComponentManager::CircularDep. circular is an array containing the plugins among which the circular dependencies exist, whith the format described for Ruber::ComponentManager::CircularDep#circular_deps
381 382 383 384 |
# File 'lib/ruber/component_manager.rb', line 381 def initialize circular @circular_deps = circular.deep_copy super "There were circular dependencies among the following pairs of plugins: #{circular.map{|i| "#{i[0]} and #{i[1]}"}.join ', '}" end |
Instance Attribute Details
- (Object) circular_deps (readonly)
The plugins among which the circular dependencies exist. It’s an array of arrays. Each inner array contains the name of the two plugins depending (perhaps indirectly) on each other.
374 375 376 |
# File 'lib/ruber/component_manager.rb', line 374 def circular_deps @circular_deps end |