# Marshal documentation

**URL:** <https://www.ruby-forum.com/t/marshal-documentation/180231>\
**Category:** Ruby\
**Created:** [December 15, 2009, 9:41am UTC](https://www.ruby-forum.com/t/marshal-documentation/180231 "2009-12-15T09:41:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lapajko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/90db22/32.png) [@lapajko](https://www.ruby-forum.com/u/lapajko)\
**Post date:** [December 15, 2009, 9:41am UTC](https://www.ruby-forum.com/t/marshal-documentation/180231/1 "2009-12-15T09:41:41Z")

</div>

Hi,

is there any specification or documentation of Marshal dumping and  
restoring? I’d like to write a tool, which will be compatibile with it.

Thank you

---

<div class="post-metadata">

**Author:** ![lapajko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/90db22/32.png) [@lapajko](https://www.ruby-forum.com/u/lapajko)\
**Post date:** [December 15, 2009, 5:27pm UTC](https://www.ruby-forum.com/t/marshal-documentation/180231/2 "2009-12-15T17:27:35Z")

</div>

On Tue, Dec 15, 2009 at 05:41:51PM +0900, Vm Vm wrote:

> Hi,
> 
> is there any specification or documentation of Marshal dumping and  
> restoring? I’d like to write a tool, which will be compatibile with it.

Here is the best documentation you can find:

[ruby/marshal.c at trunk · shyouhei/ruby · GitHub](http://github.com/shyouhei/ruby/blob/trunk/marshal.c)

---

<div class="post-metadata">

**Author:** ![lapajko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/90db22/32.png) [@lapajko](https://www.ruby-forum.com/u/lapajko)\
**Post date:** [December 16, 2009, 4:18am UTC](https://www.ruby-forum.com/t/marshal-documentation/180231/3 "2009-12-16T04:18:40Z")

</div>

> is there any specification or documentation of Marshal dumping and  
> restoring? I’d like to write a tool, which will be compatibile with it.

the ruby hacker’s guide might have something.  
[http://hawthorne-press.com/WebPage\_RHG.html](http://hawthorne-press.com/WebPage_RHG.html)

0r

---

<div class="post-metadata">

**Author:** ![lapajko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/90db22/32.png) [@lapajko](https://www.ruby-forum.com/u/lapajko)\
**Post date:** [December 15, 2009, 11:10pm UTC](https://www.ruby-forum.com/t/marshal-documentation/180231/4 "2009-12-15T23:10:41Z")

</div>

Aaron P. wrote:

> On Tue, Dec 15, 2009 at 05:41:51PM +0900, Vm Vm wrote:
> 
> > Hi,
> > 
> > is there any specification or documentation of Marshal dumping and  
> > restoring? I’d like to write a tool, which will be compatibile with it.
> 
> Here is the best documentation you can find:
> 
> [ruby/marshal.c at trunk · shyouhei/ruby · GitHub](http://github.com/shyouhei/ruby/blob/trunk/marshal.c)

I’m studying this source from beginning, I was just wondering, if there  
is a easier way.

Thanks anyway

---

<div class="post-metadata">

**Author:** ![lapajko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/90db22/32.png) [@lapajko](https://www.ruby-forum.com/u/lapajko)\
**Post date:** [December 16, 2009, 11:20am UTC](https://www.ruby-forum.com/t/marshal-documentation/180231/5 "2009-12-16T11:20:53Z")

</div>

> is there any specification or documentation of Marshal dumping and  
> restoring? I’d like to write a tool, which will be compatibile with it.

This post has a Marshal section that’s decent:  
[http://blog.segment7.net/articles/2008/12/17/friendly-ruby-objects](http://blog.segment7.net/articles/2008/12/17/friendly-ruby-objects)  
Some links here may help: [http://delicious.com/tag/marshal+ruby](http://delicious.com/tag/marshal+ruby)

Gabriel
