summaryrefslogtreecommitdiff
path: root/ext/marshal/marshal.doc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/marshal/marshal.doc')
-rw-r--r--ext/marshal/marshal.doc5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/marshal/marshal.doc b/ext/marshal/marshal.doc
index 8c3b63072e..7529e7942f 100644
--- a/ext/marshal/marshal.doc
+++ b/ext/marshal/marshal.doc
@@ -10,7 +10,7 @@ rubyオブジェクトをファイルに書き出したり,読みも度したりする機能を提供
Methods:
Single Methods:
- dump(obj, port)
+ dump(obj, port[, limit])
objを再帰的にファイルに書き出す.ファイルに書き出せないクラスのイ
ンスタンスをファイルに書き出そうとすると例外を発生させる.ファイル
@@ -28,6 +28,9 @@ Single Methods:
`_dump_to'を持つクラスは必ず同じフォーマットを読み戻す特異メソッド
`_load_from'を定義する必要がある.
+ limitを指定した場合,limit段以上深くリンクしたオブジェクトをダンプ
+ できない(デフォルトは100レベル)。負のlimitを指定すると深さチェック
+ を行わない。
dumps(obj)