Sha256: 0925d698765dee27c6bcc9cb6623f6a6213376db2a3e7004fa7686d61196eb7e
Contents?: true
Size: 512 Bytes
Versions: 5
Compression:
Stored size: 512 Bytes
Contents
# Copyright (c) 2012, SoundCloud Ltd., Tobias Bielohlawek require "massive_sitemap/builder/base" module MassiveSitemap module Builder class Rotating < Base NUM_URLS = 1..50_000 OPTS = Base::OPTS.merge( :max_urls => NUM_URLS.max ) def header!(&block) @urls = 0 super end def add_url!(location, attrs = {}) if @urls.to_i >= @options[:max_urls] close! end super @urls += 1 end end end end
Version data entries
5 entries across 5 versions & 1 rubygems