Skip to content
On this page
class · Ruby 4.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.