Exception: NoSuchKegError

Inherits:
RuntimeError
  • Object
show all
Defined in:
Library/Homebrew/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.


45
46
47
48
# File 'Library/Homebrew/exceptions.rb', line 45

def initialize(name)
  @name = name
  super "No such keg: #{HOMEBREW_CELLAR}/#{name}"
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name


43
44
45
# File 'Library/Homebrew/exceptions.rb', line 43

def name
  @name
end