Method: Addressable::URI#authority
- Defined in:
- lib/addressable/uri.rb
#authority ⇒ String
The authority component for this URI. Combines the user, password, host, and port components.
1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 |
# File 'lib/addressable/uri.rb', line 1234 def self.host && @authority ||= begin = String.new if self.userinfo != nil << "#{self.userinfo}@" end << self.host if self.port != nil << ":#{self.port}" end end end |