Method: Addressable::URI#==
- Defined in:
- lib/addressable/uri.rb
#==(uri) ⇒ TrueClass, FalseClass
Returns true
if the URI objects are equal. This method normalizes both URIs before doing the comparison.
2239 2240 2241 2242 |
# File 'lib/addressable/uri.rb', line 2239 def ==(uri) return false unless uri.kind_of?(URI) return self.normalize.to_s == uri.normalize.to_s end |