Class: Gitlab::WikiFileFinder

Inherits:
FileFinder show all
Defined in:
lib/gitlab/wiki_file_finder.rb

Instance Attribute Summary collapse

Attributes inherited from FileFinder

#project, #ref

Instance Method Summary collapse

Methods inherited from FileFinder

#find

Constructor Details

#initialize(project, ref) ⇒ WikiFileFinder

Returns a new instance of WikiFileFinder.


7
8
9
10
11
# File 'lib/gitlab/wiki_file_finder.rb', line 7

def initialize(project, ref)
  @project = project
  @ref = ref
  @repository = project.wiki.repository
end

Instance Attribute Details

#repositoryObject (readonly)

Returns the value of attribute repository.


5
6
7
# File 'lib/gitlab/wiki_file_finder.rb', line 5

def repository
  @repository
end