mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
[ruby/syntax_suggest] Hide internal document and detail of Kernel
monkey patching
https://bugs.ruby-lang.org/issues/19285
25ca82f8f9
This commit is contained in:
parent
f49bb1505b
commit
06e30df408
1 changed files with 4 additions and 0 deletions
|
@ -66,9 +66,13 @@ if SyntaxError.method_defined?(:detailed_message)
|
||||||
else
|
else
|
||||||
autoload :Pathname, "pathname"
|
autoload :Pathname, "pathname"
|
||||||
|
|
||||||
|
#--
|
||||||
# Monkey patch kernel to ensure that all `require` calls call the same
|
# Monkey patch kernel to ensure that all `require` calls call the same
|
||||||
# method
|
# method
|
||||||
|
#++
|
||||||
module Kernel
|
module Kernel
|
||||||
|
# :stopdoc:
|
||||||
|
|
||||||
module_function
|
module_function
|
||||||
|
|
||||||
alias_method :syntax_suggest_original_require, :require
|
alias_method :syntax_suggest_original_require, :require
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue