Exception: Deptree::InvalidArgumentError
- Defined in:
- lib/deptree/errors.rb
Instance Method Summary collapse
-
#initialize(arguments) ⇒ InvalidArgumentError
constructor
A new instance of InvalidArgumentError.
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 |