Exception: NoSuchKegError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- NoSuchKegError
- Defined in:
- Library/Homebrew/exceptions.rb
Overview
Raised when a keg doesn't exist.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ NoSuchKegError
constructor
A new instance of NoSuchKegError.
Constructor Details
#initialize(name) ⇒ NoSuchKegError
Returns a new instance of NoSuchKegError.
53 54 55 56 |
# File 'Library/Homebrew/exceptions.rb', line 53 def initialize(name) @name = name super "No such keg: #{HOMEBREW_CELLAR}/#{name}" end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name
51 52 53 |
# File 'Library/Homebrew/exceptions.rb', line 51 def name @name end |