aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-06-30 11:44:48 +0900
committergit <svn-admin@ruby-lang.org>2021-06-30 11:46:47 +0900
commitdb7e9b1aac7752259e60e09b92ea2d2e74b0886d (patch)
tree35df9c031a73de7750491b2b13688ed23a0f2689 /lib
parent3391682edaf43d415e509809f72d6b859d69d7a4 (diff)
downloadruby-db7e9b1aac7752259e60e09b92ea2d2e74b0886d.tar.gz
[ruby/error_highlight] Add some comments
https://github.com/ruby/error_highlight/commit/e0c90c72c3
Diffstat (limited to 'lib')
-rw-r--r--lib/error_highlight/core_ext.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/error_highlight/core_ext.rb b/lib/error_highlight/core_ext.rb
index ad1c15a485..0ca2d1301a 100644
--- a/lib/error_highlight/core_ext.rb
+++ b/lib/error_highlight/core_ext.rb
@@ -1,5 +1,8 @@
module ErrorHighlight
module CoreExt
+ # This is a marker to let `DidYouMean::Correctable#original_message` skip
+ # the following method definition of `to_s`.
+ # See https://github.com/ruby/did_you_mean/pull/152
SKIP_TO_S_FOR_SUPER_LOOKUP = true
private_constant :SKIP_TO_S_FOR_SUPER_LOOKUP
@@ -42,7 +45,8 @@ module ErrorHighlight
NameError.prepend(CoreExt)
- # temporarily disabled
+ # The extension for TypeError/ArgumentError is temporarily disabled due to many test failures
+
#TypeError.prepend(CoreExt)
#ArgumentError.prepend(CoreExt)
end