# Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true module Contrast module Framework # Used to define common locations and extensions for specific technologies class ViewTechnologiesDescriptor attr_reader :path, :extension, :technology_names def initialize path, extension, technology_names @path = path @extension = extension @technology_names = technology_names end def empty? Dir["#{ path }/**/*#{ extension }"].empty? end end end end