method

matches?

rspec latest stable - Class: Spec::Mocks::RegexpArgConstraint

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (1.1.4) is shown here.

matches?(value)
public

No documentation available.

# File lib/spec/mocks/argument_expectation.rb, line 29
      def matches?(value)
        return value =~ @regexp unless value.is_a?(Regexp)
        value == @regexp
      end