Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 74 lines (46 sloc) 1.908 kb
7c82f07 Eric Hodel marshal-structure dumps a tree based on the Marshal format
authored
1 = marshal-structure
2
3 * https://github.com/drbrain/marshal-structure
4
5 == DESCRIPTION:
6
7 Dumps a tree based on the Marshal format. Supports the Marshal 4.8 format.
8
9 == FEATURES/PROBLEMS:
10
11 * Works like Marshal.load
12
13 == SYNOPSIS:
14
15 From the command line:
16
8fedc93 Eric Hodel Fix examples, oops!
authored
17 ruby -rpp -rmarshal/structure \
7c82f07 Eric Hodel marshal-structure dumps a tree based on the Marshal format
authored
18 -e 'pp Marshal::Structure.load Marshal.dump "hello"'
19
20 Fancier usage:
21
22 require 'pp'
8fedc93 Eric Hodel Fix examples, oops!
authored
23 require 'marshal/structure'
7c82f07 Eric Hodel marshal-structure dumps a tree based on the Marshal format
authored
24
25 ms = Marshal::Structure.new Marshal.dump %w[hello world]
26
27 # print the Marshal stream structure
28 pp ms.construct
29
30 # print ruby objects in Marshal stream
31 pp ms.objects
32
33 == REQUIREMENTS:
34
35 * Ruby 1.8.7+
36
37 == INSTALL:
38
39 gem install marshal-structure
40
41 == DEVELOPERS:
42
43 After checking out the source, run:
44
45 $ rake newb
46
47 This task will install any missing dependencies, run the tests/specs,
48 and generate the RDoc.
49
50 == LICENSE:
51
52 (The MIT License)
53
54 Copyright (c) 2011 Eric Hodel
55
56 Permission is hereby granted, free of charge, to any person obtaining
57 a copy of this software and associated documentation files (the
58 'Software'), to deal in the Software without restriction, including
59 without limitation the rights to use, copy, modify, merge, publish,
60 distribute, sublicense, and/or sell copies of the Software, and to
61 permit persons to whom the Software is furnished to do so, subject to
62 the following conditions:
63
64 The above copyright notice and this permission notice shall be
65 included in all copies or substantial portions of the Software.
66
67 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
68 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
69 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
70 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
71 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
72 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
73 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Something went wrong with that request. Please try again.