Class: Cuboid::Support::Cache::Preference

Inherits:
Base show all
Defined in:
lib/cuboid/support/cache/preference.rb

Overview

Author:

Instance Attribute Summary

Attributes inherited from Base

#max_size

Instance Method Summary collapse

Methods inherited from Base

#==, #[], #[]=, #any?, #capped?, #clear, #delete, #dup, #empty?, #fetch, #hash, #include?, #initialize, #size, #statistics, #store, #uncap, #uncapped?

Methods included from Mixins::Profiler

disable!, enable!, included, on?, #profile_proc, #profile_wrap_proc, results

Constructor Details

This class inherits a constructor from Cuboid::Support::Cache::Base

Instance Method Details

#prefer(&block) ⇒ Object



7
8
9
# File 'lib/cuboid/support/cache/preference.rb', line 7

def prefer( &block )
    @preference = block
end