Module: Sitemapper::Accessors
- Defined in:
- lib/sitemapper/accessors.rb
Instance Method Summary collapse
- #map_path(path, opts = {}) ⇒ Object
- #map_url(url, opts = {}) ⇒ Object
- #map_urls ⇒ Object
- #unmap_path(path) ⇒ Object
- #unmap_url(url) ⇒ Object
Instance Method Details
#map_path(path, opts = {}) ⇒ Object
7 8 9 |
# File 'lib/sitemapper/accessors.rb', line 7 def map_path(path, opts={}) Sitemapper::map.map_path(path, opts) end |
#map_url(url, opts = {}) ⇒ Object
3 4 5 |
# File 'lib/sitemapper/accessors.rb', line 3 def map_url(url, opts={}) Sitemapper::map.map_url(url, opts) end |
#map_urls ⇒ Object
19 20 21 22 23 |
# File 'lib/sitemapper/accessors.rb', line 19 def map_urls Sitemapper::map.map_urls do yield end end |
#unmap_path(path) ⇒ Object
15 16 17 |
# File 'lib/sitemapper/accessors.rb', line 15 def unmap_path(path) Sitemapper::map.unmap_path(path) end |
#unmap_url(url) ⇒ Object
11 12 13 |
# File 'lib/sitemapper/accessors.rb', line 11 def unmap_url(url) Sitemapper::map.unmap_url(url) end |