Sha256: e4486300d4e4b34600fcd21de7278290941e277ee98c5c8596ef12100ed6b582

Contents?: true

Size: 390 Bytes

Versions: 4

Compression:

Stored size: 390 Bytes

Contents

# encoding: UTF-8

class Spontaneous::Site
  module Map
    extend Spontaneous::Concern

    module ClassMethods
      def map(root_id=nil)
        page = \
          if root_id.nil?
            content_model::Page.root
          else
            content_model.get root_id
          end
        return nil unless page
        page.map_entry
      end
    end # ClassMethods
  end # Map
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta4 lib/spontaneous/site/map.rb
spontaneous-0.2.0.beta3 lib/spontaneous/site/map.rb
spontaneous-0.2.0.beta2 lib/spontaneous/site/map.rb
spontaneous-0.2.0.beta1 lib/spontaneous/site/map.rb