Skip to content
On this page

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

class · Ruby 3.3

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.