module SitemapGenerator

A LinkSet provisions a bunch of links to sitemap files. It also writes the index file which lists all the sitemap files written.

Constants

MAX_SITEMAP_FILES
MAX_SITEMAP_FILESIZE
MAX_SITEMAP_IMAGES
MAX_SITEMAP_NEWS
SCHEMAS
Sitemap

Lazy-initialize the LinkSet instance

SitemapError
SitemapFinalizedError
SitemapFullError
VERSION

Attributes

app[RW]
root[RW]
templates[RW]
verbose[W]
yield_sitemap[W]

Public Class Methods

verbose() click to toggle source

Global default for the verbose setting.

# File lib/sitemap_generator.rb, line 58
def self.verbose
  if @verbose.nil?
    @verbose = if SitemapGenerator::Utilities.truthy?(ENV['VERBOSE'])
      true
    elsif SitemapGenerator::Utilities.falsy?(ENV['VERBOSE'])
      false
    else
      nil
    end
  else
    @verbose
  end
end
yield_sitemap?() click to toggle source

Returns true if we should yield the sitemap instance to the block, false otherwise.

# File lib/sitemap_generator.rb, line 73
def self.yield_sitemap?
  !!@yield_sitemap
end