Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
DidYouMean::VariableNameChecker#corrections
() -> ::Array[::Symbol]
corrections
lib/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/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