Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
DidYouMean.formatter
formatter
lib/did_you_mean.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/did_you_mean.rb, line 117
def self.formatter
if defined?(Ractor)
Ractor.current[:__did_you_mean_formatter__] || Formatter
else
Formatter
end
end
Returns the currently set formatter. By default, it is set to DidYouMean::Formatter.