Sha256: 8e3bf74a214ec0096f52d8f650be0c1e53305b26929582ed53c8a9f8367afd09

Contents?: true

Size: 681 Bytes

Versions: 2

Compression:

Stored size: 681 Bytes

Contents

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

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

2 entries across 2 versions & 1 rubygems

Version Path
xml-sitemap-1.2.1 lib/xml-sitemap.rb
xml-sitemap-1.2.0 lib/xml-sitemap.rb