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.
29 30 31 32 33 34 |
# File 'lib/minitest/keyword.rb', line 29 def initialize(method_name, argument_name) super( "Cannot specify keyword argument and pass regular argument to " \ "#{method_name} for argument #{argument_name}" ) end |