method

shebang

ruby latest stable - Class: Gem::Commands::SetupCommand

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

shebang()
public

No documentation available.

# File lib/rubygems/commands/setup_command.rb, line 301
  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