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.('../../VERSION', __dir__))
Class Method Summary collapse
- .configuration ⇒ Object
- .configure(configuration = Cookbook::Configuration.new) ⇒ Object
- .version_string ⇒ Object
Class Method Details
.configuration ⇒ Object
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 |