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

[ruby/optparse] Make use of option_params.rdoc

d55d9284c3
This commit is contained in:
BurdetteLamar 2021-04-07 11:58:46 -05:00 committed by Nobuyoshi Nakada
parent 5891159f96
commit a5ecce9187
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
4 changed files with 28 additions and 67 deletions

View file

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