class Addressable::URI
def tld=(new_tld)
-
new_tld(String, #to_str) -- The new top-level domain.
def tld=(new_tld) replaced_tld = host.sub(/#{tld}\z/, new_tld) self.host = PublicSuffix::Domain.new(replaced_tld).to_s end
new_tld
(String, #to_str)
-- The new top-level domain.
def tld=(new_tld) replaced_tld = host.sub(/#{tld}\z/, new_tld) self.host = PublicSuffix::Domain.new(replaced_tld).to_s end