Actions
Feature #16240
closedAre all objects and methods marshalable
Status:
Rejected
Assignee:
-
Target version:
-
Description
As I work with objects, some of them are not marshaled. Maybe there should be a method to tell whether an object is marshalable or not.
See below example:
hash = Hash.new {|h,k| k * 2}
this hash can't be marshaled because it has a default proc. If existing such method:
Marshal.marshalable?(hash) #=> method "Marshal.marshalable?"
hash.marshalable? #=> method "Kernel#marshalable?"
If you think the method name hard to spell, maybe get a synonym "dumpable?"
Thanks,
Matt
https://coding-bootcamps.com/
https://myhsts.org/
https://dcwebmakers.com/
Actions
Like0
Like0Like0