Module: Enumerable

Defined in:
lib/moft/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#glob_include?(e) ⇒ Boolean

Returns true if path matches against any glob pattern. Look for more detail about glob pattern in method File::fnmatch.



57
58
59
# File 'lib/moft/core_ext.rb', line 57

def glob_include?(e)
  any? { |exp| File.fnmatch?(exp, e) }
end