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.



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