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.


579
580
581
# File 'Library/Homebrew/exceptions.rb', line 579

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