Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/optparse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1643,8 +1643,8 @@ def define(*opts, &block)
#
# :include: ../doc/optparse/creates_option.rdoc
#
def on(*opts, &block)
define(*opts, &block)
def on(...)
define(...)
self
end
alias def_option define
Expand All @@ -1666,8 +1666,8 @@ def define_head(*opts, &block)
#
# The new option is added at the head of the summary.
#
def on_head(*opts, &block)
define_head(*opts, &block)
def on_head(...)
define_head(...)
self
end
alias def_head_option define_head
Expand All @@ -1690,8 +1690,8 @@ def define_tail(*opts, &block)
#
# The new option is added at the tail of the summary.
#
def on_tail(*opts, &block)
define_tail(*opts, &block)
def on_tail(...)
define_tail(...)
self
end
alias def_tail_option define_tail
Expand Down