Class: Utils::ConfigFile::FileFinder

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

Direct Known Subclasses

Discover, Scope, Search, StripSpaces

Instance Method Summary collapse

Methods inherited from BlockConfig

config, inherited, #initialize, #to_ruby

Constructor Details

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

Instance Method Details

#prune?(basename) ⇒ Boolean

Returns:

  • (Boolean)


108
109
110
# File 'lib/utils/config_file.rb', line 108

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

#skip?(basename) ⇒ Boolean

Returns:

  • (Boolean)


112
113
114
# File 'lib/utils/config_file.rb', line 112

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