Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
URI.scheme_list
() -> ::Hash[::String, ::Class]
scheme_list
lib/uri/common.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/uri/common.rb, line 161
def self.scheme_list
Schemes.list
end
Returns a hash of the defined schemes:
Example
URI.scheme_list # => {"MAILTO"=>URI::MailTo, "LDAPS"=>URI::LDAPS, "WS"=>URI::WS, "HTTP"=>URI::HTTP, "HTTPS"=>URI::HTTPS, "LDAP"=>URI::LDAP, "FILE"=>URI::File, "FTP"=>URI::FTP}
Related: URI.register_scheme.