class LLT::Review::Alignment::Difference::Word

Public Instance Methods

diff_id() click to toggle source
# File lib/llt/review/alignment/difference/word.rb, line 4
def diff_id
  @diff_id ||= "#{@id}:#{original}|#{new}"
end
new() click to toggle source
# File lib/llt/review/alignment/difference/word.rb, line 14
def new
  @new ||= @container[:translation].new
end
original() click to toggle source

go right to the translation - we have the nrefs too, not sure if we need them actually

# File lib/llt/review/alignment/difference/word.rb, line 10
def original
  @original ||= @container[:translation].original
end

Private Instance Methods

write_to_report(report, unique) click to toggle source
# File lib/llt/review/alignment/difference/word.rb, line 20
def write_to_report(report, unique)
  super
  container = report[:words]
  container[item.to_s].add_wrong(unique)
end