1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/optparse] Moved rdoc files to doc/optparse

https://github.com/ruby/optparse/commit/cccb28e0de
This commit is contained in:
Nobuyoshi Nakada 2021-04-11 09:03:07 +09:00
parent cb01437c24
commit f89486965b
53 changed files with 8 additions and 8 deletions

View file

@ -1314,7 +1314,7 @@ XXX
# :call-seq:
# make_switch(params, block = nil)
#
# :include: ../doc/creates_option.rdoc
# :include: ../doc/optparse/creates_option.rdoc
#
def make_switch(opts, block = nil)
short, long, nolong, style, pattern, conv, not_pattern, not_conv, not_style = [], [], []
@ -1452,7 +1452,7 @@ XXX
# :call-seq:
# define(*params, &block)
#
# :include: ../doc/creates_option.rdoc
# :include: ../doc/optparse/creates_option.rdoc
#
def define(*opts, &block)
top.append(*(sw = make_switch(opts, block)))
@ -1462,7 +1462,7 @@ XXX
# :call-seq:
# on(*params, &block)
#
# :include: ../doc/creates_option.rdoc
# :include: ../doc/optparse/creates_option.rdoc
#
def on(*opts, &block)
define(*opts, &block)
@ -1473,7 +1473,7 @@ XXX
# :call-seq:
# define_head(*params, &block)
#
# :include: ../doc/creates_option.rdoc
# :include: ../doc/optparse/creates_option.rdoc
#
def define_head(*opts, &block)
top.prepend(*(sw = make_switch(opts, block)))
@ -1483,7 +1483,7 @@ XXX
# :call-seq:
# on_head(*params, &block)
#
# :include: ../doc/creates_option.rdoc
# :include: ../doc/optparse/creates_option.rdoc
#
# The new option is added at the head of the summary.
#
@ -1496,7 +1496,7 @@ XXX
# :call-seq:
# define_tail(*params, &block)
#
# :include: ../doc/creates_option.rdoc
# :include: ../doc/optparse/creates_option.rdoc
#
def define_tail(*opts, &block)
base.append(*(sw = make_switch(opts, block)))
@ -1507,7 +1507,7 @@ XXX
# :call-seq:
# on_tail(*params, &block)
#
# :include: ../doc/creates_option.rdoc
# :include: ../doc/optparse/creates_option.rdoc
#
# The new option is added at the tail of the summary.
#

View file

@ -5,7 +5,7 @@ class OptionParser
# :call-seq:
# define_by_keywords(options, method, **params)
#
# :include: ../../doc/creates_option.rdoc
# :include: ../../doc/optparse/creates_option.rdoc
#
def define_by_keywords(options, meth, **opts)
meth.parameters.each do |type, name|