From: Yui NARUSE Date: 2011-06-03T13:34:14+09:00 Subject: [ruby-core:36708] [Ruby 1.9 - Feature #4818][Assigned] Add method marshalable? Issue #4818 has been updated by Yui NARUSE. Status changed from Open to Assigned Assignee set to Yukihiro Matsumoto ---------------------------------------- Feature #4818: Add method marshalable? http://redmine.ruby-lang.org/issues/4818 Author: Joey Zhou Status: Assigned Priority: Normal Assignee: Yukihiro Matsumoto 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