Exception: MultipleVersionsInstalledError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ MultipleVersionsInstalledError

Returns a new instance of MultipleVersionsInstalledError



35
36
37
38
# File 'brew/Library/Homebrew/exceptions.rb', line 35

def initialize(name)
  @name = name
  super "#{name} has multiple installed versions"
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name



33
34
35
# File 'brew/Library/Homebrew/exceptions.rb', line 33

def name
  @name
end