Exception: Rouge::RegexLexer::InvalidRegex

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rouge/regex_lexer.rb

Instance Method Summary collapse

Constructor Details

#initialize(re) ⇒ InvalidRegex

Returns a new instance of InvalidRegex.



10
11
12
# File 'lib/rouge/regex_lexer.rb', line 10

def initialize(re)
  @re = re
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/rouge/regex_lexer.rb', line 14

def to_s
  "regex #{@re.inspect} matches empty string, but has no predicate!"
end