Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Command#configure_options
configure_options(header, option_list)
lib/rubygems/command.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/command.rb, line 556
def configure_options(header, option_list)
return if option_list.nil? || option_list.empty?
header = header.to_s.empty? ? "" : "#{header} "
@parser.separator " #{header}Options:"
option_list.each do |args, handler|
@parser.on(*args) do |value|
handler.call(value, @options)
end
end
@parser.separator ""
end
No documentation available
See also
#check_deprecated_options
#create_option_parser
#begins?
#defaults_str
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0