method
matches?
1.1.4 -
Show latest stable
-
0 notes -
Class: Spec::Mocks::RegexpArgConstraint
- 1.1.4 (0)
- 1.1.12
- 1.2.0
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
matches?(value)
public
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