split

split(uri)
Class Public methods

Synopsis

1
URI::split(uri)

Args

uri

String with URI.

Description

Splits the string on following parts and returns array with result:

1
2
3
4
5
6
7
8
9
* Scheme
* Userinfo
* Host
* Port
* Registry
* Path
* Opaque
* Query
* Fragment

Usage

1
2
3
4
require 'uri'
 
# => ["http", nil, "www.ruby-lang.org", nil, nil, "/", nil, nil, nil]
doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.