class Filters::LocalFilter

Public: Filters out non-local URIs

Public Instance Methods

filter(index, link, base_uri) click to toggle source

Public: Filter out resources that are not local.

Returns the link if it should be indexed else nil.

# File lib/sitemap/filters/filters.rb, line 141
def filter(index, link, base_uri)
  return true unless !should_index_local_link?(link, index, base_uri)
  false
end