Sha256: a95eb7225bc3f51e8431b42c385ff4318dc9634ed7e2b9526f6833f564acbc6c

Contents?: true

Size: 276 Bytes

Versions: 5

Compression:

Stored size: 276 Bytes

Contents

# frozen_string_literal: true

module Grape
  module Util
    class Cache
      include Singleton

      attr_reader :cache

      class << self
        extend Forwardable
        def_delegators :cache, :[]
        def_delegators :instance, :cache
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
grape-2.2.0 lib/grape/util/cache.rb
grape-2.1.3 lib/grape/util/cache.rb
grape-2.1.2 lib/grape/util/cache.rb
grape-2.1.1 lib/grape/util/cache.rb
grape-2.1.0 lib/grape/util/cache.rb