Exception: Deptree::InvalidArgumentError

Inherits:
Error
  • Object
show all
Defined in:
lib/deptree/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(arguments) ⇒ InvalidArgumentError

Returns a new instance of InvalidArgumentError.



5
6
7
8
# File 'lib/deptree/errors.rb', line 5

def initialize(arguments)
  args = arguments.map(&:to_s).join(', ')
  super("Dependency takes either a String or a Hash with a single key-value pair. Got: #{args}")
end