Class: Gitlab::Diff::FileCollection::Compare

Inherits:
Base
  • Object
show all
Defined in:
lib/gitlab/diff/file_collection/compare.rb

Instance Attribute Summary

Attributes inherited from Base

#diff_options, #diff_refs, #diffable, #fallback_diff_refs, #project

Instance Method Summary collapse

Methods inherited from Base

#clear_cache, default_options, #diff_file_paths, #diff_file_with_new_path, #diff_file_with_old_path, #diff_files, #diffs, #pagination_data, #raw_diff_files, #unfold_diff_files, #write_cache

Methods included from Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Constructor Details

#initialize(compare, project:, diff_options:, diff_refs: nil) ⇒ Compare

Returns a new instance of Compare.


7
8
9
10
11
12
# File 'lib/gitlab/diff/file_collection/compare.rb', line 7

def initialize(compare, project:, diff_options:, diff_refs: nil)
  super(compare,
    project:      project,
    diff_options: diff_options,
    diff_refs:    diff_refs)
end

Instance Method Details

#unfold_diff_lines(positions) ⇒ Object


14
15
16
# File 'lib/gitlab/diff/file_collection/compare.rb', line 14

def unfold_diff_lines(positions)
  # no-op
end