Exception: Regexp::Scanner::InvalidBackrefError

Inherits:
ValidationError
  • Object
show all
Defined in:
lib/regexp_parser/scanner.rb

Overview

Invalid back reference. Used for name a number refs/calls.

Instance Method Summary collapse

Constructor Details

#initialize(what, reason) ⇒ InvalidBackrefError

Returns a new instance of InvalidBackrefError.



1617
1618
1619
# File 'lib/regexp_parser/scanner.rb', line 1617

def initialize(what, reason)
  super "Invalid back reference #{what}, #{reason}"
end