Exception: Rails::PatternMatching::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rails/pattern_matching.rb

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ Error

Returns a new instance of Error.



10
11
12
13
14
15
16
# File 'lib/rails/pattern_matching.rb', line 10

def initialize(context)
  super(<<~MSG)
    Pattern matching appears to already be defined in #{context}. In this
    case the rails-pattern_matching gem should not be used because it
    would override the pattern matching behavior given by #{context}.
  MSG
end