method

matches?

rspec latest stable - Class: Spec::Matchers::SimpleMatcher
matches?(given)
public

No documentation available.

# File lib/spec/matchers/simple_matcher.rb, line 12
      def matches?(given)
        @given = given
        case @match_block.arity
        when 2
          @match_block.call(@given, self)
        else
          @match_block.call(@given)
        end
      end