Exception: MultipleVersionsInstalledError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ MultipleVersionsInstalledError



30
31
32
33
# File 'Library/Homebrew/exceptions.rb', line 30

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name



28
29
30
# File 'Library/Homebrew/exceptions.rb', line 28

def name
  @name
end