Module: ActiveSupport::Messages::SerializerWithFallback::MarshalWithFallback
Relationships & Source Files | |
Defined in: | activesupport/lib/active_support/messages/serializer_with_fallback.rb |
Constant Summary
-
MARSHAL_SIGNATURE =
# File 'activesupport/lib/active_support/messages/serializer_with_fallback.rb', line 71"\x04\x08"
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
# 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