Exception: NoSuchKegError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ NoSuchKegError

Returns a new instance of NoSuchKegError



45
46
47
48
# File 'brew/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 'brew/Library/Homebrew/exceptions.rb', line 43

def name
  @name
end