Class: URI::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/ss2.rb

Instance Method Summary collapse

Instance Method Details

#split(url) ⇒ Object



10
11
12
13
# File 'lib/ss2.rb', line 10

def split url
  a = Addressable::URI::parse url
  [a.scheme, a.userinfo, a.host, a.port, nil, a.path, nil, a.query, a.fragment]
end