Sha256: 04f3445cfe078fb2ec040bea41f4ef8990b30d4c3e058f3b9c2f2bdca7d0e7f8

Contents?: true

Size: 319 Bytes

Versions: 13

Compression:

Stored size: 319 Bytes

Contents

# frozen_String_literal: true

require 'singleton'
require 'forwardable'

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

13 entries across 13 versions & 2 rubygems

Version Path
grape-1.7.0 lib/grape/util/cache.rb
grape-1.6.2 lib/grape/util/cache.rb
grape-1.6.1 lib/grape/util/cache.rb
grape-1.6.0 lib/grape/util/cache.rb
grape-1.5.3 lib/grape/util/cache.rb
grape-1.5.2 lib/grape/util/cache.rb
grape-1.5.1 lib/grape/util/cache.rb
grape-1.5.0 lib/grape/util/cache.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/grape-1.4.0/lib/grape/util/cache.rb
grape-1.4.0 lib/grape/util/cache.rb
grape-1.3.3 lib/grape/util/cache.rb
grape-1.3.2 lib/grape/util/cache.rb
grape-1.3.1 lib/grape/util/cache.rb