Sha256: ad527c52f91fb986ac007705867cb5db10e891fd549af3349ef8ddc193613523

Contents?: true

Size: 297 Bytes

Versions: 3

Compression:

Stored size: 297 Bytes

Contents

module Kitsune
  class Layout
    def initialize(layout_file)
      data = File.read(layout_file)
      @content_areas = data.scan(/yield\s+:(\w+)\s+/i).flatten.uniq
    end
    
    def content_areas
      @content_areas
    end
    
    def method_missing(method, *arg, &block)
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
ds-kitsune-0.2.5 lib/kitsune/layout.rb
ds-kitsune-0.2.3 lib/kitsune/layout.rb
kitsune-0.2.1 lib/kitsune/layout.rb