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/
Updated by mame (Yusuke Endoh) about 5 years ago
- Is duplicate of Feature #4818: Add method marshalable? added
Updated by hsbt (Hiroshi SHIBATA) about 5 years ago
- Status changed from Open to Rejected
Actions
Like0
Like0Like0