Module: Enumerable

Defined in:
lib/jekyll/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.

Returns:

  • (Boolean)


68
69
70
# File 'lib/jekyll/core_ext.rb', line 68

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