Module: ActiveSupport::Messages::SerializerWithFallback::MessagePackWithFallback

Extended by:
MessagePackWithFallback
Includes:
ActiveSupport::Messages::SerializerWithFallback
Included in:
MessagePackWithFallback, MessagePackWithFallbackAllowMarshal
Defined in:
lib/active_support/messages/serializer_with_fallback.rb

Instance Method Summary collapse

Methods included from ActiveSupport::Messages::SerializerWithFallback

[], #load

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

Returns:

  • (Boolean)


129
130
131
# File 'lib/active_support/messages/serializer_with_fallback.rb', line 129

def dumped?(dumped)
  available? && ActiveSupport::MessagePack.signature?(dumped)
end

#formatObject



117
118
119
# File 'lib/active_support/messages/serializer_with_fallback.rb', line 117

def format
  :message_pack
end