Skip to content
On this page

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class · Ruby 4.1

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.