Class: SitemapGenerator::SitemapIndexLocation
- Inherits:
-
SitemapLocation
- Object
- Hash
- SitemapLocation
- SitemapGenerator::SitemapIndexLocation
- Defined in:
- lib/sitemap_generator/sitemap_location.rb
Instance Method Summary (collapse)
-
- (Object) create_index
Really just a placeholder for an option which should really go into some kind of options class.
-
- (SitemapIndexLocation) initialize(opts = {})
constructor
A new instance of SitemapIndexLocation.
Methods inherited from SitemapLocation
#[]=, #directory, #filename, #filesize, #namer, #path, #path_in_public, #reserve_name, #reserved_name?, #url, #verbose?, #with, #write
Constructor Details
- (SitemapIndexLocation) initialize(opts = {})
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
- (Object) create_index
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 |