Exception: Minitest::Keyword::OverloadedArgumentError

Inherits:
ArgumentError
  • Object
show all
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

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