lib/r_spec/clone/expectation_helper/shared.rb
# Predicate matcher, or default method missing behavior.
#
# @example Empty predicate matcher
#   matcher = be_empty
#   matcher.matches? { [] } # => true
#   matcher.matches? { [4] } # => false
Predicate matcher, or default method missing behavior.
Predicate matcher or default method missing behavior .
def method_missing(name, *args, **kwargs, &block)
          return super unless predicate_matcher_name?(name)
          ::Matchi::Predicate.new(name, *args, **kwargs, &block)
        end
def method_missing ( name , * args , ** kwargs , & block ) return super unless predicate_matcher_name? ( name ) :: Matchi :: Predicate . new ( name , * args , ** kwargs , & block ) end
Predicate matcher, or default method missing behavior.
Predicate matcher or default method missing behavior .
name
<not_specific>
args
<not_specific>
kwargs
<not_specific>
block
<not_specific>
example
None