Class: SitemapGenerator::SitemapIndexLocation

Inherits:
SitemapLocation show all
Defined in:
lib/sitemap_generator/sitemap_location.rb

Instance Method Summary collapse

Methods inherited from SitemapLocation

#[]=, #directory, #filename, #filesize, #namer, #path, #path_in_public, #reserve_name, #reserved_name?, #url, #verbose?, #with, #write

Constructor Details

#initialize(opts = {}) ⇒ SitemapIndexLocation

Returns a new instance of SitemapIndexLocation.



128
129
130
131
132
133
# File 'lib/sitemap_generator/sitemap_location.rb', line 128

def initialize(opts={})
  if !opts[:filename] && !opts[:namer]
    opts[:namer] = SitemapGenerator::SitemapIndexNamer.new(:sitemap)
  end
  super(opts)
end

Instance Method Details

#create_indexObject

Really just a placeholder for an option which should really go into some kind of options class.



137
138
139
# File 'lib/sitemap_generator/sitemap_location.rb', line 137

def create_index
  self[:create_index]
end