Exception: NoSuchKegError
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.
56 57 58 59 |
# File 'exceptions.rb', line 56 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.
54 55 56 |
# File 'exceptions.rb', line 54 def name @name end |