Exception: TapPinStatusError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, pinned) ⇒ TapPinStatusError

Returns a new instance of TapPinStatusError



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

def initialize(name, pinned)
  @name = name
  @pinned = pinned

  super pinned ? "#{name} is already pinned." : "#{name} is already unpinned."
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name



270
271
272
# File 'Library/Homebrew/exceptions.rb', line 270

def name
  @name
end

#pinnedObject (readonly)

Returns the value of attribute pinned



270
271
272
# File 'Library/Homebrew/exceptions.rb', line 270

def pinned
  @pinned
end