public
Description: Plug-and-play data persistence created for small Ruby web applications.
Homepage: http://stone.rubyforge.org
Clone URL: git://github.com/ndemonner/stone.git
Search Repo:
Added a bunch of documentation to various methods.
ndemonner (author)
Fri Apr 18 17:09:27 -0700 2008
commit  b49931094fa2750c888763ef8a1de81ca7d2c4bf
tree    af4d5e9abe858279bf3ddb50b9d3ffdf0fcdb2de
parent  5748fec601fc50ff1f45aac623362747152396b3
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
0
@@ -0,0 +1,218 @@
0
+<?xml version="1.0" encoding="iso-8859-1"?>
0
+<!DOCTYPE html
0
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
0
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
0
+
0
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
0
+<head>
0
+ <title>Class: Stone::Callbacks</title>
0
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
0
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
0
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
0
+ <script type="text/javascript">
0
+ // <![CDATA[
0
+
0
+ function popupCode( url ) {
0
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
0
+ }
0
+
0
+ function toggleCode( id ) {
0
+ if ( document.getElementById )
0
+ elem = document.getElementById( id );
0
+ else if ( document.all )
0
+ elem = eval( "document.all." + id );
0
+ else
0
+ return false;
0
+
0
+ elemStyle = elem.style;
0
+
0
+ if ( elemStyle.display != "block" ) {
0
+ elemStyle.display = "block"
0
+ } else {
0
+ elemStyle.display = "none"
0
+ }
0
+
0
+ return true;
0
+ }
0
+
0
+ // Make codeblocks hidden by default
0
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
0
+
0
+ // ]]>
0
+ </script>
0
+
0
+</head>
0
+<body>
0
+
0
+
0
+
0
+ <div id="classHeader">
0
+ <table class="header-table">
0
+ <tr class="top-aligned-row">
0
+ <td><strong>Class</strong></td>
0
+ <td class="class-name-in-header">Stone::Callbacks</td>
0
+ </tr>
0
+ <tr class="top-aligned-row">
0
+ <td><strong>In:</strong></td>
0
+ <td>
0
+ <a href="../../files/lib/stone/callbacks_rb.html">
0
+ lib/stone/callbacks.rb
0
+ </a>
0
+ <br />
0
+ </td>
0
+ </tr>
0
+
0
+ <tr class="top-aligned-row">
0
+ <td><strong>Parent:</strong></td>
0
+ <td>
0
+ Hash
0
+ </td>
0
+ </tr>
0
+ </table>
0
+ </div>
0
+ <!-- banner header -->
0
+
0
+ <div id="bodyContent">
0
+
0
+
0
+
0
+ <div id="contextContent">
0
+
0
+
0
+
0
+ </div>
0
+
0
+ <div id="method-list">
0
+ <h3 class="section-bar">Methods</h3>
0
+
0
+ <div class="name-list">
0
+ <a href="#M000051">fire</a>&nbsp;&nbsp;
0
+ <a href="#M000050">register</a>&nbsp;&nbsp;
0
+ <a href="#M000049">register_klass</a>&nbsp;&nbsp;
0
+ </div>
0
+ </div>
0
+
0
+ </div>
0
+
0
+
0
+ <!-- if includes -->
0
+
0
+ <div id="section">
0
+
0
+
0
+ <div id="constants-list">
0
+ <h3 class="section-bar">Constants</h3>
0
+
0
+ <div class="name-list">
0
+ <table summary="Constants">
0
+ <tr class="top-aligned-row context-row">
0
+ <td class="context-item-name">CALLBACKS</td>
0
+ <td>=</td>
0
+ <td class="context-item-value">[ :before_save, :after_save, :before_create, :after_create, :before_destroy, :after_destroy</td>
0
+ </tr>
0
+ </table>
0
+ </div>
0
+ </div>
0
+
0
+
0
+
0
+
0
+
0
+
0
+ <!-- if method_list -->
0
+ <div id="methods">
0
+ <h3 class="section-bar">Public Instance methods</h3>
0
+
0
+ <div id="method-M000051" class="method-detail">
0
+ <a name="M000051"></a>
0
+
0
+ <div class="method-heading">
0
+ <a href="Callbacks.src/M000051.html" target="Code" class="method-signature"
0
+ onclick="popupCode('Callbacks.src/M000051.html');return false;">
0
+ <span class="method-name">fire</span><span class="method-args">(cb_sym, obj)</span>
0
+ </a>
0
+ </div>
0
+
0
+ <div class="method-description">
0
+ <p>
0
+Sends any methods registered under <tt>cb_sym</tt> to <tt>obj</tt>
0
+</p>
0
+<h3>Parameters</h3>
0
+<table>
0
+<tr><td valign="top"><tt>cb_sym</tt>:</td><td>Used to retrieve the methods to send
0
+
0
+</td></tr>
0
+<tr><td valign="top"><tt>obj</tt>:</td><td>The object to which the retrieved methods are sent
0
+
0
+</td></tr>
0
+</table>
0
+ </div>
0
+ </div>
0
+
0
+ <div id="method-M000050" class="method-detail">
0
+ <a name="M000050"></a>
0
+
0
+ <div class="method-heading">
0
+ <a href="Callbacks.src/M000050.html" target="Code" class="method-signature"
0
+ onclick="popupCode('Callbacks.src/M000050.html');return false;">
0
+ <span class="method-name">register</span><span class="method-args">(cb_sym, meth, klass)</span>
0
+ </a>
0
+ </div>
0
+
0
+ <div class="method-description">
0
+ <p>
0
+Adds a given <tt>meth</tt> to the <tt>cb_sym</tt> array in the current <a
0
+href="Callbacks.html">Callbacks</a> hash based on <tt>klass</tt>
0
+</p>
0
+<h3>Parameters</h3>
0
+<table>
0
+<tr><td valign="top"><tt>cb_sym</tt>:</td><td>where <tt>meth</tt> will be added
0
+
0
+</td></tr>
0
+<tr><td valign="top"><tt>meth</tt>:</td><td>method to be added
0
+
0
+</td></tr>
0
+<tr><td valign="top"><tt>klass</tt>:</td><td>determines which <tt>cb_sym</tt> array will be used
0
+
0
+</td></tr>
0
+</table>
0
+ </div>
0
+ </div>
0
+
0
+ <div id="method-M000049" class="method-detail">
0
+ <a name="M000049"></a>
0
+
0
+ <div class="method-heading">
0
+ <a href="Callbacks.src/M000049.html" target="Code" class="method-signature"
0
+ onclick="popupCode('Callbacks.src/M000049.html');return false;">
0
+ <span class="method-name">register_klass</span><span class="method-args">(klass)</span>
0
+ </a>
0
+ </div>
0
+
0
+ <div class="method-description">
0
+ <p>
0
+Registers the <tt>klass</tt> with the current instance of <a
0
+href="Callbacks.html">Callbacks</a> in <a href="Resource.html">Resource</a>
0
+</p>
0
+<h3>Parameters</h3>
0
+<table>
0
+<tr><td valign="top"><tt>klass</tt>:</td><td>The class to be registered
0
+
0
+</td></tr>
0
+</table>
0
+ </div>
0
+ </div>
0
+
0
+
0
+ </div>
0
+
0
+
0
+ </div>
0
+
0
+
0
+<div id="validator-badges">
0
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
0
+</div>
0
+
0
+</body>
0
+</html>
0
\ No newline at end of file
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
0
@@ -0,0 +1,21 @@
0
+<?xml version="1.0" encoding="iso-8859-1"?>
0
+<!DOCTYPE html
0
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
0
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
0
+
0
+<html>
0
+<head>
0
+ <title>register_klass (Stone::Callbacks)</title>
0
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
0
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
0
+</head>
0
+<body class="standalone-code">
0
+ <pre><span class="ruby-comment cmt"># File lib/stone/callbacks.rb, line 20</span>
0
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">register_klass</span>(<span class="ruby-identifier">klass</span>)
0
+ <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">klass</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">make_key</span>] = {}
0
+ <span class="ruby-constant">CALLBACKS</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">cb_sym</span><span class="ruby-operator">|</span>
0
+ <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">klass</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">make_key</span>][<span class="ruby-identifier">cb_sym</span>] = []
0
+ <span class="ruby-keyword kw">end</span>
0
+ <span class="ruby-keyword kw">end</span></pre>
0
+</body>
0
+</html>
0
\ No newline at end of file
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
0
@@ -0,0 +1,18 @@
0
+<?xml version="1.0" encoding="iso-8859-1"?>
0
+<!DOCTYPE html
0
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
0
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
0
+
0
+<html>
0
+<head>
0
+ <title>register (Stone::Callbacks)</title>
0
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
0
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
0
+</head>
0
+<body class="standalone-code">
0
+ <pre><span class="ruby-comment cmt"># File lib/stone/callbacks.rb, line 33</span>
0
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">register</span>(<span class="ruby-identifier">cb_sym</span>, <span class="ruby-identifier">meth</span>, <span class="ruby-identifier">klass</span>)
0
+ <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">klass</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">make_key</span>][<span class="ruby-identifier">cb_sym</span>] <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">meth</span>
0
+ <span class="ruby-keyword kw">end</span></pre>
0
+</body>
0
+</html>
0
\ No newline at end of file
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
0
@@ -0,0 +1,23 @@
0
+<?xml version="1.0" encoding="iso-8859-1"?>
0
+<!DOCTYPE html
0
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
0
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
0
+
0
+<html>
0
+<head>
0
+ <title>fire (Stone::Callbacks)</title>
0
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
0
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
0
+</head>
0
+<body class="standalone-code">
0
+ <pre><span class="ruby-comment cmt"># File lib/stone/callbacks.rb, line 41</span>
0
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fire</span>(<span class="ruby-identifier">cb_sym</span>, <span class="ruby-identifier">obj</span>)
0
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">make_key</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:class</span>
0
+ <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">make_key</span>][<span class="ruby-identifier">cb_sym</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">meth</span><span class="ruby-operator">|</span>
0
+ <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">meth</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">meth</span>.<span class="ruby-identifier">blank?</span>
0
+ <span class="ruby-keyword kw">end</span>
0
+ <span class="ruby-keyword kw">end</span>
0
+ <span class="ruby-keyword kw">true</span>
0
+ <span class="ruby-keyword kw">end</span></pre>
0
+</body>
0
+</html>
0
\ No newline at end of file
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
0
@@ -0,0 +1,281 @@
0
+<?xml version="1.0" encoding="iso-8859-1"?>
0
+<!DOCTYPE html
0
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
0
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
0
+
0
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
0
+<head>
0
+ <title>Class: Stone::DataStore</title>
0
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
0
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
0
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
0
+ <script type="text/javascript">
0
+ // <![CDATA[
0
+
0
+ function popupCode( url ) {
0
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
0
+ }
0
+
0
+ function toggleCode( id ) {
0
+ if ( document.getElementById )
0
+ elem = document.getElementById( id );
0
+ else if ( document.all )
0
+ elem = eval( "document.all." + id );
0
+ else
0
+ return false;
0
+
0
+ elemStyle = elem.style;
0
+
0
+ if ( elemStyle.display != "block" ) {
0
+ elemStyle.display = "block"
0
+ } else {
0
+ elemStyle.display = "none"
0
+ }
0
+
0
+ return true;
0
+ }
0
+
0
+ // Make codeblocks hidden by default
0
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
0
+
0
+ // ]]>
0
+ </script>
0
+
0
+</head>
0
+<body>
0
+
0
+
0
+
0
+ <div id="classHeader">
0
+ <table class="header-table">
0
+ <tr class="top-aligned-row">
0
+ <td><strong>Class</strong></td>
0
+ <td class="class-name-in-header">Stone::DataStore</td>
0
+ </tr>
0
+ <tr class="top-aligned-row">
0
+ <td><strong>In:</strong></td>
0
+ <td>
0
+ <a href="../../files/lib/stone/data_store_rb.html">
0
+ lib/stone/data_store.rb
0
+ </a>
0
+ <br />
0
+ </td>
0
+ </tr>
0
+
0
+ <tr class="top-aligned-row">
0
+ <td><strong>Parent:</strong></td>
0
+ <td>
0
+ Object
0
+ </td>
0
+ </tr>
0
+ </table>
0
+ </div>
0
+ <!-- banner header -->
0
+
0
+ <div id="bodyContent">
0
+
0
+
0
+
0
+ <div id="contextContent">
0
+
0
+ <div id="description">
0
+ <p>
0
+An in-memory representation of the file-based datastore
0
+</p>
0
+
0
+ </div>
0
+
0
+
0
+ </div>
0
+
0
+ <div id="method-list">
0
+ <h3 class="section-bar">Methods</h3>
0
+
0
+ <div class="name-list">
0
+ <a href="#M000046">delete</a>&nbsp;&nbsp;
0
+ <a href="#M000044">determine_save_method</a>&nbsp;&nbsp;
0
+ <a href="#M000043">load_data</a>&nbsp;&nbsp;
0
+ <a href="#M000042">local_dir</a>&nbsp;&nbsp;
0
+ <a href="#M000047">new</a>&nbsp;&nbsp;
0
+ <a href="#M000048">resources</a>&nbsp;&nbsp;
0
+ <a href="#M000045">write_yaml</a>&nbsp;&nbsp;
0
+ </div>
0
+ </div>
0
+
0
+ </div>
0
+
0
+
0
+ <!-- if includes -->
0
+
0
+ <div id="section">
0
+
0
+
0
+
0
+
0
+
0
+
0
+
0
+
0
+ <!-- if method_list -->
0
+ <div id="methods">
0
+ <h3 class="section-bar">Public Class methods</h3>
0
+
0
+ <div id="method-M000046" class="method-detail">
0
+ <a name="M000046"></a>
0
+
0
+ <div class="method-heading">
0
+ <a href="DataStore.src/M000046.html" target="Code" class="method-signature"
0
+ onclick="popupCode('DataStore.src/M000046.html');return false;">
0
+ <span class="method-name">delete</span><span class="method-args">(id, klass_dir)</span>
0
+ </a>
0
+ </div>
0
+
0
+ <div class="method-description">
0
+ <p>
0
+Removes object&#8216;s yaml file
0
+</p>
0
+<h3>Parameters</h3>
0
+<table>
0
+<tr><td valign="top"><tt>id</tt>:</td><td>id of the object to be removed
0
+
0
+</td></tr>
0
+<tr><td valign="top"><tt>klass_dir</tt>:</td><td>directory in which object resides
0
+
0
+</td></tr>
0
+</table>
0
+ </div>
0
+ </div>
0
+
0
+ <div id="method-M000044" class="method-detail">
0
+ <a name="M000044"></a>
0
+
0
+ <div class="method-heading">
0
+ <a href="DataStore.src/M000044.html" target="Code" class="method-signature"
0
+ onclick="popupCode('DataStore.src/M000044.html');return false;">
0
+ <span class="method-name">determine_save_method</span><span class="method-args">(obj, store)</span>
0
+ </a>
0
+ </div>
0
+
0
+ <div class="method-description">
0
+ <p>
0
+If the object already exists (id was found), this returns
0
+<tt>put</tt>(update), else <tt>post</tt>(create)
0
+</p>
0
+<h3>Parameters</h3>
0
+<table>
0
+<tr><td valign="top"><tt>obj</tt>:</td><td>The instantiated resource to be saved
0
+
0
+</td></tr>
0
+<tr><td valign="top"><tt>store</tt>:</td><td><a href="DataStore.html">DataStore</a> object
0
+
0
+</td></tr>
0
+</table>
0
+ </div>
0
+ </div>
0
+
0
+ <div id="method-M000043" class="method-detail">
0
+ <a name="M000043"></a>
0
+
0
+ <div class="method-heading">
0
+ <a href="DataStore.src/M000043.html" target="Code" class="method-signature"
0
+ onclick="popupCode('DataStore.src/M000043.html');return false;">
0
+ <span class="method-name">load_data</span><span class="method-args">(sym)</span>
0
+ </a>
0
+ </div>
0
+
0
+ <div class="method-description">
0
+ <p>
0
+Loads yaml files specific to the resource represented by <tt>sym</tt>
0
+</p>
0
+<h3>Parameters</h3>
0
+<table>
0
+<tr><td valign="top"><tt>sym</tt>:</td><td><a href="../Symbol.html">Symbol</a> representing resource data to load
0
+
0
+</td></tr>
0
+</table>
0
+ </div>
0
+ </div>
0
+
0
+ <div id="method-M000042" class="method-detail">
0
+ <a name="M000042"></a>
0
+
0
+ <div class="method-heading">
0
+ <a href="DataStore.src/M000042.html" target="Code" class="method-signature"
0
+ onclick="popupCode('DataStore.src/M000042.html');return false;">
0
+ <span class="method-name">local_dir</span><span class="method-args">()</span>
0
+ </a>
0
+ </div>
0
+
0
+ <div class="method-description">
0
+ <p>
0
+Provides the directory path to the local (app-specific) datastore
0
+</p>
0
+ </div>
0
+ </div>
0
+
0
+ <div id="method-M000047" class="method-detail">
0
+ <a name="M000047"></a>
0
+
0
+ <div class="method-heading">
0
+ <a href="DataStore.src/M000047.html" target="Code" class="method-signature"
0
+ onclick="popupCode('DataStore.src/M000047.html');return false;">
0
+ <span class="method-name">new</span><span class="method-args">()</span>
0
+ </a>
0
+ </div>
0
+
0
+ <div class="method-description">
0
+ </div>
0
+ </div>
0
+
0
+ <div id="method-M000045" class="method-detail">
0
+ <a name="M000045"></a>
0
+
0
+ <div class="method-heading">
0
+ <a href="DataStore.src/M000045.html" target="Code" class="method-signature"
0
+ onclick="popupCode('DataStore.src/M000045.html');return false;">
0
+ <span class="method-name">write_yaml</span><span class="method-args">(obj)</span>
0
+ </a>
0
+ </div>
0
+
0
+ <div class="method-description">
0
+ <p>
0
+Persist the object via YAML
0
+</p>
0
+<h3>Parameters</h3>
0
+<table>
0
+<tr><td valign="top"><tt>obj</tt>:</td><td>The object to be persisted
0
+
0
+</td></tr>
0
+</table>
0
+ </div>
0
+ </div>
0
+
0
+ <h3 class="section-bar">Public Instance methods</h3>
0
+
0
+ <div id="method-M000048" class="method-detail">
0
+ <a name="M000048"></a>
0
+
0
+ <div class="method-heading">
0
+ <a href="DataStore.src/M000048.html" target="Code" class="method-signature"
0
+ onclick="popupCode('DataStore.src/M000048.html');return false;">
0
+ <span class="method-name">resources</span><span class="method-args">()</span>
0
+ </a>
0
+ </div>
0
+
0
+ <div class="method-description">
0
+ </div>
0
+ </div>
0
+
0
+
0
+ </div>
0
+
0
+
0
+ </div>
0
+
0
+
0
+<div id="validator-badges">
0
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
0
+</div>
0
+
0
+</body>
0
+</html>
0
\ No newline at end of file
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
0
@@ -0,0 +1,18 @@
0
+<?xml version="1.0" encoding="iso-8859-1"?>
0
+<!DOCTYPE html
0
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
0
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
0
+
0
+<html>
0
+<head>
0
+ <title>local_dir (Stone::DataStore)</title>
0
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
0
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
0
+</head>
0
+<body class="standalone-code">
0
+ <pre><span class="ruby-comment cmt"># File lib/stone/data_store.rb, line 13</span>
0
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">local_dir</span>
0
+ <span class="ruby-ivar">@dir</span> <span class="ruby-operator">||</span> <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">pwd</span><span class="ruby-operator">/</span><span class="ruby-value str">&quot;datastore&quot;</span>
0
+ <span class="ruby-keyword kw">end</span></pre>
0
+</body>
0
+</html>
0
\ No newline at end of file
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
0
@@ -0,0 +1,27 @@
0
+<?xml version="1.0" encoding="iso-8859-1"?>
0
+<!DOCTYPE html