Exception: Jade::ModuleLoader::CycleDependencyError
- Inherits:
-
StandardError
- Object
- StandardError
- Jade::ModuleLoader::CycleDependencyError
- Defined in:
- lib/jade/module_loader/topological_sort.rb
Instance Attribute Summary collapse
-
#cycle_path ⇒ Object
readonly
Returns the value of attribute cycle_path.
Instance Method Summary collapse
-
#initialize(cycle_path) ⇒ CycleDependencyError
constructor
A new instance of CycleDependencyError.
Constructor Details
#initialize(cycle_path) ⇒ CycleDependencyError
Returns a new instance of CycleDependencyError.
35 36 37 38 |
# File 'lib/jade/module_loader/topological_sort.rb', line 35 def initialize(cycle_path) @cycle_path = cycle_path super("Cycle detected in module dependencies: #{cycle_path.join(' -> ')}") end |
Instance Attribute Details
#cycle_path ⇒ Object (readonly)
Returns the value of attribute cycle_path.
33 34 35 |
# File 'lib/jade/module_loader/topological_sort.rb', line 33 def cycle_path @cycle_path end |