Module: SiteMapper

Defined in:
lib/taq-sitemapper.rb,
lib/taq-sitemapper/version.rb

Defined Under Namespace

Modules: BaseMethods Classes: SiteMapper

Constant Summary collapse

VERSION =
"0.0.4"

Class Method Summary collapse

Class Method Details

.included(where) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/taq-sitemapper.rb', line 57

def self.included(where)
   where.extend(BaseMethods)   
   class << where
      attr_accessor :sitemap
   end
   where.sitemap = {}
   where.sitemap[:url]        = nil
   where.sitemap[:loc]        = :loc
   where.sitemap[:lastmod]    = :lastmod
   where.sitemap[:changefreq] = "daily"
   where.sitemap[:priority]   = 1.00
   where.sitemap[:file]       = "/tmp/sitemap.xml"
   where.sitemap[:collection] = :all
   where.sitemap[:extra]      = nil
end