Method: Moneta::Cache::DSL#initialize
- Defined in:
- lib/moneta/cache.rb
#initialize(store, &block) ⇒ DSL
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of DSL.
18 19 20 21 |
# File 'lib/moneta/cache.rb', line 18 def initialize(store, &block) @store = store instance_eval(&block) end |