select(*components) public

Args

components:Multiple <a href="/ruby/Symbol">Symbol</a> arguments defined in URI::HTTP

Description

Selects specified components from URI

Usage

  require 'uri'

  uri = URI.parse('http://myuser:mypass@my.example.com/test.rbx')
  p uri.select(:userinfo, :host, :path)
  # => ["myuser:mypass", "my.example.com", "/test.rbx"]
Show source
Register or log in to add new notes.