class Bundler::URI::Generic

def select(*components)


# => ["myuser:mypass", "my.example.com", "/test.rbx"]
uri.select(:userinfo, :host, :path)
uri = Bundler::URI.parse('http://myuser:mypass@my.example.com/test.rbx')

require 'bundler/vendor/uri/lib/uri'

== Usage

Selects specified components from Bundler::URI.

== Description

Multiple Symbol arguments defined in Bundler::URI::HTTP.
+components+::

== Args
def select(*components)
  components.collect do |c|
    if component.include?(c)
      self.__send__(c)
    else
      raise ArgumentError,
        "expected of components of #{self.class} (#{self.class.component.join(', ')})"
    end
  end
end