Exception: DuplicateResourceError

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

Overview

Raised when a resource is specified multiple times.

Instance Method Summary collapse

Constructor Details

#initialize(resource) ⇒ DuplicateResourceError

Returns a new instance of DuplicateResourceError.


605
606
607
# File 'Library/Homebrew/exceptions.rb', line 605

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