Module: ActiveSupport::Cache::SerializerWithFallback::Marshal71WithFallback
- Extended by:
- Marshal71WithFallback
- Included in:
- Marshal71WithFallback
- Defined in:
- lib/active_support/cache/serializer_with_fallback.rb
Constant Summary collapse
- MARSHAL_SIGNATURE =
"\x04\x08".b.freeze
Instance Method Summary collapse
Methods included from ActiveSupport::Cache::SerializerWithFallback
Instance Method Details
#_load(dumped) ⇒ Object
131 132 133 |
# File 'lib/active_support/cache/serializer_with_fallback.rb', line 131 def _load(dumped) marshal_load(dumped) end |
#dump(value) ⇒ Object
127 128 129 |
# File 'lib/active_support/cache/serializer_with_fallback.rb', line 127 def dump(value) Marshal.dump(value) end |
#dumped?(dumped) ⇒ Boolean
135 136 137 |
# File 'lib/active_support/cache/serializer_with_fallback.rb', line 135 def dumped?(dumped) dumped.start_with?(MARSHAL_SIGNATURE) end |