Module: ConfCtl::Pattern

Defined in:
lib/confctl/pattern.rb

Class Method Summary collapse

Class Method Details

.match?(pattern, name) ⇒ Boolean

Parameters:

  • pattern (String)
  • name (String)

Returns:

  • (Boolean)


5
6
7
# File 'lib/confctl/pattern.rb', line 5

def self.match?(pattern, name)
  File.fnmatch?(pattern, name, File::FNM_EXTGLOB)
end