Exception: Divvy::DuplicatePackageError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Divvy::DuplicatePackageError
- Defined in:
- lib/divvy/duplicate_package_error.rb
Instance Attribute Summary collapse
-
#package ⇒ Object
Returns the value of attribute package.
Instance Method Summary collapse
-
#initialize(package) ⇒ DuplicatePackageError
constructor
A new instance of DuplicatePackageError.
Constructor Details
#initialize(package) ⇒ DuplicatePackageError
Returns a new instance of DuplicatePackageError.
6 7 8 9 |
# File 'lib/divvy/duplicate_package_error.rb', line 6 def initialize(package) super("The package #{package} has already been registered") @package = package end |
Instance Attribute Details
#package ⇒ Object
Returns the value of attribute package.
4 5 6 |
# File 'lib/divvy/duplicate_package_error.rb', line 4 def package @package end |