Maintenance Ruby 3.3 gets fixes, but no new features. 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.3.0/lib/rubygems/config_file.rb, line 410
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
#last_update_check
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0