In Files

  • did_you_mean/spell_checkers/method_name_checker.rb

Parent

DidYouMean::MethodNameChecker

Constants

NAMES_TO_EXCLUDE
RB_RESERVED_WORDS

MethodNameChecker::RB_RESERVED_WORDS is the list of reserved words in Ruby that take an argument. Unlike VariableNameChecker::RB_RESERVED_WORDS, these reserved words require an argument, and a NoMethodError is raised due to the presence of the argument.

The MethodNameChecker will use this list to suggest a reversed word if a NoMethodError is raised and found closest matches.

Also see VariableNameChecker::RB_RESERVED_WORDS.

Attributes

method_name[R]
receiver[R]