mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add rdoc about objects can't Marshal#dump. [ruby-core:23314]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
716c2074bc
commit
88175d1779
1 changed files with 6 additions and 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)
|
||||
|
|
Loading…
Reference in a new issue