End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Uri#redacted
redacted
lib/rubygems/uri.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/uri.rb, line 50
def redacted
return self unless valid_uri?
if token? || oauth_basic?
with_redacted_user
elsif password?
with_redacted_password
else
self
end
end
No documentation available
See also
#redact_credentials_from
#respond_to_missing?
#password?
#token?
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0