Module: Mize::Configure
- Included in:
- Mize
- Defined in:
- lib/mize/configure.rb
Instance Attribute Summary collapse
-
#default_cache ⇒ Object
Returns the value of attribute default_cache.
Instance Method Summary collapse
-
#cache(cache) ⇒ Object
Set the default cache object to
cache. -
#configure(&block) ⇒ Object
Configures Mize by executing a block of code and executing it in configuration context/passing the configuration into it.
Instance Attribute Details
#default_cache ⇒ Object
Returns the value of attribute default_cache.
2 3 4 |
# File 'lib/mize/configure.rb', line 2 def default_cache @default_cache end |
Instance Method Details
#cache(cache) ⇒ Object
Set the default cache object to cache.
5 6 7 |
# File 'lib/mize/configure.rb', line 5 def cache(cache) self.default_cache = cache end |
#configure(&block) ⇒ Object
Configures Mize by executing a block of code and executing it in configuration context/passing the configuration into it.
11 12 13 |
# File 'lib/mize/configure.rb', line 11 def configure(&block) instance_eval(&block) end |