class Middleman::Sitemap::Extensions::Ignores::GlobIgnoreDescriptor

Public Instance Methods

ignored?(match_path) click to toggle source
# File lib/middleman-core/sitemap/extensions/ignores.rb, line 62
def ignored?(match_path)
  if defined?(::File::FNM_EXTGLOB)
    ::File.fnmatch(path, match_path, ::File::FNM_EXTGLOB)
  else
    ::File.fnmatch(path, match_path)
  end
end