End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Command#merge_options
merge_options(new_options)
lib/rubygems/command.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/command.rb, line 419
def merge_options(new_options)
@options = @defaults.clone
new_options.each {|k,v| @options[k] = v }
end
Merge a set of command options with the set of default options (without modifying the default option hash).
See also
#invoke_with_build_args
#option_is_deprecated?
#invoke
#parser
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0