Method: Txgh::ResourceContents#diff

Defined in:
lib/txgh/resource_contents.rb

#diff(other_contents) ⇒ Object



76
77
78
79
80
# File 'lib/txgh/resource_contents.rb', line 76

def diff(other_contents)
  diff = diff_hash(other_contents)
  diff_phrases = diff[:added] + diff[:modified]
  self.class.from_phrase_list(tx_resource, diff_phrases)
end