Sha256: 768464a22a2fb23df8f02b53eb79b3c26e594a9b359647b8ea75ccc45ea51355

Contents?: true

Size: 725 Bytes

Versions: 4

Compression:

Stored size: 725 Bytes

Contents

require 'time'
require 'date'
require 'zlib'
require 'builder'
require 'cgi'
begin
  require 'nokogiri'
rescue LoadError
end

require 'xml-sitemap/version'
require 'xml-sitemap/options'
require 'xml-sitemap/render_engine'
require 'xml-sitemap/item'
require 'xml-sitemap/map'
require 'xml-sitemap/index'

module XmlSitemap
  class << self
    # Shortcut to XmlSitemap::Map.new
    #
    # domain  - Primary domain
    # options - Map options
    #
    def map(domain, options={})
      XmlSitemap::Map.new(domain, options) 
    end
    
    alias :new :map
    
    # Shortcut to XmlSitemap::Index.new
    #
    # options - Index options
    # 
    def index(options={})
      XmlSitemap::Index.new(options)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xml-sitemap-1.3.3 lib/xml-sitemap.rb
xml-sitemap-1.3.2 lib/xml-sitemap.rb
xml-sitemap-1.3.1 lib/xml-sitemap.rb
xml-sitemap-1.3.0 lib/xml-sitemap.rb