mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/error_highlight] Add some comments
https://github.com/ruby/error_highlight/commit/e0c90c72c3
This commit is contained in:
parent
3391682eda
commit
db7e9b1aac
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
module ErrorHighlight
|
module ErrorHighlight
|
||||||
module CoreExt
|
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
|
SKIP_TO_S_FOR_SUPER_LOOKUP = true
|
||||||
private_constant :SKIP_TO_S_FOR_SUPER_LOOKUP
|
private_constant :SKIP_TO_S_FOR_SUPER_LOOKUP
|
||||||
|
|
||||||
|
@ -42,7 +45,8 @@ module ErrorHighlight
|
||||||
|
|
||||||
NameError.prepend(CoreExt)
|
NameError.prepend(CoreExt)
|
||||||
|
|
||||||
# temporarily disabled
|
# The extension for TypeError/ArgumentError is temporarily disabled due to many test failures
|
||||||
|
|
||||||
#TypeError.prepend(CoreExt)
|
#TypeError.prepend(CoreExt)
|
||||||
#ArgumentError.prepend(CoreExt)
|
#ArgumentError.prepend(CoreExt)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue