Sha256: 7f915900ec60263200c0fda84ea6bde9ff5ea9bd8d6953581af53b3bd182c108

Contents?: true

Size: 350 Bytes

Versions: 14

Compression:

Stored size: 350 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

14 entries across 14 versions & 3 rubygems

Version Path
airblade-sitemap_generator-0.3.5 lib/sitemap_generator/mapper.rb
sitemap_generator-1.1.1 lib/sitemap_generator/mapper.rb
apsoto-sitemap_generator-1.1.0 lib/sitemap_generator/mapper.rb
apsoto-sitemap_generator-1.1.0.dev lib/sitemap_generator/mapper.rb
sitemap_generator-1.1.0 lib/sitemap_generator/mapper.rb
apsoto-sitemap_generator-1.0.1.dev lib/sitemap_generator/mapper.rb
sitemap_generator-1.0.1 lib/sitemap_generator/mapper.rb
sitemap_generator-1.0.0 lib/sitemap_generator/mapper.rb
airblade-sitemap_generator-0.3.4 lib/sitemap_generator/mapper.rb
sitemap_generator-0.3.3 lib/sitemap_generator/mapper.rb
sitemap_generator-0.3.2 lib/sitemap_generator/mapper.rb
sitemap_generator-0.3.1 lib/sitemap_generator/mapper.rb
sitemap_generator-0.3.0 lib/sitemap_generator/mapper.rb
sitemap_generator-0.2.6 lib/sitemap_generator/mapper.rb