= private = protected
replace!(oth)
Replaces self by other URI object.
# File lib/uri/generic.rb, line 300 def replace!(oth) if self.class != oth.class raise ArgumentError, "expected #{self.class} object" end component.each do |c| self.__send__("#{c}=", oth.__send__(c)) end end