Exception: Jade::ModuleLoader::CycleDependencyError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/jade/module_loader/topological_sort.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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