Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::ConfigFile#api_keys
api_keys
lib/rubygems/config_file.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/config_file.rb, line 330
def api_keys
load_api_keys unless @api_keys
@api_keys
end
Hash of RubyGems.org and alternate API keys, as they appear in the credentials file. Keys held in the credential store are not included, so this is not the full set of keys a command can authenticate with. Use credential_store_api_key_for or credential_store_default_api_key to reach those.
See also
#active_credential_store
#backtrace
#[]=
#check_credentials_permissions
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0