BigW Consortium Gitlab

line.rb 284 Bytes
Newer Older
1 2 3
module Gitlab
  module Diff
    class Line
4
      attr_reader :type, :text, :index, :old_pos, :new_pos
5

6 7
      def initialize(text, type, index, old_pos, new_pos)
        @text, @type, @index = text, type, index
8 9 10 11 12
        @old_pos, @new_pos = old_pos, new_pos
      end
    end
  end
end