Class: Mj::AlternativeFile::Resolvers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/mj/alternative_file/resolvers/base.rb

Instance Method Summary collapse

Instance Method Details

#resolve(file) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/mj/alternative_file/resolvers/base.rb', line 7

def resolve(file)
  [].tap do |candidates|
    if apply_to?(file)
      add_candidates(file, candidates)
    end
  end
end