Exception: RuAUR::Error::PackageNotInstalled

Inherits:
RuAUR::Error
  • Object
show all
Defined in:
lib/ruaur/error/package_not_installed.rb

Instance Method Summary collapse

Constructor Details

#initialize(package = nil) ⇒ PackageNotInstalled

Returns a new instance of PackageNotInstalled.



2
3
4
5
# File 'lib/ruaur/error/package_not_installed.rb', line 2

def initialize(package = nil)
    super("Package not installed: #{package}") if (package)
    super("Package not installed") if (package.nil?)
end