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

Inherits:
BlockConfig
  • Object
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)


83
84
85
# File 'lib/utils/config/config_file.rb', line 83

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

#skip?(basename) ⇒ Boolean

Returns:

  • (Boolean)


87
88
89
# File 'lib/utils/config/config_file.rb', line 87

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