End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::CommandManager#[]
[](command_name)
lib/rubygems/command_manager.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/command_manager.rb, line 132
def [](command_name)
command_name = command_name.intern
return nil if @commands[command_name].nil?
@commands[command_name] ||= load_and_instantiate(command_name)
end
Returns a Command instance for command_name