Skip to content
On this page

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class · Ruby 4.1

DidYouMean::VariableNameChecker

< Object 1 instance methods 1 class methods

Class methods 1

Instance methods 1

Constants
No documentation available

VariableNameChecker::RB_RESERVED_WORDS is the list of all reserved words in Ruby. They could be declared like methods are, and a typo would cause Ruby to raise a NameError because of the way they are declared.

The :VariableNameChecker will use this list to suggest a reversed word if a NameError is raised and found closest matches, excluding:

* +do+
* +if+
* +in+
* +or+

Also see MethodNameChecker::RB_RESERVED_WORDS.

Attributes
Read
No documentation available
Read
No documentation available
Read
No documentation available
No documentation available
Read
No documentation available