Exception: Fox::DuplicateDependencyDefined
- Defined in:
- lib/fox/error/errors.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ DuplicateDependencyDefined
constructor
A new instance of DuplicateDependencyDefined.
- #to_s ⇒ Object
Methods inherited from FoxError
Constructor Details
#initialize(name) ⇒ DuplicateDependencyDefined
Returns a new instance of DuplicateDependencyDefined.
61 62 63 |
# File 'lib/fox/error/errors.rb', line 61 def initialize(name) @name = name end |
Instance Method Details
#to_s ⇒ Object
65 66 67 68 69 70 |
# File 'lib/fox/error/errors.rb', line 65 def to_s out = "Your Foxfile contains multiple entries named " out << "'#{@name}'. Please remove duplicate dependencies, or put them in " out << "different groups." out end |