Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class method

Gem.platform_defaults

() -> ::Hash[::String, ::String]
platform_defaults

Default options for gem commands for Ruby implementers.

The options here should be structured as an array of string “gem” command names as keys and a string of the default options as values.

Example:

def self.platform_defaults

Example
{
    'install' => '--no-rdoc --no-ri --env-shebang',
    'update' => '--no-rdoc --no-ri --env-shebang'
}

end

See also .path_separator .platforms .paths= .platforms= also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0