Module: Loaf
- Defined in:
- lib/loaf/errors.rb,
lib/loaf.rb,
lib/loaf/crumb.rb,
lib/loaf/railtie.rb,
lib/loaf/version.rb,
lib/loaf/breadcrumb.rb,
lib/loaf/translation.rb,
lib/loaf/configuration.rb,
lib/loaf/view_extensions.rb,
lib/loaf/options_validator.rb,
lib/loaf/controller_extensions.rb,
lib/generators/loaf/install_generator.rb
Overview
:nodoc:
Defined Under Namespace
Modules: ControllerExtensions, Generators, OptionsValidator, Translation, ViewExtensions Classes: Breadcrumb, Configuration, Crumb, InvalidOptions, LoafError, Railtie, RailtieHelpers
Constant Summary collapse
- VERSION =
"0.10.0"
Class Method Summary collapse
-
.configuration ⇒ Object
Get global configuration.
-
.configuration=(config) ⇒ Object
Set global configuration.
-
.configure {|configuration| ... } ⇒ Object
Sets the Loaf configuration options.
Class Method Details
.configuration ⇒ Object
Get global configuration
16 17 18 |
# File 'lib/loaf.rb', line 16 def self.configuration @configuration ||= Configuration.new end |
.configuration=(config) ⇒ Object
Set global configuration
9 10 11 |
# File 'lib/loaf.rb', line 9 def self.configuration=(config) @configuration = config end |
.configure {|configuration| ... } ⇒ Object
Sets the Loaf configuration options. Best used by passing a block.
Loaf.configure do |config|
config.capitalize = true
end
25 26 27 |
# File 'lib/loaf.rb', line 25 def self.configure yield configuration end |