Sha256: 3887b46c4a0b5cb883bde1cae8c4b8b6ff3c3a9f7a51518eb56125168cd57c1d

Contents?: true

Size: 357 Bytes

Versions: 4

Compression:

Stored size: 357 Bytes

Contents

module SitemapGenerator
  # Generator instances are used to build links.
  # The object passed to the add_links block in config/sitemap.rb is a Generator instance.
  class Mapper
    attr_accessor :set
    
    def initialize(set)
      @set = set
    end
    
    def add(loc, options = {})
      set.add_link Link.generate(loc, options)
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
sitemap_generator-0.2.0 lib/sitemap_generator/mapper.rb
sitemap_generator-0.1.1 lib/sitemap_generator/mapper.rb
moneypools-sitemap_generator-0.1.0 lib/sitemap_generator/mapper.rb
sitemap_generator-0.1.0 lib/sitemap_generator/mapper.rb