Exception: TapPinStatusError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, pinned) ⇒ TapPinStatusError

Returns a new instance of TapPinStatusError



275
276
277
278
279
280
# File 'brew/Library/Homebrew/exceptions.rb', line 275

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



273
274
275
# File 'brew/Library/Homebrew/exceptions.rb', line 273

def name
  @name
end

#pinnedObject (readonly)

Returns the value of attribute pinned



273
274
275
# File 'brew/Library/Homebrew/exceptions.rb', line 273

def pinned
  @pinned
end