Actions
Feature #4818
openAdd method marshalable?
Feature #4818:
Add method marshalable?
Description
Some objects can not be marshaled. Maybe there should be a method to tell it.
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?"
Actions