Module: ConfigureMe
- Defined in:
- lib/configure_me.rb,
lib/configure_me/base.rb,
lib/configure_me/naming.rb,
lib/configure_me/caching.rb,
lib/configure_me/loading.rb,
lib/configure_me/nesting.rb,
lib/configure_me/setting.rb,
lib/configure_me/version.rb,
lib/configure_me/persisting.rb,
lib/configure_me/persistence.rb,
lib/configure_me/validations.rb,
lib/configure_me/attribute_methods.rb,
lib/generators/configure_me/setup_generator.rb
Defined Under Namespace
Modules: AttributeMethods, Caching, Loading, Naming, Nesting, Persistence, Persisting, Validations
Classes: Base, InvalidConversion, InvalidDefault, Setting, SetupGenerator, UnsupportedType
Constant Summary
collapse
- VERSION =
"0.6.1"
Class Method Summary
collapse
Class Method Details
.cache_object ⇒ Object
16
17
18
|
# File 'lib/configure_me.rb', line 16
def cache_object
@cache_object
end
|
.init(options = {}) ⇒ Object
6
7
8
9
10
|
# File 'lib/configure_me.rb', line 6
def init(options = {})
options = {:persist_with => nil, :cache_with => nil}.merge(options)
@persistence_klass = options[:persist_with]
@cache_object = options[:cache_with]
end
|
.persistence_klass ⇒ Object
12
13
14
|
# File 'lib/configure_me.rb', line 12
def persistence_klass
@persistence_klass ||= nil
end
|