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
      109 110 111  | 
    
      # File 'lib/active_support/cache/serializer_with_fallback.rb', line 109 def _load(dumped) marshal_load(dumped) end  | 
  
#dump(value) ⇒ Object
      105 106 107  | 
    
      # File 'lib/active_support/cache/serializer_with_fallback.rb', line 105 def dump(value) Marshal.dump(value) end  | 
  
#dumped?(dumped) ⇒ Boolean
      113 114 115  | 
    
      # File 'lib/active_support/cache/serializer_with_fallback.rb', line 113 def dumped?(dumped) dumped.start_with?(MARSHAL_SIGNATURE) end  |