class DidYouMean::MethodNameChecker
Constants
- NAMES_TO_EXCLUDE
- RB_RESERVED_WORDS
-
MethodNameChecker::RB_RESERVED_WORDSis the list of reserved words inRubythat take an argument. UnlikeVariableNameChecker::RB_RESERVED_WORDS, these reserved words require an argument, and aNoMethodErroris raised due to the presence of the argument.The
MethodNameCheckerwill use this list to suggest a reversed word if aNoMethodErroris raised and found closest matches.Also see
VariableNameChecker::RB_RESERVED_WORDS.
Public Class Methods
(NoMethodError[untyped] exception) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/did_you_mean/0/did_you_mean.rbs, line 191
def initialize: (NoMethodError[untyped] exception) -> void