[ruby/syntax_suggest] Hide internal document and detail of Kernel monkey patching

https://bugs.ruby-lang.org/issues/19285

https://github.com/ruby/syntax_suggest/commit/25ca82f8f9
This commit is contained in:
Nobuyoshi Nakada 2023-01-07 18:45:15 +09:00 committed by Hiroshi SHIBATA
parent f49bb1505b
commit 06e30df408

View File

@ -66,9 +66,13 @@ if SyntaxError.method_defined?(:detailed_message)
else
autoload :Pathname, "pathname"
#--
# Monkey patch kernel to ensure that all `require` calls call the same
# method
#++
module Kernel
# :stopdoc:
module_function
alias_method :syntax_suggest_original_require, :require