From: Joey Zhou Date: 2011-06-03T11:07:15+09:00 Subject: [ruby-core:36707] [Ruby 1.9 - Feature #4818][Open] Add method marshalable? Issue #4818 has been reported by Joey Zhou. ---------------------------------------- Feature #4818: Add method marshalable? http://redmine.ruby-lang.org/issues/4818 Author: Joey Zhou Status: Open Priority: Normal Assignee: Category: Target version: 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://redmine.ruby-lang.org