123456789_123456789_123456789_123456789_123456789_

Class: RSpec::Support::LooseSignatureVerifier Private

Do not use. This class is for internal use only.
Relationships & Source Files
Namespace Children
Classes:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: RSpec::Support::MethodSignatureVerifier
Defined in: rspec-support/lib/rspec/support/method_signature_verifier.rb

Overview

Allows matchers to be used instead of providing keyword arguments. In practice, when this happens only the arity of the method is verified.

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Instance Method Details

#split_args(*args) (private)

[ GitHub ]

  
# File 'rspec-support/lib/rspec/support/method_signature_verifier.rb', line 398

def split_args(*args)
  if RSpec::Support.is_a_matcher?(args.last) && @signature.could_contain_kw_args?(args)
    args.pop
    @signature = SignatureWithKeywordArgumentsMatcher.new(@signature)
  end

  super(*args)
end