Exception: RuAUR::Error::PackageNotInstalled
- Inherits:
-
RuAUR::Error
- Object
- RuntimeError
- RuAUR::Error
- RuAUR::Error::PackageNotInstalled
- Defined in:
- lib/ruaur/error/package_not_installed.rb
Instance Method Summary collapse
-
#initialize(package = nil) ⇒ PackageNotInstalled
constructor
A new instance of PackageNotInstalled.
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 |