Class: Totes::Matcher::BeA
- Inherits:
-
Totes::Matcher
- Object
- Totes::Matcher
- Totes::Matcher::BeA
- Defined in:
- lib/totes/matcher/be_a.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/be_a.rb', line 6 def likes(subject) subject.is_a?(@value) end |