module Enumerable

Public Instance Methods

glob_include?(e) click to toggle source

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

# File lib/moft/core_ext.rb, line 57
def glob_include?(e)
  any? { |exp| File.fnmatch?(exp, e) }
end