method
matches?
rspec latest stable - Class:
Spec::Mocks::RegexpArgConstraint
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