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("    Pattern matching appears to already be defined in \#{context}. In this\n    case the rails-pattern_matching gem should not be used because it\n    would override the pattern matching behavior given by \#{context}.\n  MSG\nend\n")