Method: Enumerable#glob_include?
- Defined in:
- lib/moft/core_ext.rb
#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 |