Exception: UnsatisfiedRequirements

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

Instance Method Summary collapse

Constructor Details

#initialize(reqs) ⇒ UnsatisfiedRequirements

Returns a new instance of UnsatisfiedRequirements



301
302
303
304
305
306
307
# File 'Library/Homebrew/exceptions.rb', line 301

def initialize(reqs)
  if reqs.length == 1
    super "An unsatisfied requirement failed this build."
  else
    super "Unsatisfied requirements failed this build."
  end
end