Method: WordsRubySdk::DocumentPosition#==

Defined in:
lib/words_ruby_sdk/models/document_position.rb

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



90
91
92
93
94
95
# File 'lib/words_ruby_sdk/models/document_position.rb', line 90

def ==(other)
  return true if self.equal?(other)
  self.class == other.class &&
      node == other.node &&
      offset == other.offset
end