Sha256: 125db23def11a15538b3b268519f5e49056d6548e745f1b049ae0147e26180c2

Contents?: true

Size: 558 Bytes

Versions: 7

Compression:

Stored size: 558 Bytes

Contents

# frozen_string_literal: true

# Cookbook Module
module Cookbook
  class << self
    def configure(configuration = Cookbook::Configuration.new)
      block_given? && yield(configuration)
      @configuration = configuration
    end

    def configuration
      @configuration ||= Cookbook::Configuration.new
    end
  end

  # Cookbook Configuration
  class Configuration
    attr_accessor(
      :include_cookbook_css,
      :authorize_with
    )

    def initialize
      self.include_cookbook_css = false
      self.authorize_with = nil
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cookbook-0.1.6 lib/cookbook/configuration.rb
cookbook-0.1.5 lib/cookbook/configuration.rb
cookbook-0.1.4 lib/cookbook/configuration.rb
cookbook-0.1.3 lib/cookbook/configuration.rb
cookbook-0.1.2 lib/cookbook/configuration.rb
cookbook-0.1.1 lib/cookbook/configuration.rb
cookbook-0.1.0 lib/cookbook/configuration.rb