[ruby/optparse] [DOC] Add missing documents

https://github.com/ruby/optparse/commit/324ff21f04
This commit is contained in:
Nobuyoshi Nakada 2023-12-18 12:45:44 +09:00 коммит произвёл Hiroshi SHIBATA
Родитель 7dd59346a0
Коммит e55a57af1e
1 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -1129,6 +1129,10 @@ XXX
default.to_i + 1
end
end
#
# See self.inc
#
def inc(*args)
self.class.inc(*args)
end
@ -1167,6 +1171,9 @@ XXX
def terminate(arg = nil)
self.class.terminate(arg)
end
#
# See #terminate.
#
def self.terminate(arg = nil)
throw :terminate, arg
end
@ -1881,6 +1888,9 @@ XXX
DidYouMean.formatter.message_for(all_candidates & checker.correct(opt))
end
#
# Return candidates for +word+.
#
def candidate(word)
list = []
case word
@ -2123,6 +2133,7 @@ XXX
# Reason which caused the error.
Reason = 'parse error'
# :nodoc:
def initialize(*args, additional: nil)
@additional = additional
@arg0, = args