Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
marshal a Ruby object as Ruby code http://www.a-k-r.org/amarshal/
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Type||Name||Latest commit message||Commit time|
|Failed to load latest commit information.|
= amarshal - marshal a Ruby object as Ruby code AMarshal is a library for marshaling a Ruby object as a Ruby code. It can marshal objects which have cyclic reference. == Author Tanaka Akira <firstname.lastname@example.org> == Home Page http://www.a-k-r.org/amarshal/ == Usage AMarshal is similar to Marshal. % ruby -ramarshal -e 'AMarshal.dump([1,2,3], STDOUT)' v =  v = Array.allocate() v << 1 v << 2 v << 3 v Highly experimental pretty printing version also exists: % ruby -ramarshal-pretty -e ' o = [1,2] o << [, [], [[[o]]]] o = [5, o, [[[o]]], o] AMarshal.dump_pretty(o, STDOUT)' v =  v = Array.allocate v << 1 v << 2 v << [, [], [[[v]]]] [5, v, [[[v]]], v] == Requirements * ruby 1.8.0 (2003-04-10) (older version doesn't work.) == Download * latest release: http://www.a-k-r.org/amarshal/amarshal-0.4.tar.gz * development version: https://github.com/akr/amarshal