diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-01-07 18:45:15 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-01-27 11:31:10 +0900 |
commit | 06e30df4083779df7981105167e908fc780454fd (patch) | |
tree | 53b3c39e509b06f72d09a9a71f5e1cc699d5cf19 | |
parent | f49bb1505b854253b4f993ca9b95836bde37feb5 (diff) |
[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
-rw-r--r-- | lib/syntax_suggest/core_ext.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/syntax_suggest/core_ext.rb b/lib/syntax_suggest/core_ext.rb index aed93e129c..f2fbc7ac64 100644 --- a/lib/syntax_suggest/core_ext.rb +++ b/lib/syntax_suggest/core_ext.rb @@ -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 |