Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem.default_exec_format
default_exec_format
lib/rubygems/defaults.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/defaults.rb, line 186
def self.default_exec_format
exec_format = begin
RbConfig::CONFIG["ruby_install_name"].sub("ruby", "%s")
rescue StandardError
"%s"
end
unless exec_format.include?("%s")
raise Gem::Exception,
"[BUG] invalid exec_format #{exec_format.inspect}, no %s"
end
exec_format
end
Deduce Ruby’s –program-prefix and –program-suffix from its install name
See also
.default_dir
.default_ext_dir_for
.default_cert_path
.default_gem_load_paths
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0