End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
DidYouMean::ClassNameChecker#corrections
corrections
lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb, line 13
def corrections
@corrections ||= SpellChecker.new(dictionary: class_names)
.correct(class_name)
.map(&:full_name)
.reject {|qualified_name| @original_message.include?(qualified_name) }
end
No documentation available