@api private
Returns features list
@return [Array<Symbol>] list of features
# File lib/moneta/mixins.rb, line 62 def features @features ||= superclass.respond_to?(:features) ? superclass.features : [].freeze end
Declares that this adapter supports the given feature.
@example
class MyAdapter include Moneta::Defaults supports :create def create(key, value, options = {}) # implement create! end end
# File lib/moneta/mixins.rb, line 76 def supports(*features) @features = (self.features + features).uniq.freeze end
Generated with the Darkfish Rdoc Generator 2.