End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
DidYouMean::VariableNameChecker#corrections
corrections
lib/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb, line 79
def corrections
@corrections ||= SpellChecker
.new(dictionary: (RB_RESERVED_WORDS + lvar_names + method_names + ivar_names + cvar_names))
.correct(name).uniq - NAMES_TO_EXCLUDE[@name]
end
No documentation available