Method: Cuprum::Matching::ClassMethods#match_result
- Defined in:
- lib/cuprum/matching.rb
#match_result(result:) ⇒ Object
41 42 43 44 45 |
# File 'lib/cuprum/matching.rb', line 41 def match_result(result:) status_clauses(result.status).find do |clause| clause.matches_result?(result:) end end |