method

matches?

Importance_0
1.1.4 - Show latest stable - 0 notes - Class: Spec::Mocks::RegexpArgConstraint
matches?(value) public

No documentation

This method has no description. You can help the RSpec community by adding new notes.

Hide source
# File lib/spec/mocks/argument_expectation.rb, line 29
      def matches?(value)
        return value =~ @regexp unless value.is_a?(Regexp)
        value == @regexp
      end
Register or log in to add new notes.