Skip to content

Commit

Permalink
Moved rdoc files to doc/optparse
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Apr 11, 2021
1 parent 8be031b commit cccb28e
Show file tree
Hide file tree
Showing 53 changed files with 8 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions lib/optparse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ def notwice(obj, prv, msg)
# :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 = [], [], []
Expand Down Expand Up @@ -1452,7 +1452,7 @@ def make_switch(opts, block = nil)
# :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)))
Expand All @@ -1462,7 +1462,7 @@ def define(*opts, &block)
# :call-seq:
# on(*params, &block)
#
# :include: ../doc/creates_option.rdoc
# :include: ../doc/optparse/creates_option.rdoc
#
def on(*opts, &block)
define(*opts, &block)
Expand All @@ -1473,7 +1473,7 @@ def on(*opts, &block)
# :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)))
Expand All @@ -1483,7 +1483,7 @@ def define_head(*opts, &block)
# :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.
#
Expand All @@ -1496,7 +1496,7 @@ def on_head(*opts, &block)
# :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)))
Expand All @@ -1507,7 +1507,7 @@ def define_tail(*opts, &block)
# :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.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/optparse/kwargs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit cccb28e

Please sign in to comment.