Class: Mj::AlternativeFile::Resolvers::Base
- Inherits:
-
Object
- Object
- Mj::AlternativeFile::Resolvers::Base
- Defined in:
- lib/mj/alternative_file/resolvers/base.rb
Direct Known Subclasses
Ruby::PackwerkResolver, Ruby::RailsControllerResolver, Ruby::RailsResolver, Ruby::VendoredGemsResolver, Ruby::ViewComponentResolver
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 |