module LLT
  class Diff::Common
    class Reviewable
      include Diff::Helpers::HashContainable

      attr_reader :sentences

      def initialize(id, sentences)
        super(id)
        @sentences = sentences
      end

      # can't use the class methods that set the same, as we have
      # subclasses using this value as well
      def xml_tag
        :comparison
      end

      def diff
        @container
      end

      def compare(gold)
        comparison = Comparison.new(gold, self)
        comparison.compare
        add(comparison) if comparison.any?
      end

      def to_xml
        container_to_xml
      end
    end
  end
end


module LLT
  class Diff::Common
    class Reviewable
      include Diff::Helpers::HashContainable

      attr_reader :sentences

      def initialize(id, sentences)
        super(id)
        @sentences = sentences
      end

      # can't use the class methods that set the same, as we have
      # subclasses using this value as well
      def xml_tag
        :reviewable
      end

      def diff
        @container
      end

      def compare(gold)
        comparison = Comparison.new(gold, self)
        comparison.compare
        add(comparison) if comparison.any?
      end

      def to_xml
        container_to_xml
      end
    end
  end
end


Fix xml tag of Common::Reviewable
Fix xml tag of Common::Reviewable
