summaryrefslogtreecommitdiff
path: root/lib/gitlab/diff/line.rb
blob: e8b9c980a1a8f0f9fe5d0d13d2d8fe1e27245c7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module Gitlab
  module Diff
    class Line
      attr_reader :type, :text, :index, :code, :old_pos, :new_pos

      def initialize(text, type, index, old_pos, new_pos, code = nil)
        @text, @type, @index, @code = text, type, index, code
        @old_pos, @new_pos = old_pos, new_pos
      end
    end
  end
end