Class: LLT::Review::Treebank::Difference::Attribute

Inherits:
Generic
  • Object
show all
Defined in:
lib/llt/review/treebank/difference/attribute.rb

Direct Known Subclasses

Head, Lemma, Relation

Instance Attribute Summary

Attributes inherited from Generic

#new, #original

Attributes included from Helpers::ReviewReporter

#unique

Instance Method Summary collapse

Methods inherited from Generic

#diff_id, #initialize, #type, #xml_attributes, #xml_tag

Methods included from Helpers::ReviewReporter

#diff_id, #initialize, #item, #report_diff, #xml_attributes

Constructor Details

This class inherits a constructor from LLT::Review::Treebank::Difference::Generic

Instance Method Details

#write_to_report(report, unique) ⇒ Object



4
5
6
7
8
# File 'lib/llt/review/treebank/difference/attribute.rb', line 4

def write_to_report(report, unique)
  container = report[report_location]
  container.add_wrong(unique)
  container[item.to_s].add_wrong(unique)
end