Sha256: 31456ec418a04ae195d87d49a2dfafc28522b086bbc557d0cae2f75182dc303d

Contents?: true

Size: 646 Bytes

Versions: 2

Compression:

Stored size: 646 Bytes

Contents

require 'seory'
require 'seory/repository'

module Seory
  module Dsl
    def describe(group_name = Repository.extract_label_from_trace(caller), &block)
      seory_repository << Descriptor.new(group_name, seory_repository).describe(&block)
    end
    alias seo_content describe

    def helper(&block)
      seory_repository.helper = Module.new(&block)
    end

    def lookup(controller)
      seory_repository.lookup(controller)
    end

    private

    def seory_repository
      @__seory_repository ||= Repository.new
    end

    autoload :PageBuilder, 'seory/dsl/page_builder'
    autoload :Descriptor,  'seory/dsl/descriptor'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
seory-0.2.0 lib/seory/dsl.rb
seory-0.1.0 lib/seory/dsl.rb