Class: Klenod::Build::ImportCycleError
- Defined in:
- lib/klenod/build/errors.rb
Instance Attribute Summary collapse
-
#cycle ⇒ Object
readonly
Returns the value of attribute cycle.
Instance Method Summary collapse
-
#initialize(cycle) ⇒ ImportCycleError
constructor
A new instance of ImportCycleError.
Constructor Details
#initialize(cycle) ⇒ ImportCycleError
Returns a new instance of ImportCycleError.
169 170 171 172 |
# File 'lib/klenod/build/errors.rb', line 169 def initialize(cycle) @cycle = cycle.freeze super("Import cycle detected: #{cycle.join(" -> ")}") end |
Instance Attribute Details
#cycle ⇒ Object (readonly)
Returns the value of attribute cycle.
167 168 169 |
# File 'lib/klenod/build/errors.rb', line 167 def cycle @cycle end |