Class: ActiveSupport::Cache::Coder::StringDeserializer
Relationships & Source Files | |
Inherits: | Object |
Defined in: | activesupport/lib/active_support/cache/coder.rb |
Class Method Summary
- .new(encoding) ⇒ StringDeserializer constructor
Instance Method Summary
Constructor Details
.new(encoding) ⇒ StringDeserializer
# 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