Class: Utils::Config::ConfigFile::FileFinder

Inherits:
BlockConfig show all
Defined in:
lib/utils/config/config_file.rb

Direct Known Subclasses

Discover, Search, StripSpaces

Instance Method Summary collapse

Methods inherited from BlockConfig

config, inherited, #initialize, #to_ruby

Constructor Details

This class inherits a constructor from Utils::Config::ConfigFile::BlockConfig

Instance Method Details

#prune?(basename) ⇒ Boolean

Returns:

  • (Boolean)


106
107
108
# File 'lib/utils/config/config_file.rb', line 106

def prune?(basename)
  Array(prune_dirs).any? { |pd| pd.match(basename.to_s) }
end

#skip?(basename) ⇒ Boolean

Returns:

  • (Boolean)


110
111
112
# File 'lib/utils/config/config_file.rb', line 110

def skip?(basename)
  Array(skip_files).any? { |sf| sf.match(basename.to_s) }
end