class Garner::Strategies::Binding::Key::CacheKey

Public Class Methods

apply(binding) click to toggle source

Compute a cache key from an object binding.

@param binding [Object] The object from which to compute a key. @return [String] A cache key string.

# File lib/garner/strategies/binding/key/cache_key.rb, line 10
def self.apply(binding)
  binding.cache_key if binding.respond_to?(:cache_key)
end