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