diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-04 13:42:03 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-04 13:42:03 +0000 |
commit | ba6f3a5f06dc488fc4a33a652e5a35b0cbe906ee (patch) | |
tree | 52e80012ac147d7ff31def2bfcb980ad74871efd | |
parent | 470446bc99a47ab90eae6f2688ceff2c7d9763da (diff) | |
download | ruby-ba6f3a5f06dc488fc4a33a652e5a35b0cbe906ee.tar.gz ruby-ba6f3a5f06dc488fc4a33a652e5a35b0cbe906ee.tar.xz ruby-ba6f3a5f06dc488fc4a33a652e5a35b0cbe906ee.zip |
Add rdoc about objects can't Marshal#dump. [ruby-core:23314]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | marshal.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -890,6 +890,12 @@ clear_dump_arg(struct dump_arg *arg) * data = Marshal.dump(o) * obj = Marshal.load(data) * obj.sayHello #=> "hello\n" + * + * Marshal can't dump following objects: + * * anonymous Class/Module. + * * objects which related to its system (ex: Dir, File::Stat, IO, File, Socket and so on) + * * an instance of MatchData, Data, Method, UnboundMethod, Proc, Thread, ThreadGroup, Continuation + * * objects which defines singleton methods */ static VALUE marshal_dump(int argc, VALUE *argv) |