Class: URI::Generic

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

Instance Method Summary collapse

Instance Method Details

#hostnameObject



19
20
21
22
# File 'lib/httpclient/util.rb', line 19

def hostname
  v = self.host
  /\A\[(.*)\]\z/ =~ v ? $1 : v
end