Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Installer#bash_prolog_script
bash_prolog_script
lib/rubygems/installer.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/installer.rb, line 1039
def bash_prolog_script
if load_relative_enabled?
<<~EOS
#!/bin/sh
# -*- ruby -*-
_=_\\
=begin
bindir="${0%/*}"
ruby="$bindir/#{ruby_install_name}"
if [ ! -f "$ruby" ]; then
ruby="#{ruby_install_name}"
fi
exec "$ruby" "-x" "$0" "$@"
=end
EOS
else
""
end
end
No documentation available
See also
#assign_content_address
#build_args
#app_script_text
#build_extensions
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1