class Troy::ExtensionMatcher
def match
def match matchers.each do |ext, handler| return handler.call if File.basename(path).end_with?(ext) end matchers["default"]&.call end
def match matchers.each do |ext, handler| return handler.call if File.basename(path).end_with?(ext) end matchers["default"]&.call end