Module: Cookbook

Defined in:
lib/cookbook.rb,
lib/cookbook/engine.rb,
lib/cookbook/railtie.rb,
lib/cookbook/version.rb,
lib/cookbook/configuration.rb,
lib/cookbook/mixins/acts_as_use_of.rb,
lib/cookbook/mixins/acts_as_used_in.rb

Overview

Cookbook Module

Defined Under Namespace

Modules: Mixins Classes: Configuration, Engine, Railtie

Constant Summary collapse

VERSION =
File.read(File.expand_path('../../VERSION', __dir__))

Class Method Summary collapse

Class Method Details

.configurationObject



11
12
13
# File 'lib/cookbook/configuration.rb', line 11

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

.configure(configuration = Cookbook::Configuration.new) ⇒ Object



6
7
8
9
# File 'lib/cookbook/configuration.rb', line 6

def configure(configuration = Cookbook::Configuration.new)
  block_given? && yield(configuration)
  @configuration = configuration
end

.version_stringObject



6
7
8
# File 'lib/cookbook/version.rb', line 6

def self.version_string
  "Cookbook version #{Cookbook::VERSION}"
end