Exception: TapAlreadyTappedError

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



336
337
338
339
340
341
342
# File 'exceptions.rb', line 336

def initialize(name)
  @name = name

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



334
335
336
# File 'exceptions.rb', line 334

def name
  @name
end