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
-
MARSHAL_SIGNATURE =
# File 'activesupport/lib/active_support/messages/serializer_with_fallback.rb', line 71"\x04\x08"
::ActiveSupport::Messages::SerializerWithFallback
- Included
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