Exception: Rouge::RegexLexer::InvalidRegex
- Inherits:
-
StandardError
- Object
- StandardError
- Rouge::RegexLexer::InvalidRegex
- Defined in:
- lib/rouge/regex_lexer.rb
Instance Method Summary collapse
-
#initialize(re) ⇒ InvalidRegex
constructor
A new instance of InvalidRegex.
- #to_s ⇒ Object
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_s ⇒ Object
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 |