Exception: DuplicateResourceError

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

Instance Method Summary collapse

Constructor Details

#initialize(resource) ⇒ DuplicateResourceError

Returns a new instance of DuplicateResourceError



555
556
557
# File 'Library/Homebrew/exceptions.rb', line 555

def initialize(resource)
  super "Resource #{resource.inspect} is defined more than once"
end