Exception: NoSuchKegError

Inherits:
RuntimeError
  • Object
show all
Defined in:
exceptions.rb

Overview

Raised when a keg doesn’t exist.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



54
55
56
# File 'exceptions.rb', line 54

def name
  @name
end