123456789_123456789_123456789_123456789_123456789_

Module: ActiveSupport::Messages::SerializerWithFallback::MarshalWithFallback

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Instance Chain:
Defined in: activesupport/lib/active_support/messages/serializer_with_fallback.rb

Constant Summary

::ActiveSupport::Messages::SerializerWithFallback - Included

SERIALIZERS

Instance Method Summary

Instance Method Details

#_load(dumped)

[ GitHub ]

  
# File 'activesupport/lib/active_support/messages/serializer_with_fallback.rb', line 67

def _load(dumped)
  Marshal.load(dumped)
end

#dump(object)

[ GitHub ]

  
# File 'activesupport/lib/active_support/messages/serializer_with_fallback.rb', line 63

def dump(object)
  Marshal.dump(object)
end

#dumped?(dumped) ⇒ Boolean

[ GitHub ]

  
# File 'activesupport/lib/active_support/messages/serializer_with_fallback.rb', line 73

def dumped?(dumped)
  dumped.start_with?(MARSHAL_SIGNATURE)
end

#format

[ GitHub ]

  
# File 'activesupport/lib/active_support/messages/serializer_with_fallback.rb', line 59

def format
  :marshal
end