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.

Parameters:

Returns:

  • (Boolean)

    True if @url and @html are equal, false if not.



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