Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
ErrorHighlight::CoreExt#detailed_message
detailed_message(highlight: false, error_highlight: true, **)
lib/error_highlight/core_ext.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/error_highlight/core_ext.rb, line 12
def detailed_message(highlight: false, error_highlight: true, **)
return super unless error_highlight
snippet = generate_snippet
if highlight
snippet = snippet.gsub(/.+/) { "\e[1m" + $& + "\e[m" }
end
super + snippet
end
No documentation available