class RSpec::Matchers::BuiltIn::RespondTo::ArityCheck

def method_signature_for(actual, name)

def method_signature_for(actual, name)
  method_handle = Support.method_handle_for(actual, name)
  if name == :new && method_handle.owner === ::Class && ::Class === actual
    Support::MethodSignature.new(actual.instance_method(:initialize))
  else
    Support::MethodSignature.new(method_handle)
  end
end