Method: Spec::Mocks::ArgumentExpectation#is_matcher?
- Defined in:
- lib/spec/mocks/argument_expectation.rb
permalink #is_matcher?(obj) ⇒ Boolean
28 29 30 |
# File 'lib/spec/mocks/argument_expectation.rb', line 28 def is_matcher?(obj) return obj.respond_to?(:matches?) & obj.respond_to?(:description) end |