Sha256: 1651e48f5915111ef647e321d42d524a34c30807053ab6924e5e08ba24b02e21

Contents?: true

Size: 297 Bytes

Versions: 6

Compression:

Stored size: 297 Bytes

Contents

# encoding: UTF-8

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta10 lib/spontaneous/site/map.rb
spontaneous-0.2.0.beta9 lib/spontaneous/site/map.rb
spontaneous-0.2.0.beta8 lib/spontaneous/site/map.rb
spontaneous-0.2.0.beta7 lib/spontaneous/site/map.rb
spontaneous-0.2.0.beta6 lib/spontaneous/site/map.rb
spontaneous-0.2.0.beta5 lib/spontaneous/site/map.rb