End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem::Commands::WhichCommand.new
new
lib/rubygems/commands/which_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/commands/which_command.rb, line 5
def initialize
super "which", "Find the location of a library file you can require",
:search_gems_first => false, :show_all => false
add_option "-a", "--[no-]all", "show all matching files" do |show_all, options|
options[:show_all] = show_all
end
add_option "-g", "--[no-]gems-first",
"search gems before non-gems" do |gems_first, options|
options[:search_gems_first] = gems_first
end
end
No documentation available