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