[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:
parent
f49bb1505b
commit
06e30df408
@ -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…
x
Reference in New Issue
Block a user