End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::ConfigFile#each
each() { |:update_sources, update_sources| ... }
lib/rubygems/config_file.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/config_file.rb, line 380
def each(&block)
hash = @hash.dup
hash.delete :update_sources
hash.delete :verbose
hash.delete :backtrace
hash.delete :bulk_threshold
yield :update_sources, @update_sources
yield :verbose, @verbose
yield :backtrace, @backtrace
yield :bulk_threshold, @bulk_threshold
yield 'config_file_name', @config_file_name if @config_file_name
hash.each(&block)
end
Delegates to @hash
See also
#credentials_path
#handle_arguments
#config_file_name
#load_api_keys
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1