Sha256: 161bdef76d91e5d4d9eec68ae2c49baf4e2fa2cf9aecd61049271fabd96497d8

Contents?: true

Size: 760 Bytes

Versions: 4

Compression:

Stored size: 760 Bytes

Contents

# frozen_string_literal: true

# @api private
# @since 0.4.0
module AnyCache::Dumper::InterfaceAccessMixin
  # @param value [Object]
  # @return [Object]
  #
  # @api private
  # @since 0.4.0
  def transform_value(value)
    AnyCache::Dumper.dump(value)
  end

  # @param value [Object]
  # @return [Object]
  #
  # @api private
  # @since 0.4.0
  def detransform_value(value)
    AnyCache::Dumper.load(value)
  end

  # @param pairset [Hash]
  # @return [Hash]
  #
  # @api private
  # @since 0.4.0
  def transform_pairset(pairset)
    AnyCache::Dumper.transform_hash(pairset)
  end

  # @param pairset [Hash]
  # @return [Hash]
  #
  # @api private
  # @since 0.4.0
  def detransform_pairset(pairset)
    AnyCache::Dumper.detransform_hash(pairset)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
any_cache-0.7.0 lib/any_cache/dumper/interface_access_mixin.rb
any_cache-0.6.0 lib/any_cache/dumper/interface_access_mixin.rb
any_cache-0.5.0 lib/any_cache/dumper/interface_access_mixin.rb
any_cache-0.4.0 lib/any_cache/dumper/interface_access_mixin.rb