Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Commands::SetupCommand#shebang
shebang
lib/rubygems/commands/setup_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/commands/setup_command.rb, line 274
def shebang
if options[:env_shebang]
ruby_name = RbConfig::CONFIG["ruby_install_name"]
@env_path ||= ENV_PATHS.find {|env_path| File.executable? env_path }
"#!#{@env_path} #{ruby_name}\n"
else
"#!#{Gem.ruby}\n"
end
end
No documentation available
See also
#remove_old_man_files
#show_release_notes
#remove_old_lib_files
#target_bin_path
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0