Sha256: 24e5c72daf453ca3ed48db6be1cd6066e687ade7a2c8cac660005f5fc8a92f41

Contents?: true

Size: 696 Bytes

Versions: 2

Compression:

Stored size: 696 Bytes

Contents

require 'seory/version'
require 'seory/railtie' if defined?(Rails)
require 'active_support/all'

module Seory
  CONTENTS = %w[title h1 h2 meta_description meta_keywords canonical_url og_image_url].map(&:to_sym)

  class Error < RuntimeError; end

  autoload :Dsl,'seory/dsl'

  mattr_accessor(:config_dir) { 'config/seory' }
  self.config_dir = 'config/seory'

  class << self
    def describe(*args, &block)
      @object ||= Object.new.tap {|obj| obj.extend Seory::Dsl }

      @object.describe(*args, &block)
    end
    alias seo_content describe

    def helper(&block)
      @object.helper(&block)
    end

    def default_repository
      @object.send(:seory_repository)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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