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,28 @@
|
|
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>test_to_json (ObjectTest)</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 test/objtest.rb, line 32</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_to_json</span>
|
15
|
+
<span class="ruby-identifier">obj</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
|
16
|
+
<span class="ruby-identifier">obj</span>[<span class="ruby-value str">'foo'</span>] = <span class="ruby-value str">'bar'</span>
|
17
|
+
<span class="ruby-identifier">obj</span>[<span class="ruby-value str">'xyz'</span>] = <span class="ruby-value">1</span>
|
18
|
+
<span class="ruby-identifier">obj</span>[<span class="ruby-value str">'euler'</span>] = <span class="ruby-value">0</span><span class="ruby-value">.577215665</span>
|
19
|
+
|
20
|
+
<span class="ruby-identifier">str</span> = <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">to_json</span>
|
21
|
+
<span class="ruby-identifier">sobj</span> = <span class="ruby-constant">JSON</span><span class="ruby-operator">::</span><span class="ruby-constant">Lexer</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">str</span>).<span class="ruby-identifier">nextvalue</span>
|
22
|
+
<span class="ruby-identifier">assert</span>(<span class="ruby-identifier">sobj</span>.<span class="ruby-identifier">class</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Hash</span>, <span class="ruby-value str">"Hash was not generated by deserialization"</span>)
|
23
|
+
<span class="ruby-identifier">assert</span>(<span class="ruby-identifier">sobj</span>[<span class="ruby-value str">'foo'</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">'bar'</span>, <span class="ruby-value str">"error in serialization of a string to JSON"</span>)
|
24
|
+
<span class="ruby-identifier">assert</span>(<span class="ruby-identifier">sobj</span>[<span class="ruby-value str">'xyz'</span>] <span class="ruby-operator">==</span> <span class="ruby-value">1</span>, <span class="ruby-value str">"error in serialization of a FixNum to JSON"</span>)
|
25
|
+
<span class="ruby-identifier">assert</span>(<span class="ruby-identifier">sobj</span>[<span class="ruby-value str">'euler'</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span><span class="ruby-value">.577215665</span>, <span class="ruby-value str">"error in serialization of a float to JSON"</span>)
|
26
|
+
<span class="ruby-keyword kw">end</span></pre>
|
27
|
+
</body>
|
28
|
+
</html>
|
@@ -0,0 +1,151 @@
|
|
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>Class: String</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="classHeader">
|
50
|
+
<h1>String <sup class="type-note">(Class)</sup></h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>In:</strong></td>
|
54
|
+
<td>
|
55
|
+
<a href="../files/json/objects_rb.html">
|
56
|
+
json/objects.rb
|
57
|
+
</a>
|
58
|
+
<br />
|
59
|
+
</td>
|
60
|
+
</tr>
|
61
|
+
|
62
|
+
<tr class="top-aligned-row">
|
63
|
+
<td><strong>Parent:</strong></td>
|
64
|
+
<td>
|
65
|
+
<a href="Object.html">
|
66
|
+
Object
|
67
|
+
</a>
|
68
|
+
</td>
|
69
|
+
</tr>
|
70
|
+
</table>
|
71
|
+
</div>
|
72
|
+
<!-- banner header -->
|
73
|
+
|
74
|
+
<div id="bodyContent">
|
75
|
+
|
76
|
+
|
77
|
+
<div id="contextContent">
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<div id="method-list">
|
82
|
+
<h2 class="section-bar">Methods</h2>
|
83
|
+
|
84
|
+
<div class="name-list">
|
85
|
+
<a href="#M000019">to_json</a>
|
86
|
+
<a href="#M000020">to_json</a>
|
87
|
+
</div>
|
88
|
+
</div>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
</div>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
<!-- if includes -->
|
100
|
+
|
101
|
+
|
102
|
+
<!-- if method_list -->
|
103
|
+
<div id="methods">
|
104
|
+
<h2 class="section-bar">Public Class methods</h2>
|
105
|
+
|
106
|
+
<div id="method-M000020" class="method-detail">
|
107
|
+
<a name="M000020"></a>
|
108
|
+
|
109
|
+
<div class="method-heading">
|
110
|
+
<a href="String.src/M000020.html" target="Code" class="method-signature"
|
111
|
+
onclick="popupCode('String.src/M000020.html');return false;">
|
112
|
+
<span class="method-name">to_json</span><span class="method-args">(str)</span>
|
113
|
+
</a>
|
114
|
+
</div>
|
115
|
+
|
116
|
+
<div class="method-description">
|
117
|
+
</div>
|
118
|
+
</div>
|
119
|
+
|
120
|
+
<h2 class="section-bar">Public Instance methods</h2>
|
121
|
+
|
122
|
+
<div id="method-M000019" class="method-detail">
|
123
|
+
<a name="M000019"></a>
|
124
|
+
|
125
|
+
<div class="method-heading">
|
126
|
+
<a href="String.src/M000019.html" target="Code" class="method-signature"
|
127
|
+
onclick="popupCode('String.src/M000019.html');return false;">
|
128
|
+
<span class="method-name">to_json</span><span class="method-args">()</span>
|
129
|
+
</a>
|
130
|
+
</div>
|
131
|
+
|
132
|
+
<div class="method-description">
|
133
|
+
<p>
|
134
|
+
produce a string in double quotes with all the necessary quoting done
|
135
|
+
</p>
|
136
|
+
</div>
|
137
|
+
</div>
|
138
|
+
|
139
|
+
|
140
|
+
</div>
|
141
|
+
|
142
|
+
|
143
|
+
</div>
|
144
|
+
|
145
|
+
|
146
|
+
<div id="validator-badges">
|
147
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
148
|
+
</div>
|
149
|
+
|
150
|
+
</body>
|
151
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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>to_json (String)</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 json/objects.rb, line 62</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>
|
15
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">String</span>.<span class="ruby-identifier">to_json</span>(<span class="ruby-keyword kw">self</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,46 @@
|
|
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>to_json (String)</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 json/objects.rb, line 66</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">to_json</span>(<span class="ruby-identifier">str</span>)
|
15
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-value str">"\"\""</span> <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">str</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>)
|
16
|
+
<span class="ruby-identifier">newstr</span> = <span class="ruby-value str">"\""</span>
|
17
|
+
<span class="ruby-identifier">str</span>.<span class="ruby-identifier">each_byte</span> {
|
18
|
+
<span class="ruby-operator">|</span><span class="ruby-identifier">b</span><span class="ruby-operator">|</span>
|
19
|
+
<span class="ruby-identifier">c</span> = <span class="ruby-identifier">b</span>.<span class="ruby-identifier">chr</span>
|
20
|
+
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">c</span>
|
21
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/\\|\">/</span>
|
22
|
+
<span class="ruby-identifier">newstr</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\\"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">c</span>
|
23
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">"\b"</span>
|
24
|
+
<span class="ruby-identifier">newstr</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\\b"</span>
|
25
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">"\t"</span>
|
26
|
+
<span class="ruby-identifier">newstr</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\\t"</span>
|
27
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">"\n"</span>
|
28
|
+
<span class="ruby-identifier">newstr</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\\n"</span>
|
29
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">"\f"</span>
|
30
|
+
<span class="ruby-identifier">newstr</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\\f"</span>
|
31
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">"\r"</span>
|
32
|
+
<span class="ruby-identifier">newstr</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\\r"</span>
|
33
|
+
<span class="ruby-keyword kw">else</span>
|
34
|
+
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">c</span> <span class="ruby-operator"><</span> <span class="ruby-value str">' '</span>)
|
35
|
+
<span class="ruby-identifier">t</span> = <span class="ruby-value str">"000"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">sprintf</span>(<span class="ruby-value str">"%0x"</span>, <span class="ruby-identifier">b</span>)
|
36
|
+
<span class="ruby-identifier">newstr</span> <span class="ruby-operator"><<</span> (<span class="ruby-value str">"\\u"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">t</span>[<span class="ruby-value">0</span>,<span class="ruby-identifier">t</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">-</span> <span class="ruby-value">4</span>])
|
37
|
+
<span class="ruby-keyword kw">else</span>
|
38
|
+
<span class="ruby-identifier">newstr</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">c</span>
|
39
|
+
<span class="ruby-keyword kw">end</span>
|
40
|
+
<span class="ruby-keyword kw">end</span>
|
41
|
+
}
|
42
|
+
<span class="ruby-identifier">newstr</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">'"'</span>
|
43
|
+
<span class="ruby-keyword kw">return</span>(<span class="ruby-identifier">newstr</span>)
|
44
|
+
<span class="ruby-keyword kw">end</span></pre>
|
45
|
+
</body>
|
46
|
+
</html>
|
@@ -0,0 +1,131 @@
|
|
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>Class: TrueClass</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="classHeader">
|
50
|
+
<h1>TrueClass <sup class="type-note">(Class)</sup></h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>In:</strong></td>
|
54
|
+
<td>
|
55
|
+
<a href="../files/json/objects_rb.html">
|
56
|
+
json/objects.rb
|
57
|
+
</a>
|
58
|
+
<br />
|
59
|
+
</td>
|
60
|
+
</tr>
|
61
|
+
|
62
|
+
<tr class="top-aligned-row">
|
63
|
+
<td><strong>Parent:</strong></td>
|
64
|
+
<td>
|
65
|
+
<a href="Object.html">
|
66
|
+
Object
|
67
|
+
</a>
|
68
|
+
</td>
|
69
|
+
</tr>
|
70
|
+
</table>
|
71
|
+
</div>
|
72
|
+
<!-- banner header -->
|
73
|
+
|
74
|
+
<div id="bodyContent">
|
75
|
+
|
76
|
+
|
77
|
+
<div id="contextContent">
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<div id="method-list">
|
82
|
+
<h2 class="section-bar">Methods</h2>
|
83
|
+
|
84
|
+
<div class="name-list">
|
85
|
+
<a href="#M000021">to_json</a>
|
86
|
+
</div>
|
87
|
+
</div>
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
</div>
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<!-- if includes -->
|
99
|
+
|
100
|
+
|
101
|
+
<!-- if method_list -->
|
102
|
+
<div id="methods">
|
103
|
+
<h2 class="section-bar">Public Instance methods</h2>
|
104
|
+
|
105
|
+
<div id="method-M000021" class="method-detail">
|
106
|
+
<a name="M000021"></a>
|
107
|
+
|
108
|
+
<div class="method-heading">
|
109
|
+
<a href="TrueClass.src/M000021.html" target="Code" class="method-signature"
|
110
|
+
onclick="popupCode('TrueClass.src/M000021.html');return false;">
|
111
|
+
<span class="method-name">to_json</span><span class="method-args">()</span>
|
112
|
+
</a>
|
113
|
+
</div>
|
114
|
+
|
115
|
+
<div class="method-description">
|
116
|
+
</div>
|
117
|
+
</div>
|
118
|
+
|
119
|
+
|
120
|
+
</div>
|
121
|
+
|
122
|
+
|
123
|
+
</div>
|
124
|
+
|
125
|
+
|
126
|
+
<div id="validator-badges">
|
127
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
128
|
+
</div>
|
129
|
+
|
130
|
+
</body>
|
131
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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>to_json (TrueClass)</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 json/objects.rb, line 42</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>
|
15
|
+
<span class="ruby-value str">"true"</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
data/doc/created.rid
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Fri Jan 28 11:04:59 PHT 2005
|
@@ -0,0 +1,194 @@
|
|
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: install.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>install.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>install.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Mon Aug 16 13:11:00 PHT 2004</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
|
+
Install Script
|
73
|
+
</p>
|
74
|
+
<pre>
|
75
|
+
Copyright (C) 2003 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: install.rb,v 1.1 2003/08/20 10:53:24 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
|
+
getoptlong
|
115
|
+
ftools
|
116
|
+
find
|
117
|
+
rbconfig
|
118
|
+
</div>
|
119
|
+
</div>
|
120
|
+
|
121
|
+
<div id="method-list">
|
122
|
+
<h2 class="section-bar">Methods</h2>
|
123
|
+
|
124
|
+
<div class="name-list">
|
125
|
+
<a href="#M000001">instdir</a>
|
126
|
+
</div>
|
127
|
+
</div>
|
128
|
+
|
129
|
+
<div id="constants-list">
|
130
|
+
<h2 class="section-bar">Constants</h2>
|
131
|
+
|
132
|
+
<div class="name-list">
|
133
|
+
<table summary="Constants">
|
134
|
+
<tr class="top-aligned-row context-row">
|
135
|
+
<td class="context-item-name">SOURCE_DIR</td>
|
136
|
+
<td>=</td>
|
137
|
+
<td class="context-item-value">'json'</td>
|
138
|
+
</tr>
|
139
|
+
<tr class="top-aligned-row context-row">
|
140
|
+
<td class="context-item-name">LIBDIR</td>
|
141
|
+
<td>=</td>
|
142
|
+
<td class="context-item-value">'json'</td>
|
143
|
+
</tr>
|
144
|
+
<tr class="top-aligned-row context-row">
|
145
|
+
<td class="context-item-name">INSTALL_DIR</td>
|
146
|
+
<td>=</td>
|
147
|
+
<td class="context-item-value">instdir()</td>
|
148
|
+
</tr>
|
149
|
+
</table>
|
150
|
+
</div>
|
151
|
+
</div>
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
</div>
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
<!-- if includes -->
|
162
|
+
|
163
|
+
|
164
|
+
<!-- if method_list -->
|
165
|
+
<div id="methods">
|
166
|
+
<h2 class="section-bar">Public Instance methods</h2>
|
167
|
+
|
168
|
+
<div id="method-M000001" class="method-detail">
|
169
|
+
<a name="M000001"></a>
|
170
|
+
|
171
|
+
<div class="method-heading">
|
172
|
+
<a href="install_rb.src/M000001.html" target="Code" class="method-signature"
|
173
|
+
onclick="popupCode('install_rb.src/M000001.html');return false;">
|
174
|
+
<span class="method-name">instdir</span><span class="method-args">()</span>
|
175
|
+
</a>
|
176
|
+
</div>
|
177
|
+
|
178
|
+
<div class="method-description">
|
179
|
+
</div>
|
180
|
+
</div>
|
181
|
+
|
182
|
+
|
183
|
+
</div>
|
184
|
+
|
185
|
+
|
186
|
+
</div>
|
187
|
+
|
188
|
+
|
189
|
+
<div id="validator-badges">
|
190
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
191
|
+
</div>
|
192
|
+
|
193
|
+
</body>
|
194
|
+
</html>
|