2014-09-08 09:25:50 -04:00
|
|
|
module Gitlab
|
|
|
|
module Diff
|
|
|
|
class Line
|
2014-09-08 14:54:52 -04:00
|
|
|
attr_reader :type, :text, :index, :old_pos, :new_pos
|
2014-09-08 09:25:50 -04:00
|
|
|
|
2014-09-08 14:54:52 -04:00
|
|
|
def initialize(text, type, index, old_pos, new_pos)
|
|
|
|
@text, @type, @index = text, type, index
|
2014-09-08 09:25:50 -04:00
|
|
|
@old_pos, @new_pos = old_pos, new_pos
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|