Module: Qo::Matchers

Defined in:
lib/qo/matchers/base_matcher.rb,
lib/qo/matchers/hash_matcher.rb,
lib/qo/matchers/array_matcher.rb,
lib/qo/matchers/pattern_match.rb,
lib/qo/matchers/guard_block_matcher.rb,
lib/qo/matchers/pattern_match_block.rb

Overview

A Qo Matcher is a class that acts like a Proc. It takes in a set of match values or key value pairs and a target value to evaluate against, and returns the status of that match.

It is possible to override this behavior via to_proc overloading and utilization of super as noted in GuardBlockMatcher.

See Also:

Author:

  • baweaver

Since:

  • 0.2.0

Defined Under Namespace

Classes: ArrayMatcher, BaseMatcher, GuardBlockMatcher, HashMatcher, PatternMatch, PatternMatchBlock