зеркало из https://github.com/github/ruby.git
[ruby/optparse] Moved rdoc files to doc/optparse
https://github.com/ruby/optparse/commit/cccb28e0de
This commit is contained in:
Родитель
cb01437c24
Коммит
f89486965b
|
@ -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.
|
||||
#
|
||||
|
|
|
@ -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|
|
||||
|
|
Загрузка…
Ссылка в новой задаче