Welcome to mirror list, hosted at ThFree Co, Russian Federation.

line.rb « diff « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8ac1b15e88a965eb40f3cbfa32926e314053e865 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module Gitlab
  module Diff
    class Line
      attr_reader :type, :text, :index, :old_pos, :new_pos

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