Class: Codeowners::Cli::SuggestionStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/codeowners/cli/suggest_file_from_pattern.rb

Overview

Build a list of suggestions case the pattern is not matching.

Direct Known Subclasses

FilesFromFZFSearch, FilesFromParentFolder

Instance Method Summary collapse

Constructor Details

#initialize(pattern) ⇒ SuggestionStrategy

Returns a new instance of SuggestionStrategy.



35
36
37
# File 'lib/codeowners/cli/suggest_file_from_pattern.rb', line 35

def initialize(pattern)
  @pattern = pattern
end

Instance Method Details

#pick_suggestionsObject

Raises:

  • (NotImplementedError)


39
40
41
# File 'lib/codeowners/cli/suggest_file_from_pattern.rb', line 39

def pick_suggestions
  raise NotImplementedError
end