Sha256: b4c916bc1fecd4f48f49c88dfe29ff3ccb5339c725a9ee6b40e4672cf322eb79

Contents?: true

Size: 288 Bytes

Versions: 2

Compression:

Stored size: 288 Bytes

Contents

module SocialAvatarProxy
  class Configuration
    class Caches < Array
      def fetch(*args, &block)
        if cache = delete_at(0)
          cache.fetch(*args) do
            fetch(*args, &block)
          end
        else
          block.yield
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
social-avatar-proxy-2.0.1 lib/social_avatar_proxy/configuration/caches.rb
social-avatar-proxy-2.0.0 lib/social_avatar_proxy/configuration/caches.rb