Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
DidYouMean::Correctable#to_s
() -> ::String
to_s
lib/did_you_mean/core_ext/name_error.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/did_you_mean/core_ext/name_error.rb, line 38
def to_s
msg = super.dup
suggestion = DidYouMean.formatter.message_for(corrections)
msg << suggestion if !msg.include?(suggestion)
msg
rescue
super
end
No documentation available