Class: RSpec::Support::LooseSignatureVerifier::SignatureWithKeywordArgumentsMatcher Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | rspec-support/lib/rspec/support/method_signature_verifier.rb |
Overview
If a matcher is used in a signature in place of keyword arguments, all keyword argument validation needs to be skipped since the matcher is opaque.
Instead, keyword arguments will be validated when the method is called and they are actually known.
Class Method Summary
- .new(signature) ⇒ SignatureWithKeywordArgumentsMatcher constructor Internal use only
Instance Method Summary
- #has_kw_args_in?(args) ⇒ Boolean Internal use only
- #invalid_kw_args_from(_kw_args) Internal use only
- #missing_kw_args_from(_kw_args) Internal use only
- #non_kw_args_arity_description Internal use only
- #valid_non_kw_args?(*args) ⇒ Boolean Internal use only
Instance Method Details
#has_kw_args_in?(args) ⇒ Boolean
# File 'rspec-support/lib/rspec/support/method_signature_verifier.rb', line 436
def has_kw_args_in?(args) @signature.has_kw_args_in?(args) end
#invalid_kw_args_from(_kw_args)
[ GitHub ]# File 'rspec-support/lib/rspec/support/method_signature_verifier.rb', line 424
def invalid_kw_args_from(_kw_args) [] end
#missing_kw_args_from(_kw_args)
[ GitHub ]# File 'rspec-support/lib/rspec/support/method_signature_verifier.rb', line 420
def missing_kw_args_from(_kw_args) [] end
#non_kw_args_arity_description
[ GitHub ]# File 'rspec-support/lib/rspec/support/method_signature_verifier.rb', line 428
def non_kw_args_arity_description @signature.non_kw_args_arity_description end
#valid_non_kw_args?(*args) ⇒ Boolean
# File 'rspec-support/lib/rspec/support/method_signature_verifier.rb', line 432
def valid_non_kw_args?(*args) @signature.valid_non_kw_args?(*args) end