Method: Cuprum::Matching::ClassMethods#matches_status?
- Defined in:
- lib/cuprum/matching.rb
#matches_status?(error:, status:, value:) ⇒ Boolean
55 56 57 58 59 |
# File 'lib/cuprum/matching.rb', line 55 def matches_status?(error:, status:, value:) status_clauses(status).reverse_each.any? do |clause| clause.matches_details?(error:, value:) end end |