Exception: Regexp::Scanner::PrematureEndError

Inherits:
ScannerError show all
Defined in:
lib/regexp_parser/scanner/errors/premature_end_error.rb

Overview

Unexpected end of pattern

Instance Method Summary collapse

Constructor Details

#initialize(where = '') ⇒ PrematureEndError

Returns a new instance of PrematureEndError.



4
5
6
# File 'lib/regexp_parser/scanner/errors/premature_end_error.rb', line 4

def initialize(where = '')
  super "Premature end of pattern at #{where}"
end