Exception: Qo::Exceptions::NotAllGuardMatchersProvided

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/qo/exceptions.rb

Overview

In the case of a Pattern Match, we need to ensure all arguments are GuardBlockMatchers.

Author:

  • baweaver

Since:

  • 0.2.0

Instance Method Summary collapse

Instance Method Details

#to_sObject

Since:

  • 0.2.0



37
38
39
40
# File 'lib/qo/exceptions.rb', line 37

def to_s
  "All provided matchers must be of type Qo::Matchers::GuardBlockMatcher " +
  "defined with `Qo.matcher` or `Qo.m` instead of regular matchers."
end