module

URI

No documentation available for this module.

Files

  • activesupport/lib/active_support/core_ext/uri.rb

1Note

URI Module

pratap ยท Jul 2, 2014

Uniform handling of handling URIs

Flexibility to introduce custom URI schemes

Flexibility to have an alternate URI::Parser

For Example

require 'uri'

uri = URI("http://test.com/posts?id=30&limit=5#time=1305298413")

uri.scheme #=> "http"

uri.host #=> "test.com"

uri.path #=> "/posts"