Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
DidYouMean::MethodNameChecker#corrections
() -> ::Array[::Symbol]
corrections
lib/did_you_mean/spell_checkers/method_name_checker.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/did_you_mean/spell_checkers/method_name_checker.rb, line 48
def corrections
@corrections ||= begin
dictionary = method_names
dictionary = RB_RESERVED_WORDS + dictionary if @private_call
SpellChecker.new(dictionary: dictionary).correct(method_name) - names_to_exclude
end
end
No documentation available