ruby-json 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +504 -0
- data/README +16 -0
- data/doc/classes/Array.html +162 -0
- data/doc/classes/Array.src/M000011.html +27 -0
- data/doc/classes/Array.src/M000012.html +32 -0
- data/doc/classes/ArrayTest.html +129 -0
- data/doc/classes/ArrayTest.src/M000014.html +28 -0
- data/doc/classes/FalseClass.html +131 -0
- data/doc/classes/FalseClass.src/M000013.html +18 -0
- data/doc/classes/Hash.html +156 -0
- data/doc/classes/Hash.src/M000009.html +29 -0
- data/doc/classes/Hash.src/M000010.html +45 -0
- data/doc/classes/JSON.html +103 -0
- data/doc/classes/JSON/Lexer.html +411 -0
- data/doc/classes/JSON/Lexer.src/M000022.html +19 -0
- data/doc/classes/JSON/Lexer.src/M000023.html +18 -0
- data/doc/classes/JSON/Lexer.src/M000024.html +18 -0
- data/doc/classes/JSON/Lexer.src/M000025.html +20 -0
- data/doc/classes/JSON/Lexer.src/M000026.html +20 -0
- data/doc/classes/JSON/Lexer.src/M000027.html +21 -0
- data/doc/classes/JSON/Lexer.src/M000028.html +43 -0
- data/doc/classes/JSON/Lexer.src/M000029.html +67 -0
- data/doc/classes/JSON/Lexer.src/M000030.html +46 -0
- data/doc/classes/JSON/Lexer.src/M000031.html +26 -0
- data/doc/classes/JSON/Lexer.src/M000032.html +61 -0
- data/doc/classes/JSON/Lexer.src/M000033.html +29 -0
- data/doc/classes/JSON/Lexer.src/M000034.html +18 -0
- data/doc/classes/JSON/Lexer.src/M000035.html +19 -0
- data/doc/classes/JSON/Lexer.src/M000036.html +20 -0
- data/doc/classes/LexerTest.html +219 -0
- data/doc/classes/LexerTest.src/M000002.html +24 -0
- data/doc/classes/LexerTest.src/M000003.html +22 -0
- data/doc/classes/LexerTest.src/M000004.html +26 -0
- data/doc/classes/LexerTest.src/M000005.html +23 -0
- data/doc/classes/LexerTest.src/M000006.html +31 -0
- data/doc/classes/LexerTest.src/M000007.html +27 -0
- data/doc/classes/LexerTest.src/M000008.html +58 -0
- data/doc/classes/NilClass.html +131 -0
- data/doc/classes/NilClass.src/M000017.html +18 -0
- data/doc/classes/Numeric.html +131 -0
- data/doc/classes/Numeric.src/M000016.html +18 -0
- data/doc/classes/Object.html +176 -0
- data/doc/classes/Object.src/M000018.html +18 -0
- data/doc/classes/ObjectTest.html +129 -0
- data/doc/classes/ObjectTest.src/M000015.html +28 -0
- data/doc/classes/String.html +151 -0
- data/doc/classes/String.src/M000019.html +18 -0
- data/doc/classes/String.src/M000020.html +46 -0
- data/doc/classes/TrueClass.html +131 -0
- data/doc/classes/TrueClass.src/M000021.html +18 -0
- data/doc/created.rid +1 -0
- data/doc/files/install_rb.html +194 -0
- data/doc/files/install_rb.src/M000001.html +43 -0
- data/doc/files/json/lexer_rb.html +156 -0
- data/doc/files/json/objects_rb.html +154 -0
- data/doc/files/test/arraytest_rb.html +150 -0
- data/doc/files/test/lexertest_rb.html +150 -0
- data/doc/files/test/objtest_rb.html +150 -0
- data/doc/fr_class_index.html +39 -0
- data/doc/fr_file_index.html +32 -0
- data/doc/fr_method_index.html +62 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +175 -0
- data/install.rb +67 -0
- data/lib/json/lexer.rb +297 -0
- data/lib/json/objects.rb +201 -0
- data/ruby-json.gemspec +25 -0
- data/test/arraytest.rb +45 -0
- data/test/lexertest.rb +146 -0
- data/test/objtest.rb +45 -0
- metadata +126 -0
@@ -0,0 +1,43 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>instdir (install.rb)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File install.rb, line 34</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instdir</span>
|
15
|
+
<span class="ruby-identifier">g</span> = <span class="ruby-constant">GetoptLong</span>.<span class="ruby-identifier">new</span>([<span class="ruby-value str">'--install-dir'</span>, <span class="ruby-value str">'-i'</span>, <span class="ruby-constant">GetoptLong</span><span class="ruby-operator">::</span><span class="ruby-constant">REQUIRED_ARGUMENT</span>])
|
16
|
+
<span class="ruby-identifier">g</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span> <span class="ruby-identifier">name</span>, <span class="ruby-identifier">arg</span> <span class="ruby-operator">|</span>
|
17
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'--install-dir'</span>
|
18
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">arg</span>
|
19
|
+
<span class="ruby-keyword kw">else</span>
|
20
|
+
<span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">"usage: $0 [--install-dir dir]"</span>
|
21
|
+
<span class="ruby-keyword kw">end</span>
|
22
|
+
}
|
23
|
+
|
24
|
+
<span class="ruby-keyword kw">begin</span>
|
25
|
+
<span class="ruby-identifier">require</span> <span class="ruby-value str">'rbconfig'</span>
|
26
|
+
<span class="ruby-identifier">libdir</span> = <span class="ruby-constant">Config</span><span class="ruby-operator">::</span><span class="ruby-constant">CONFIG</span>[<span class="ruby-value str">'sitedir'</span>] <span class="ruby-operator">+</span> <span class="ruby-value str">"/"</span> <span class="ruby-operator">+</span>
|
27
|
+
<span class="ruby-constant">Config</span><span class="ruby-operator">::</span><span class="ruby-constant">CONFIG</span>[<span class="ruby-value str">'MAJOR'</span>] <span class="ruby-operator">+</span> <span class="ruby-value str">"."</span> <span class="ruby-operator">+</span>
|
28
|
+
<span class="ruby-constant">Config</span><span class="ruby-operator">::</span><span class="ruby-constant">CONFIG</span>[<span class="ruby-value str">'MINOR'</span>]
|
29
|
+
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ScriptError</span>
|
30
|
+
<span class="ruby-identifier">$LOAD_PATH</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">l</span><span class="ruby-operator">|</span>
|
31
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">l</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/site_ruby/</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">l</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/\d$/</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">l</span> <span class="ruby-operator">!~</span> <span class="ruby-node">/#{PLATFORM}/</span>
|
32
|
+
<span class="ruby-identifier">libdir</span> = <span class="ruby-identifier">l</span>
|
33
|
+
<span class="ruby-keyword kw">break</span>
|
34
|
+
<span class="ruby-keyword kw">end</span>
|
35
|
+
<span class="ruby-keyword kw">end</span>
|
36
|
+
<span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">"Can't find required file `rbconfig.rb'."</span>
|
37
|
+
<span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">"The 'json' files need to be installed manually in "</span> <span class="ruby-operator">+</span>
|
38
|
+
<span class="ruby-node">" #{libdir}"</span>
|
39
|
+
<span class="ruby-keyword kw">end</span>
|
40
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">libdir</span>
|
41
|
+
<span class="ruby-keyword kw">end</span></pre>
|
42
|
+
</body>
|
43
|
+
</html>
|
@@ -0,0 +1,156 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>File: lexer.rb</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>lexer.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>json/lexer.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Fri Jan 28 10:42:10 PHT 2005</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
<div id="contextContent">
|
69
|
+
|
70
|
+
<div id="description">
|
71
|
+
<p>
|
72
|
+
Lexical analyzer for <a href="../../classes/JSON.html">JSON</a>
|
73
|
+
</p>
|
74
|
+
<pre>
|
75
|
+
Copyright (C) 2003,2005 Rafael R. Sevilla <dido@imperium.ph>
|
76
|
+
This file is part of JSON for Ruby
|
77
|
+
|
78
|
+
JSON for Ruby is free software; you can redistribute it and/or
|
79
|
+
modify it under the terms of the GNU Lesser General Public License
|
80
|
+
as published by the Free Software Foundation; either version 2.1 of
|
81
|
+
the License, or (at your option) any later version.
|
82
|
+
|
83
|
+
JSON for Ruby is distributed in the hope that it will be useful,
|
84
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
85
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
86
|
+
Lesser General Public License for more details.
|
87
|
+
|
88
|
+
You should have received a copy of the GNU Lesser General Public
|
89
|
+
License along with JSON for Ruby; if not, write to the Free
|
90
|
+
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
91
|
+
02111-1307 USA.
|
92
|
+
</pre>
|
93
|
+
<table>
|
94
|
+
<tr><td valign="top">Author:</td><td>Rafael R. Sevilla (<a href="mailto:dido@imperium.ph">dido@imperium.ph</a>)
|
95
|
+
|
96
|
+
</td></tr>
|
97
|
+
</table>
|
98
|
+
<p>
|
99
|
+
Some bugs fixed by Adam Kramer (<a
|
100
|
+
href="mailto:adam@the-kramers.net">adam@the-kramers.net</a>)
|
101
|
+
</p>
|
102
|
+
<table>
|
103
|
+
<tr><td valign="top">Copyright:</td><td>Copyright © 2003,2005 Rafael R. Sevilla
|
104
|
+
|
105
|
+
</td></tr>
|
106
|
+
<tr><td valign="top">License:</td><td>GNU Lesser General Public License
|
107
|
+
|
108
|
+
</td></tr>
|
109
|
+
</table>
|
110
|
+
<p>
|
111
|
+
$Id: lexer.rb,v 1.7 2005/01/28 02:42:10 didosevilla Exp $
|
112
|
+
</p>
|
113
|
+
|
114
|
+
</div>
|
115
|
+
|
116
|
+
<div id="requires-list">
|
117
|
+
<h2 class="section-bar">Required files</h2>
|
118
|
+
|
119
|
+
<div class="name-list">
|
120
|
+
<a href="objects_rb.html">json/objects</a>
|
121
|
+
cgi
|
122
|
+
</div>
|
123
|
+
</div>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
<div id="class-list">
|
131
|
+
<h2 class="section-bar">Classes and Modules</h2>
|
132
|
+
|
133
|
+
Module <a href="../../classes/JSON.html" class="link">JSON</a><br />
|
134
|
+
::Class <a href="../../classes/JSON/Lexer.html" class="link">JSON::Lexer</a><br />
|
135
|
+
|
136
|
+
</div>
|
137
|
+
|
138
|
+
</div>
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
<!-- if includes -->
|
143
|
+
|
144
|
+
|
145
|
+
<!-- if method_list -->
|
146
|
+
|
147
|
+
|
148
|
+
</div>
|
149
|
+
|
150
|
+
|
151
|
+
<div id="validator-badges">
|
152
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
153
|
+
</div>
|
154
|
+
|
155
|
+
</body>
|
156
|
+
</html>
|
@@ -0,0 +1,154 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>File: objects.rb</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>objects.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>json/objects.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Fri Jan 28 10:08:45 PHT 2005</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
<div id="contextContent">
|
69
|
+
|
70
|
+
<div id="description">
|
71
|
+
<p>
|
72
|
+
<a href="../../classes/JSON.html">JSON</a> Objects
|
73
|
+
</p>
|
74
|
+
<pre>
|
75
|
+
Copyright (C) 2003,2005 Rafael R. Sevilla <dido@imperium.ph>
|
76
|
+
This file is part of JSON for Ruby
|
77
|
+
|
78
|
+
JSON for Ruby is free software; you can redistribute it and/or
|
79
|
+
modify it under the terms of the GNU Lesser General Public License
|
80
|
+
as published by the Free Software Foundation; either version 2.1 of
|
81
|
+
the License, or (at your option) any later version.
|
82
|
+
|
83
|
+
JSON for Ruby is distributed in the hope that it will be useful,
|
84
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
85
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
86
|
+
Lesser General Public License for more details.
|
87
|
+
|
88
|
+
You should have received a copy of the GNU Lesser General Public
|
89
|
+
License along with JSON for Ruby; if not, write to the Free
|
90
|
+
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
91
|
+
02111-1307 USA.
|
92
|
+
</pre>
|
93
|
+
<table>
|
94
|
+
<tr><td valign="top">Author:</td><td>Rafael R. Sevilla (<a href="mailto:dido@imperium.ph">dido@imperium.ph</a>)
|
95
|
+
|
96
|
+
</td></tr>
|
97
|
+
</table>
|
98
|
+
<p>
|
99
|
+
Heavily modified by Adam Kramer (<a
|
100
|
+
href="mailto:adam@the-kramers.net">adam@the-kramers.net</a>)
|
101
|
+
</p>
|
102
|
+
<table>
|
103
|
+
<tr><td valign="top">Copyright:</td><td>Copyright © 2003,2005 Rafael R. Sevilla
|
104
|
+
|
105
|
+
</td></tr>
|
106
|
+
<tr><td valign="top">License:</td><td>GNU Lesser General Public License
|
107
|
+
|
108
|
+
</td></tr>
|
109
|
+
</table>
|
110
|
+
<p>
|
111
|
+
$Id: objects.rb,v 1.1 2005/01/28 02:08:45 didosevilla Exp $
|
112
|
+
</p>
|
113
|
+
|
114
|
+
</div>
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
<div id="class-list">
|
123
|
+
<h2 class="section-bar">Classes and Modules</h2>
|
124
|
+
|
125
|
+
Class <a href="../../classes/Array.html" class="link">Array</a><br />
|
126
|
+
Class <a href="../../classes/FalseClass.html" class="link">FalseClass</a><br />
|
127
|
+
Class <a href="../../classes/Hash.html" class="link">Hash</a><br />
|
128
|
+
Class <a href="../../classes/NilClass.html" class="link">NilClass</a><br />
|
129
|
+
Class <a href="../../classes/Numeric.html" class="link">Numeric</a><br />
|
130
|
+
Class <a href="../../classes/Object.html" class="link">Object</a><br />
|
131
|
+
Class <a href="../../classes/String.html" class="link">String</a><br />
|
132
|
+
Class <a href="../../classes/TrueClass.html" class="link">TrueClass</a><br />
|
133
|
+
|
134
|
+
</div>
|
135
|
+
|
136
|
+
</div>
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
<!-- if includes -->
|
141
|
+
|
142
|
+
|
143
|
+
<!-- if method_list -->
|
144
|
+
|
145
|
+
|
146
|
+
</div>
|
147
|
+
|
148
|
+
|
149
|
+
<div id="validator-badges">
|
150
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
151
|
+
</div>
|
152
|
+
|
153
|
+
</body>
|
154
|
+
</html>
|
@@ -0,0 +1,150 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>File: arraytest.rb</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>arraytest.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>test/arraytest.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Fri Jan 28 10:59:02 PHT 2005</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
<div id="contextContent">
|
69
|
+
|
70
|
+
<div id="description">
|
71
|
+
<p>
|
72
|
+
Unit Tests for <a href="../../classes/JSON.html">JSON</a> Arrays
|
73
|
+
</p>
|
74
|
+
<pre>
|
75
|
+
Copyright (C) 2002 Rafael R. Sevilla <dido@imperium.ph>
|
76
|
+
This file is part of JSON for Ruby
|
77
|
+
|
78
|
+
JSON for Ruby is free software; you can redistribute it and/or
|
79
|
+
modify it under the terms of the GNU Lesser General Public License
|
80
|
+
as published by the Free Software Foundation; either version 2.1 of
|
81
|
+
the License, or (at your option) any later version.
|
82
|
+
|
83
|
+
JSON for Ruby is distributed in the hope that it will be useful,
|
84
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
85
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
86
|
+
Lesser General Public License for more details.
|
87
|
+
|
88
|
+
You should have received a copy of the GNU Lesser General Public
|
89
|
+
License along with JSON for Ruby; if not, write to the Free
|
90
|
+
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
91
|
+
02111-1307 USA.
|
92
|
+
</pre>
|
93
|
+
<table>
|
94
|
+
<tr><td valign="top">Author:</td><td>Rafael R. Sevilla (<a href="mailto:dido@imperium.ph">dido@imperium.ph</a>)
|
95
|
+
|
96
|
+
</td></tr>
|
97
|
+
<tr><td valign="top">Copyright:</td><td>Copyright © 2003 Rafael R. Sevilla
|
98
|
+
|
99
|
+
</td></tr>
|
100
|
+
<tr><td valign="top">License:</td><td>GNU Lesser General Public License
|
101
|
+
|
102
|
+
</td></tr>
|
103
|
+
</table>
|
104
|
+
<p>
|
105
|
+
$Id: arraytest.rb,v 1.2 2005/01/28 02:59:02 didosevilla Exp $
|
106
|
+
</p>
|
107
|
+
|
108
|
+
</div>
|
109
|
+
|
110
|
+
<div id="requires-list">
|
111
|
+
<h2 class="section-bar">Required files</h2>
|
112
|
+
|
113
|
+
<div class="name-list">
|
114
|
+
test/unit
|
115
|
+
<a href="../json/lexer_rb.html">json/lexer</a>
|
116
|
+
<a href="../json/objects_rb.html">json/objects</a>
|
117
|
+
</div>
|
118
|
+
</div>
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
<div id="class-list">
|
126
|
+
<h2 class="section-bar">Classes and Modules</h2>
|
127
|
+
|
128
|
+
Class <a href="../../classes/ArrayTest.html" class="link">ArrayTest</a><br />
|
129
|
+
|
130
|
+
</div>
|
131
|
+
|
132
|
+
</div>
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
<!-- if includes -->
|
137
|
+
|
138
|
+
|
139
|
+
<!-- if method_list -->
|
140
|
+
|
141
|
+
|
142
|
+
</div>
|
143
|
+
|
144
|
+
|
145
|
+
<div id="validator-badges">
|
146
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
147
|
+
</div>
|
148
|
+
|
149
|
+
</body>
|
150
|
+
</html>
|