instance method
Gem::Source#update_cache?
update_cache?
lib/rubygems/source.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/source.rb, line 94
def update_cache?
return @update_cache unless @update_cache.nil?
@update_cache =
begin
File.stat(Gem.user_home).uid == Process.uid
rescue Errno::ENOENT
false
end
end
Returns true when it is possible and safe to update the cache directory.