Module: Moneta::Mixins::WithOptions Private
- Included in:
- Base
- Defined in:
- lib/moneta/mixins.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #expires(expires) ⇒ Object private
- #prefix(prefix) ⇒ Object private
- #raw ⇒ Object private
- #with(options) ⇒ Object private
Instance Method Details
#expires(expires) ⇒ Object
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.
22 23 24 |
# File 'lib/moneta/mixins.rb', line 22 def expires(expires) with(:expires => expires, :only => [:store, :increment]) end |
#prefix(prefix) ⇒ Object
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.
18 19 20 |
# File 'lib/moneta/mixins.rb', line 18 def prefix(prefix) with(:prefix => prefix, :except => :clear) end |
#raw ⇒ Object
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.
9 10 11 12 13 14 15 16 |
# File 'lib/moneta/mixins.rb', line 9 def raw @raw_store ||= begin store = with(:raw => true, :only => [:load, :store, :delete]) store.instance_variable_set(:@raw_store, store) store end end |
#with(options) ⇒ Object
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.
5 6 7 |
# File 'lib/moneta/mixins.rb', line 5 def with() OptionMerger.new(self, ) end |