Class: SitemapGenerator::Mapper
- Inherits:
-
Object
- Object
- SitemapGenerator::Mapper
- Defined in:
- lib/sitemap_generator/mapper.rb
Overview
Generator instances are used to build links. The object passed to the add_links block in config/sitemap.rb is a Generator instance.
Instance Attribute Summary collapse
-
#set ⇒ Object
Returns the value of attribute set.
Instance Method Summary collapse
- #add(loc, options = {}) ⇒ Object
-
#initialize(set) ⇒ Mapper
constructor
A new instance of Mapper.
Constructor Details
#initialize(set) ⇒ Mapper
Returns a new instance of Mapper.
7 8 9 |
# File 'lib/sitemap_generator/mapper.rb', line 7 def initialize(set) @set = set end |
Instance Attribute Details
#set ⇒ Object
Returns the value of attribute set.
5 6 7 |
# File 'lib/sitemap_generator/mapper.rb', line 5 def set @set end |