Project

General

Profile

Actions

Bug #21652

closed

Marshal#dump documentation out-of-date/unclear regarding Data class

Bug #21652: Marshal#dump documentation out-of-date/unclear regarding Data class

Added by ryannevell (Ryan Nevell) 5 days ago. Updated 4 days ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]
[ruby-core:123569]

Description

With the introduction of the Data class in Ruby 3.2, the Marshal#dump documentation is confusing since it claims that "Marshal can’t dump ... an instance of ... Data". It is even cross-linked to the new Data class. However, and thankfully, Marshal#dump does not have any issues serializing instances of Data or objects of the defined Data types. This message predates the introduction of the Data class, and likely refers to wrapped C data (T_DATA), instead.

Actions

Also available in: PDF Atom