class URI::Generic
Public Instance Methods
hostname()
click to toggle source
Copied from the MRI source for Ruby 1.9.3 File lib/uri/generic.rb, line 659
# File lib/chef/monkey_patches/uri.rb, line 65 def hostname v = self.host /\A\[(.*)\]\z/ =~ v ? $1 : v end