mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
Revert "Revert "Replace an deprecated constant with a new one in did_you_mean""
This reverts commit 1527f7569b
.
This commit is contained in:
parent
4767cf0cb5
commit
03c54a09ec
1 changed files with 1 additions and 5 deletions
|
@ -13,11 +13,7 @@ class TestOptionParser::DidYouMean < TestOptionParser
|
||||||
@opt.def_option("--bar", Integer) { |v| @bar = v }
|
@opt.def_option("--bar", Integer) { |v| @bar = v }
|
||||||
@opt.def_option("--baz", Integer) { |v| @baz = v }
|
@opt.def_option("--baz", Integer) { |v| @baz = v }
|
||||||
@formatter = ::DidYouMean.formatter
|
@formatter = ::DidYouMean.formatter
|
||||||
case @formatter
|
::DidYouMean.formatter = ::DidYouMean::Formatter
|
||||||
when ::DidYouMean::PlainFormatter
|
|
||||||
else
|
|
||||||
::DidYouMean.formatter = ::DidYouMean::PlainFormatter.new
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def teardown
|
def teardown
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue