From: mahdiumd@... Date: 2019-10-05T15:34:28+00:00 Subject: [ruby-core:95233] [Ruby master Feature#16240] Are all objects and methods marshalable Issue #16240 has been reported by mattumd (Matt Zand). ---------------------------------------- Feature #16240: Are all objects and methods marshalable https://bugs.ruby-lang.org/issues/16240 * Author: mattumd (Matt Zand) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- 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/ -- https://bugs.ruby-lang.org/ Unsubscribe: