Class: SitemapGenerator::SitemapIndexLocation
- Inherits:
-
SitemapLocation
- Object
- Hash
- SitemapLocation
- SitemapGenerator::SitemapIndexLocation
- Defined in:
- lib/sitemap_generator/sitemap_location.rb
Instance Method Summary collapse
-
#create_index ⇒ Object
Really just a placeholder for an option which should really go into some kind of options class.
-
#initialize(opts = {}) ⇒ SitemapIndexLocation
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
#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_index ⇒ Object
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 |