Class: Mocktail::Matchers::IsA
- Extended by:
- T::Sig
- Defined in:
- lib/mocktail/matchers/is_a.rb,
lib/mocktail/sorbet/mocktail/matchers/is_a.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#initialize, #inspect, #is_mocktail_matcher?
Constructor Details
This class inherits a constructor from Mocktail::Matchers::Base
Class Method Details
.matcher_name ⇒ Object
5 6 7 |
# File 'lib/mocktail/matchers/is_a.rb', line 5 def self.matcher_name :is_a end |
Instance Method Details
#match?(actual) ⇒ Boolean
9 10 11 |
# File 'lib/mocktail/matchers/is_a.rb', line 9 def match?(actual) actual.is_a?(@expected) end |