Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions lib/error_highlight/formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ def message_for(spot)
end

def self.formatter
@@formatter
return Ractor.current[:__ErrorHighlight_formatter__] ||= DefaultFormatter.new
end

def self.formatter=(formatter)
@@formatter = formatter
Ractor.current[:__ErrorHighlight_formatter__] = formatter
end

self.formatter = DefaultFormatter.new
end
1 change: 1 addition & 0 deletions lib/error_highlight/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ErrorHighlight
VERSION = "0.2.0"
end