rouge-ruby/rouge · error · RuntimeError
abstract
Error message
abstract
What it means
Error "abstract" thrown in rouge-ruby/rouge.
Source
Thrown at lib/rouge/formatter.rb:88
return stream(tokens, &b) if block_given?
out = String.new('')
stream(tokens) { |piece| out << piece }
out
end
# @deprecated Use {#format} instead.
def render(tokens)
warn 'Formatter#render is deprecated, use #format instead.'
format(tokens)
end
# @abstract
# yield strings that, when concatenated, form the formatted output
def stream(tokens, &b)
raise 'abstract'
end
protected
def token_lines(tokens, &b)
return enum_for(:token_lines, tokens) unless block_given?
out = []
tokens.each do |tok, val|
val.scan %r/\n|[^\n]+/ do |s|
if s == "\n"
yield out
out = []
else
out << [tok, s]
end
end
end
View on GitHub (pinned to bd7dad7b09)
When it happens
Trigger: Thrown at lib/rouge/formatter.rb:88 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of rouge-ruby/rouge@bd7dad7b09 (2026-08-23).
Data as JSON: /api/errors/8affe23b98b4192b.
Report an issue: GitHub.