Module: SitemapGenerator::LinkSet::Deprecated
- Included in:
- SitemapGenerator::LinkSet
- Defined in:
- lib/sitemap_generator/link_set.rb
Instance Method Summary collapse
-
#sitemap_index_namer ⇒ Object
Deprecated.
-
#sitemap_index_namer=(value) ⇒ Object
Deprecated.
-
#sitemaps_namer ⇒ Object
Deprecated.
-
#sitemaps_namer=(value) ⇒ Object
Deprecated.
Instance Method Details
#sitemap_index_namer ⇒ Object
Deprecated
As of version 4, use the <tt>namer<tt> option.
665 666 667 |
# File 'lib/sitemap_generator/link_set.rb', line 665 def sitemap_index_namer @sitemap_index_namer ||= @sitemap_index && @sitemap_index.location.namer end |
#sitemap_index_namer=(value) ⇒ Object
Deprecated
Set the namer to use when generating the index file. The namer should be a SitemapGenerator::SitemapIndexNamer
instance.
As of version 4, use the <tt>namer<tt> option.
657 658 659 660 |
# File 'lib/sitemap_generator/link_set.rb', line 657 def sitemap_index_namer=(value) @sitemap_index_namer = value @sitemap_index.location[:namer] = value if @sitemap_index && !@sitemap_index.finalized? && !@protect_index end |
#sitemaps_namer ⇒ Object
Deprecated
Return the current sitemaps namer object. If it not set, looks for it on the current sitemap and if there is no sitemap, creates a new one using the current filename.
As of version 4, use the <tt>namer<tt> option.
647 648 649 |
# File 'lib/sitemap_generator/link_set.rb', line 647 def sitemaps_namer @sitemaps_namer ||= @sitemap && @sitemap.location.namer end |
#sitemaps_namer=(value) ⇒ Object
Deprecated
Set the namer to use when generating SitemapFiles (does not apply to the SitemapIndexFile)
As of version 4, use the <tt>namer<tt> option.
635 636 637 638 |
# File 'lib/sitemap_generator/link_set.rb', line 635 def sitemaps_namer=(value) @sitemaps_namer = value @sitemap.location[:namer] = value if @sitemap && !@sitemap.finalized? end |