Module: RedisDictionary
- Defined in:
- lib/redis_dictionary.rb,
lib/redis_dictionary/engine.rb,
lib/redis_dictionary/version.rb,
lib/redis_dictionary/configuration.rb,
app/models/redis_dictionary/translation.rb,
app/helpers/redis_dictionary/application_helper.rb,
app/controllers/redis_dictionary/application_controller.rb,
app/controllers/redis_dictionary/translations_controller.rb
Defined Under Namespace
Modules: ApplicationHelper Classes: ApplicationController, Configuration, ConfigurationError, Engine, Translation, TranslationsController
Constant Summary collapse
- VERSION =
"0.9.9"
Class Method Summary collapse
-
.configuration ⇒ Object
Returns RedisDictionary’s globalconfiguration.
-
.configure(&block) ⇒ Object
Set global configuration options for RedisDictionary.
Class Method Details
.configuration ⇒ Object
Returns RedisDictionary’s globalconfiguration. Will initialize a new instance if not already set
21 22 23 |
# File 'lib/redis_dictionary.rb', line 21 def self.configuration @configuration ||= Configuration.new end |
.configure(&block) ⇒ Object
Set global configuration options for RedisDictionary
15 16 17 |
# File 'lib/redis_dictionary.rb', line 15 def self.configure(&block) block.call(configuration) end |