summaryrefslogtreecommitdiff
path: root/lib/optparse/kwargs.rb
diff options
context:
space:
mode:
authorBurdetteLamar <burdettelamar@yahoo.com>2021-03-28 12:24:21 -0500
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-29 15:55:41 +0900
commit7846f3201a1381cf07ff7477b8a1d6744a853c78 (patch)
tree166e4cce81ceec6b090dd9b93eb00171a23e568c /lib/optparse/kwargs.rb
parenteca8ffaa0b446db0a1cacc82a2e73155f6fd3fce (diff)
[ruby/optparse] Change *opts to *params, to avoid confusion
https://github.com/ruby/optparse/commit/f5f5e202dd
Diffstat (limited to 'lib/optparse/kwargs.rb')
-rw-r--r--lib/optparse/kwargs.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/optparse/kwargs.rb b/lib/optparse/kwargs.rb
index ed58cc1..5a2def4 100644
--- a/lib/optparse/kwargs.rb
+++ b/lib/optparse/kwargs.rb
@@ -2,6 +2,9 @@
require 'optparse'
class OptionParser
+ # :call-seq:
+ # define_by_keywords(options, method, **params)
+ #
def define_by_keywords(options, meth, **opts)
meth.parameters.each do |type, name|
case type