Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
DidYouMean::MethodNameChecker.new
(::NoMethodError[untyped] exception) -> ::DidYouMean::MethodNameChecker
new(exception)
lib/did_you_mean/spell_checkers/method_name_checker.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/did_you_mean/spell_checkers/method_name_checker.rb, line 42
def initialize(exception)
@method_name = exception.name
@receiver = exception.receiver
@private_call = exception.respond_to?(:private_call?) ? exception.private_call? : false
end
No documentation available