Sha256: 877132b3b08ec50ebd8c88f45f91e9b3d726f7dffd6af67ecb60a1e85eb87581

Contents?: true

Size: 570 Bytes

Versions: 1

Compression:

Stored size: 570 Bytes

Contents

require 'time'
require 'date'
require 'zlib'
require 'builder'

require 'xml-sitemap/options'
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

1 entries across 1 versions & 1 rubygems

Version Path
xml-sitemap-1.1.3 lib/xml-sitemap.rb