Skip to content

Commit e0c90c7

Browse files
committed
Add some comments
1 parent bcfce4c commit e0c90c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/error_highlight/core_ext.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
module ErrorHighlight
22
module CoreExt
3+
# This is a marker to let `DidYouMean::Correctable#original_message` skip
4+
# the following method definition of `to_s`.
5+
# See https://github.com/ruby/did_you_mean/pull/152
36
SKIP_TO_S_FOR_SUPER_LOOKUP = true
47
private_constant :SKIP_TO_S_FOR_SUPER_LOOKUP
58

@@ -42,7 +45,8 @@ def to_s
4245

4346
NameError.prepend(CoreExt)
4447

45-
# temporarily disabled
48+
# The extension for TypeError/ArgumentError is temporarily disabled due to many test failures
49+
4650
#TypeError.prepend(CoreExt)
4751
#ArgumentError.prepend(CoreExt)
4852
end

0 commit comments

Comments
 (0)