Exception: TapAlreadyTappedError

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

Overview

Raised when a tap is already installed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ TapAlreadyTappedError

Returns a new instance of TapAlreadyTappedError.


270
271
272
273
274
275
276
# File 'Library/Homebrew/exceptions.rb', line 270

def initialize(name)
  @name = name

  super <<~EOS
    Tap #{name} already tapped.
  EOS
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name


268
269
270
# File 'Library/Homebrew/exceptions.rb', line 268

def name
  @name
end