Sha256: 69ef7e62b57a93d25cdeac403dbddedefb4d2592ee9bf72ccda7e77ffb3567f0

Contents?: true

Size: 256 Bytes

Versions: 6

Compression:

Stored size: 256 Bytes

Contents

# encoding: UTF-8

class Spontaneous::Site
  module Level
    extend Spontaneous::Concern

    def at_depth(level)
      case level
      when 0, :root, :home
        home
      when 1, :section
        home.at_depth(1)
      end
    end
  end # Level
end

Version data entries

6 entries across 6 versions & 1 rubygems

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