Exception: Qo::Exceptions::MultipleElseClauses

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

Overview

In the case of a Pattern Match, we should only have one "else" clause

Author:

  • baweaver

Since:

  • 0.3.0

Instance Method Summary collapse

Instance Method Details

#to_sObject

Since:

  • 0.3.0



49
50
51
# File 'lib/qo/exceptions.rb', line 49

def to_s
  "Cannot have more than one `else` clause in a Pattern Match."
end