Skip to content
On this page

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class · Ruby 3.0

Gem::UriFormatter

< Object 3 instance methods 1 class methods

The UriFormatter handles URIs from user-input and escaping.

Example
uf = Gem::UriFormatter.new 'example.com'

p uf.normalize #=> 'http://example.com'

Class methods 1

Instance methods 3

Attributes

uri

Read

The URI to be formatted.