跳到内容 跳到搜索
方法
#
D
包含模块

常量

MARSHAL_SIGNATURE = "\x04\x08".b.freeze
 

实例公共方法

_load(dumped)

# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 109
def _load(dumped)
  marshal_load(dumped)
end

dump(value)

# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 105
def dump(value)
  Marshal.dump(value)
end

dumped?(dumped)

# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 113
def dumped?(dumped)
  dumped.start_with?(MARSHAL_SIGNATURE)
end