Class: Totes::Matcher::RespondTo
- Inherits:
-
Totes::Matcher
- Object
- Totes::Matcher
- Totes::Matcher::RespondTo
- Defined in:
- lib/totes/matcher/respond_to.rb
Constant Summary
Constants inherited from Totes::Matcher
Instance Method Summary collapse
Methods inherited from Totes::Matcher
build, error_must, error_wont, #initialize, #test
Constructor Details
This class inherits a constructor from Totes::Matcher
Instance Method Details
#likes(subject) ⇒ Object
6 7 8 |
# File 'lib/totes/matcher/respond_to.rb', line 6 def likes(subject) subject.respond_to?(@value) end |