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
-
#circular_deps ⇒ Object
readonly
The plugins among which the circular dependencies exist.
Instance Method Summary collapse
-
#initialize(circular) ⇒ CircularDep
constructor
Creates a new
Ruber::ComponentManager::CircularDep
.
Constructor Details
#initialize(circular) ⇒ CircularDep
Creates a new Ruber::ComponentManager::CircularDep
. circular is an
array containing the plugins among which the circular dependencies exist, whith
the format described for <tt>Ruber::ComponentManager::CircularDep#circular_deps</tt>
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
#circular_deps ⇒ Object (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 |