Module: ActiveSupport::Messages::SerializerWithFallback::MessagePackWithFallback
- Extended by:
- MessagePackWithFallback
- Included in:
- MessagePackWithFallback, MessagePackWithFallbackAllowMarshal
- Defined in:
- lib/active_support/messages/serializer_with_fallback.rb
Instance Method Summary collapse
Methods included from ActiveSupport::Messages::SerializerWithFallback
Instance Method Details
#_load(dumped) ⇒ Object
125 126 127 |
# File 'lib/active_support/messages/serializer_with_fallback.rb', line 125 def _load(dumped) ActiveSupport::MessagePack.load(dumped) end |
#dump(object) ⇒ Object
121 122 123 |
# File 'lib/active_support/messages/serializer_with_fallback.rb', line 121 def dump(object) ActiveSupport::MessagePack.dump(object) end |
#dumped?(dumped) ⇒ Boolean
129 130 131 |
# File 'lib/active_support/messages/serializer_with_fallback.rb', line 129 def dumped?(dumped) available? && ActiveSupport::MessagePack.signature?(dumped) end |
#format ⇒ Object
117 118 119 |
# File 'lib/active_support/messages/serializer_with_fallback.rb', line 117 def format :message_pack end |