Exception: Ruber::ComponentManager::CircularDep

Inherits:
DependencyError show all
Defined in:
lib/ruber/component_manager.rb

Overview

Exception raised by Ruber::ComponentManager when circular dependencies

among plugins are detected.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_depsObject (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