Method: Wgit::Document#==
- Defined in:
- lib/wgit/document.rb
#==(other) ⇒ Boolean
Determines if both the url and html match. Use doc.object_id == other.object_id for exact object comparison.
209 210 211 212 213 |
# File 'lib/wgit/document.rb', line 209 def ==(other) return false unless other.is_a?(Wgit::Document) (@url == other.url) && (@html == other.html) end |