Exception: Divvy::DuplicatePackageError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/divvy/duplicate_package_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#packageObject

Returns the value of attribute package.



4
5
6
# File 'lib/divvy/duplicate_package_error.rb', line 4

def package
  @package
end