Exception: TapAlreadyTappedError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ TapAlreadyTappedError

Returns a new instance of TapAlreadyTappedError



252
253
254
255
256
257
258
# File 'brew/Library/Homebrew/exceptions.rb', line 252

def initialize(name)
  @name = name

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name



250
251
252
# File 'brew/Library/Homebrew/exceptions.rb', line 250

def name
  @name
end