End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
DidYouMean::KeyErrorChecker#corrections
corrections
lib/did_you_mean/spell_checkers/key_error_checker.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/did_you_mean/spell_checkers/key_error_checker.rb, line 10
def corrections
@corrections ||= exact_matches.empty? ? SpellChecker.new(dictionary: @keys).correct(@key).map(&:inspect) : exact_matches
end
No documentation available