# File lib/addressable/uri.rb, line 1872 def freeze # Unfortunately, because of the memoized implementation of many of the # URI methods, the default freeze method will cause unexpected errors. # As an alternative, we freeze the string representation of the URI # instead. This should generally produce the desired effect. self.to_s.freeze return self end