diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-12-18 12:45:44 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-12-25 21:12:49 +0900 |
commit | e55a57af1e9872c34ad799d3b42be4430cdf12fc (patch) | |
tree | cc8887a1fdeeb0d6b8bbd13f741a87780b0f7bf0 /lib/optparse.rb | |
parent | 7dd59346a06168470f2a0ca590c305d6da3df47a (diff) |
[ruby/optparse] [DOC] Add missing documents
https://github.com/ruby/optparse/commit/324ff21f04
Diffstat (limited to 'lib/optparse.rb')
-rw-r--r-- | lib/optparse.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb index 832b928a2d..ace57952f0 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -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 |