From: "mame (Yusuke Endoh)" Date: 2012-11-09T18:04:37+09:00 Subject: [ruby-core:49150] [ruby-trunk - Feature #4818] Add method marshalable? Issue #4818 has been updated by mame (Yusuke Endoh). Target version set to next minor ---------------------------------------- Feature #4818: Add method marshalable? https://bugs.ruby-lang.org/issues/4818#change-32696 Author: yimutang (Joey Zhou) Status: Assigned Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: Target version: next minor 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?" -- http://bugs.ruby-lang.org/