123456789_123456789_123456789_123456789_123456789_

Class: ActiveSupport::Cache::Coder::StringDeserializer

Relationships & Source Files
Inherits: Object
Defined in: activesupport/lib/active_support/cache/coder.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(encoding) ⇒ StringDeserializer

[ GitHub ]

  
# File 'activesupport/lib/active_support/cache/coder.rb', line 87

def initialize(encoding)
  @encoding = encoding
end

Instance Method Details

#load(payload)

[ GitHub ]

  
# File 'activesupport/lib/active_support/cache/coder.rb', line 91

def load(payload)
  payload.force_encoding(@encoding)
end