Exception: Minitest::Keyword::OverloadedArgumentError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Minitest::Keyword::OverloadedArgumentError
- Defined in:
- lib/minitest/keyword.rb
Overview
Raised if someone tries to pass both the regular arguments and the keyword arguments
Instance Method Summary collapse
-
#initialize(method_name, argument_name) ⇒ OverloadedArgumentError
constructor
A new instance of OverloadedArgumentError.
Constructor Details
#initialize(method_name, argument_name) ⇒ OverloadedArgumentError
Returns a new instance of OverloadedArgumentError.
26 27 28 29 |
# File 'lib/minitest/keyword.rb', line 26 def initialize(method_name, argument_name) super('Cannot specify keyword argument and pass regular argument to ' \ "#{method_name} for argument #{argument_name}") end |