Class: Matchi::Matcher::BeTrue
- Defined in:
- lib/matchi/matcher/be_true.rb
Overview
Truth matcher.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#matches? ⇒ Boolean
Boolean comparison between the actual value and the expected value.
Methods inherited from Base
Instance Method Details
#matches? ⇒ Boolean
Boolean comparison between the actual value and the expected value.
19 20 21 |
# File 'lib/matchi/matcher/be_true.rb', line 19 def matches?(*, **) true.equal?(yield) end |