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



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

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



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

def name
  @name
end

#pinnedObject (readonly)

Returns the value of attribute pinned



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

def pinned
  @pinned
end