Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::ConfigFile#credential_store_default_api_key
credential_store_default_api_key
lib/rubygems/config_file.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/config_file.rb, line 471
def credential_store_default_api_key
return nil unless credential_store
return nil unless store = active_credential_store
store.get(CREDENTIAL_STORE_DEFAULT_ACCOUNT)
end
The default RubyGems.org API key from the credential store, or nil. This is the stored counterpart of rubygems_api_key, and belongs at the same point in the lookup order.