lib/arid_cache/store.rb
def inherit_options(blueprint, object, key)
      klass = object.is_a?(Class) ? object : object.class
      store_key = object.is_a?(Class) ? :class_store_key : :instance_store_key
      while klass.superclass
        if super_blueprint = self[send(store_key, klass.superclass, key)]
          blueprint.opts = super_blueprint.opts.merge(blueprint.opts)
          blueprint['proc'] ||= super_blueprint['proc']
        end
        klass = klass.superclass
      end
    end
# AridCache::Store::Blueprint
#
# Stores options and blocks that are used to generate results for finds
# and counts.
:Store::Blueprint
Stores options and blocks that are used to generate results for finds
and counts.
: Store :: Blueprint Stores options and blocks that are used to generate results for finds and counts .
def inherit_options(blueprint, object, key)
      klass = object.is_a?(Class) ? object : object.class
      store_key = object.is_a?(Class) ? :class_store_key : :instance_store_key
      while klass.superclass
        if super_blueprint = self[send(store_key, klass.superclass, key)]
          blueprint.opts = super_blueprint.opts.merge(blueprint.opts)
          blueprint['proc'] ||= super_blueprint['proc']
        end
        klass = klass.superclass
      end
    end
def inherit_options ( blueprint , object , key ) klass = object . is_a? ( Class ) ? object : object . class store_key = object . is_a? ( Class ) ? :class_store_key : :instance_store_key while klass . superclass if super_blueprint = self [ send ( store_key , klass . superclass , key ) ] blueprint . opts = super_blueprint . opts . merge ( blueprint . opts ) blueprint [ 'proc' ] ||= super_blueprint [ 'proc' ] end klass = klass . superclass end end
AridCache::Store::Blueprint
Stores options and blocks that are used to generate results for finds
and counts.
AridCache :: Store :: Blueprint Stores options and blocks that are used to generate results for finds and counts .
blueprint
object
key