Exception: NoSuchKegError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ NoSuchKegError

Returns a new instance of NoSuchKegError



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

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name



39
40
41
# File 'Library/Homebrew/exceptions.rb', line 39

def name
  @name
end