This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_3_392) is shown here.
marshal_dump_supports_canonical_option?()
private
Check whether Marshal.dump supports
the ‘canonical’ option. This option makes sure that Marshal.dump always dumps data
structures in the same order. This is important because otherwise, the
checksums that we generate may differ.
# File lib/pstore.rb, line 433
def marshal_dump_supports_canonical_option?
begin
Marshal.dump(nil, -1, true)
result = true
rescue
result = false
end
self.class.instance_method(:marshal_dump_supports_canonical_option?)
self.class.__send__(:define_method, :marshal_dump_supports_canonical_option?) do
result
end
result
end