Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
DidYouMean::NameErrorCheckers.new
new(exception)
lib/did_you_mean/spell_checkers/name_error_checkers.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/did_you_mean/spell_checkers/name_error_checkers.rb, line 6
def new(exception)
case exception.original_message
when /uninitialized constant/
ClassNameChecker
when /undefined local variable or method/,
/undefined method/,
/uninitialized class variable/,
/no member '.*' in struct/
VariableNameChecker
else
NullChecker
end.new(exception)
end
No documentation available