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:

  • lemur

Instance Method Summary collapse

Instance Method Details

#to_sObject



33
34
35
36
# File 'lib/qo/exceptions.rb', line 33

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