wee 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/TODO +31 -0
- data/benchmark.rb +37 -0
- data/demo.ru +11 -0
- data/doc/rdoc/classes/Array.html +22 -26
- data/doc/rdoc/classes/Hash.html +22 -26
- data/doc/rdoc/classes/Object.html +21 -26
- data/doc/rdoc/classes/String.html +19 -87
- data/doc/rdoc/classes/Struct.html +22 -26
- data/doc/rdoc/classes/Wee.html +75 -206
- data/doc/rdoc/classes/Wee/AnswerDecoration.html +35 -66
- data/doc/rdoc/classes/Wee/AnswerDecoration/Answer.html +28 -46
- data/doc/rdoc/classes/Wee/Application.html +63 -114
- data/doc/rdoc/classes/Wee/Application/SessionCache.html +30 -44
- data/doc/rdoc/classes/Wee/Brush.html +52 -101
- data/doc/rdoc/classes/Wee/Brush/ActionInputTag.html +29 -51
- data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +44 -101
- data/doc/rdoc/classes/Wee/Brush/CheckboxTag.html +43 -76
- data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +29 -46
- data/doc/rdoc/classes/Wee/Brush/FormTag.html +48 -110
- data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +30 -42
- data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +37 -58
- data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +93 -210
- data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +38 -63
- data/doc/rdoc/classes/Wee/Brush/HiddenInputTag.html +29 -45
- data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +35 -52
- data/doc/rdoc/classes/Wee/Brush/ImageTag.html +28 -61
- data/doc/rdoc/classes/Wee/Brush/InputTag.html +34 -107
- data/doc/rdoc/classes/Wee/Brush/JavascriptTag.html +28 -54
- data/doc/rdoc/classes/Wee/Brush/Page.html +39 -73
- data/doc/rdoc/classes/Wee/Brush/PasswordInputTag.html +29 -45
- data/doc/rdoc/classes/Wee/Brush/RadioButtonTag.html +54 -98
- data/doc/rdoc/classes/Wee/Brush/RadioGroup.html +46 -84
- data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +87 -187
- data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +29 -56
- data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +29 -45
- data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +28 -55
- data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +28 -55
- data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +56 -113
- data/doc/rdoc/classes/Wee/Brush/TableTag.html +27 -58
- data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +48 -140
- data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +29 -45
- data/doc/rdoc/classes/Wee/CallAnswerMixin.html +51 -79
- data/doc/rdoc/classes/Wee/CallbackMixin.html +44 -77
- data/doc/rdoc/classes/Wee/CallbackRegistry.html +69 -125
- data/doc/rdoc/classes/Wee/Callbacks.html +43 -82
- data/doc/rdoc/classes/Wee/Component.html +142 -292
- data/doc/rdoc/classes/Wee/Decoration.html +85 -141
- data/doc/rdoc/classes/Wee/DecorationMixin.html +111 -118
- data/doc/rdoc/classes/Wee/Delegate.html +72 -115
- data/doc/rdoc/classes/Wee/DupReplaceSnapshotMixin.html +37 -54
- data/doc/rdoc/classes/Wee/ErrorResponse.html +31 -48
- data/doc/rdoc/classes/Wee/FormDecoration.html +32 -46
- data/doc/rdoc/classes/Wee/GenericResponse.html +30 -50
- data/doc/rdoc/classes/Wee/HtmlCanvas.html +209 -562
- data/doc/rdoc/classes/Wee/HtmlDocument.html +51 -91
- data/doc/rdoc/classes/Wee/HtmlWriter.html +76 -156
- data/doc/rdoc/classes/Wee/IdGenerator.html +28 -44
- data/doc/rdoc/classes/Wee/IdGenerator/Secure.html +53 -95
- data/doc/rdoc/classes/Wee/IdGenerator/Sequential.html +37 -63
- data/doc/rdoc/classes/Wee/JQuery.html +36 -64
- data/doc/rdoc/classes/Wee/LRUCache.html +94 -189
- data/doc/rdoc/classes/Wee/LRUCache/Item.html +30 -42
- data/doc/rdoc/classes/Wee/ObjectSnapshotMixin.html +37 -54
- data/doc/rdoc/classes/Wee/PageDecoration.html +48 -79
- data/doc/rdoc/classes/Wee/Presenter.html +86 -143
- data/doc/rdoc/classes/Wee/RedirectResponse.html +31 -49
- data/doc/rdoc/classes/Wee/RefreshResponse.html +34 -48
- data/doc/rdoc/classes/Wee/Renderer.html +56 -125
- data/doc/rdoc/classes/Wee/Request.html +57 -115
- data/doc/rdoc/classes/Wee/Response.html +24 -26
- data/doc/rdoc/classes/Wee/Session.html +137 -292
- data/doc/rdoc/classes/Wee/Session/AbortCallbackProcessing.html +29 -46
- data/doc/rdoc/classes/Wee/Session/MutexSerializer.html +29 -42
- data/doc/rdoc/classes/Wee/Session/Page.html +22 -21
- data/doc/rdoc/classes/Wee/Session/ThreadSerializer.html +36 -60
- data/doc/rdoc/classes/Wee/State.html +57 -105
- data/doc/rdoc/classes/Wee/State/Snapshot.html +22 -21
- data/doc/rdoc/classes/Wee/State/SnapshotIVars.html +22 -21
- data/doc/rdoc/classes/Wee/StructSnapshotMixin.html +37 -54
- data/doc/rdoc/classes/Wee/WrapperDecoration.html +42 -68
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/README_rdoc.html +26 -17
- data/doc/rdoc/files/lib/wee/application_rb.html +25 -19
- data/doc/rdoc/files/lib/wee/call_answer_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/callback_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/component_rb.html +25 -19
- data/doc/rdoc/files/lib/wee/decoration_rb.html +23 -15
- data/doc/rdoc/files/lib/wee/html_brushes_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/html_canvas_rb.html +23 -15
- data/doc/rdoc/files/lib/wee/html_document_rb.html +23 -15
- data/doc/rdoc/files/lib/wee/html_writer_rb.html +23 -15
- data/doc/rdoc/files/lib/wee/id_generator_rb.html +24 -17
- data/doc/rdoc/files/lib/wee/jquery/jquery_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/jquery_rb.html +23 -15
- data/doc/rdoc/files/lib/wee/lru_cache_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/presenter_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/renderer_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/request_rb.html +23 -15
- data/doc/rdoc/files/lib/wee/response_rb.html +24 -17
- data/doc/rdoc/files/lib/wee/session_rb.html +26 -21
- data/doc/rdoc/files/lib/wee/state_rb.html +23 -12
- data/doc/rdoc/files/lib/wee_rb.html +37 -47
- data/doc/rdoc/fr_class_index.html +12 -86
- data/doc/rdoc/fr_file_index.html +12 -30
- data/doc/rdoc/fr_method_index.html +242 -473
- data/doc/rdoc/index.html +8 -5
- data/doc/rdoc/rdoc-style.css +119 -210
- data/examples/ObjectSpaceBrowser.rb +4 -4
- data/examples/TODO +21 -0
- data/examples/ajax.rb +6 -4
- data/examples/blog.rb +42 -0
- data/examples/demo.rb +5 -3
- data/examples/demo/calculator.rb +3 -3
- data/examples/demo/calendar.rb +4 -4
- data/examples/demo/counter.rb +2 -2
- data/examples/demo/editable_counter.rb +2 -2
- data/examples/demo/example.rb +25 -16
- data/examples/demo/window.rb +10 -3
- data/examples/hw2.rb +17 -0
- data/examples/recipe/description.rb +170 -0
- data/examples/recipe/migrations/001_create_recipes.rb +13 -0
- data/examples/recipe/model.rb +27 -0
- data/examples/recipe/models/recipe.rb +18 -0
- data/examples/recipe/recipe_editor.rb +28 -0
- data/lib/wee.rb +1 -7
- data/lib/wee/component.rb +37 -74
- data/lib/wee/decoration.rb +16 -15
- data/lib/wee/html_brushes.rb +16 -17
- data/lib/wee/presenter.rb +2 -1
- data/lib/wee/response.rb +4 -4
- data/lib/wee/session.rb +2 -2
- data/lib/wee/state.rb +2 -2
- data/test/t.rb +67 -0
- data/wee.gemspec +1 -1
- metadata +157 -167
@@ -1,9 +1,12 @@
|
|
1
|
-
|
2
|
-
|
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
|
+
|
3
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
7
|
<head>
|
5
|
-
<title>Class: Wee::Delegate
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
8
|
+
<title>Class: Wee::Delegate</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
7
10
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
8
11
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
9
12
|
<script type="text/javascript">
|
@@ -22,7 +25,7 @@
|
|
22
25
|
return false;
|
23
26
|
|
24
27
|
elemStyle = elem.style;
|
25
|
-
|
28
|
+
|
26
29
|
if ( elemStyle.display != "block" ) {
|
27
30
|
elemStyle.display = "block"
|
28
31
|
} else {
|
@@ -31,10 +34,10 @@
|
|
31
34
|
|
32
35
|
return true;
|
33
36
|
}
|
34
|
-
|
37
|
+
|
35
38
|
// Make codeblocks hidden by default
|
36
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }
|
37
|
-
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
38
41
|
// ]]>
|
39
42
|
</script>
|
40
43
|
|
@@ -42,6 +45,7 @@
|
|
42
45
|
<body>
|
43
46
|
|
44
47
|
|
48
|
+
|
45
49
|
<div id="classHeader">
|
46
50
|
<table class="header-table">
|
47
51
|
<tr class="top-aligned-row">
|
@@ -51,75 +55,60 @@
|
|
51
55
|
<tr class="top-aligned-row">
|
52
56
|
<td><strong>In:</strong></td>
|
53
57
|
<td>
|
54
|
-
|
55
|
-
|
56
58
|
<a href="../../files/lib/wee/decoration_rb.html">
|
57
|
-
|
58
59
|
lib/wee/decoration.rb
|
59
|
-
|
60
60
|
</a>
|
61
|
-
|
62
|
-
|
63
61
|
<br />
|
64
|
-
|
65
62
|
</td>
|
66
63
|
</tr>
|
67
64
|
|
68
|
-
|
69
65
|
<tr class="top-aligned-row">
|
70
66
|
<td><strong>Parent:</strong></td>
|
71
67
|
<td>
|
72
|
-
|
73
68
|
<a href="Decoration.html">
|
74
|
-
|
75
|
-
Wee::Decoration
|
76
|
-
|
69
|
+
Decoration
|
77
70
|
</a>
|
78
|
-
|
79
71
|
</td>
|
80
72
|
</tr>
|
81
|
-
|
82
73
|
</table>
|
83
74
|
</div>
|
84
75
|
<!-- banner header -->
|
85
76
|
|
86
77
|
<div id="bodyContent">
|
87
78
|
|
79
|
+
|
80
|
+
|
88
81
|
<div id="contextContent">
|
89
82
|
|
90
83
|
<div id="description">
|
91
84
|
<p>
|
92
85
|
A <a href="Delegate.html">Wee::Delegate</a> breaks the decoration chain and
|
93
|
-
forwards the methods <a href="Delegate.html#
|
94
|
-
<a href="Delegate.html#
|
95
|
-
href="Delegate.html#
|
96
|
-
|
86
|
+
forwards the methods <a href="Delegate.html#M000212">process_callbacks</a>,
|
87
|
+
<a href="Delegate.html#M000213">render_on</a> and <a
|
88
|
+
href="Delegate.html#M000214">state</a> to the corresponding <b>chain</b>
|
89
|
+
method of it‘s <em>delegate</em> component (a <a
|
97
90
|
href="Component.html">Wee::Component</a>).
|
98
91
|
</p>
|
99
92
|
|
100
93
|
</div>
|
101
94
|
|
102
|
-
</div>
|
103
95
|
|
96
|
+
</div>
|
104
97
|
|
105
98
|
<div id="method-list">
|
106
99
|
<h3 class="section-bar">Methods</h3>
|
107
100
|
|
108
101
|
<div class="name-list">
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
<a href="#M000199">process_callbacks</a>
|
115
|
-
|
116
|
-
<a href="#M000200">render_on</a>
|
117
|
-
|
102
|
+
<a href="#M000211">new</a>
|
103
|
+
<a href="#M000212">process_callbacks</a>
|
104
|
+
<a href="#M000213">render_on</a>
|
105
|
+
<a href="#M000214">state</a>
|
118
106
|
</div>
|
119
107
|
</div>
|
120
108
|
|
121
109
|
</div>
|
122
110
|
|
111
|
+
|
123
112
|
<!-- if includes -->
|
124
113
|
|
125
114
|
<div id="section">
|
@@ -127,164 +116,132 @@ href="Component.html">Wee::Component</a>).
|
|
127
116
|
|
128
117
|
|
129
118
|
|
130
|
-
<!-- if method_list -->
|
131
119
|
|
132
|
-
|
120
|
+
|
133
121
|
|
134
|
-
<h3 class="section-bar">Public Class methods</h3>
|
135
122
|
|
123
|
+
<!-- if method_list -->
|
124
|
+
<div id="methods">
|
125
|
+
<h3 class="section-bar">Public Class methods</h3>
|
136
126
|
|
137
|
-
<div id="method-
|
138
|
-
<a name="
|
127
|
+
<div id="method-M000211" class="method-detail">
|
128
|
+
<a name="M000211"></a>
|
139
129
|
|
140
130
|
<div class="method-heading">
|
141
|
-
|
142
|
-
<a href="#M000198" class="method-signature">
|
143
|
-
|
131
|
+
<a href="#M000211" class="method-signature">
|
144
132
|
<span class="method-name">new</span><span class="method-args">(delegate)</span>
|
145
|
-
|
146
133
|
</a>
|
147
|
-
|
148
134
|
</div>
|
149
|
-
|
135
|
+
|
150
136
|
<div class="method-description">
|
151
|
-
|
152
137
|
<p><a class="source-toggle" href="#"
|
153
|
-
onclick="toggleCode('
|
154
|
-
<div class="method-source-code" id="
|
138
|
+
onclick="toggleCode('M000211-source');return false;">[Source]</a></p>
|
139
|
+
<div class="method-source-code" id="M000211-source">
|
155
140
|
<pre>
|
156
|
-
<span class="ruby-comment cmt"># File lib/wee/decoration.rb, line
|
141
|
+
<span class="ruby-comment cmt"># File lib/wee/decoration.rb, line 170</span>
|
157
142
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">delegate</span>)
|
158
143
|
<span class="ruby-ivar">@delegate</span> = <span class="ruby-identifier">delegate</span>
|
159
144
|
<span class="ruby-keyword kw">end</span>
|
160
145
|
</pre>
|
161
146
|
</div>
|
162
|
-
|
163
147
|
</div>
|
164
148
|
</div>
|
165
149
|
|
166
|
-
|
167
150
|
<h3 class="section-bar">Public Instance methods</h3>
|
168
151
|
|
169
|
-
|
170
|
-
|
171
|
-
<a name="M000201"></a>
|
152
|
+
<div id="method-M000212" class="method-detail">
|
153
|
+
<a name="M000212"></a>
|
172
154
|
|
173
155
|
<div class="method-heading">
|
174
|
-
|
175
|
-
<
|
176
|
-
|
177
|
-
<span class="method-name">backtrack</span><span class="method-args">(state)</span>
|
178
|
-
|
156
|
+
<a href="#M000212" class="method-signature">
|
157
|
+
<span class="method-name">process_callbacks</span><span class="method-args">(callbacks)</span>
|
179
158
|
</a>
|
180
|
-
|
181
159
|
</div>
|
182
|
-
|
160
|
+
|
183
161
|
<div class="method-description">
|
184
|
-
|
185
162
|
<p>
|
186
163
|
Forwards method to the corresponding top-level <b>chain</b> method of the
|
187
|
-
<em>delegate</em> component.
|
188
|
-
components, thus we follow the @next decoration (via super).
|
164
|
+
<em>delegate</em> component.
|
189
165
|
</p>
|
190
|
-
|
191
166
|
<p><a class="source-toggle" href="#"
|
192
|
-
onclick="toggleCode('
|
193
|
-
<div class="method-source-code" id="
|
167
|
+
onclick="toggleCode('M000212-source');return false;">[Source]</a></p>
|
168
|
+
<div class="method-source-code" id="M000212-source">
|
194
169
|
<pre>
|
195
|
-
<span class="ruby-comment cmt"># File lib/wee/decoration.rb, line
|
196
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
197
|
-
<span class="ruby-
|
198
|
-
<span class="ruby-ivar">@delegate</span>.<span class="ruby-identifier">decoration</span>.<span class="ruby-identifier">backtrack</span>(<span class="ruby-identifier">state</span>)
|
170
|
+
<span class="ruby-comment cmt"># File lib/wee/decoration.rb, line 178</span>
|
171
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_callbacks</span>(<span class="ruby-identifier">callbacks</span>)
|
172
|
+
<span class="ruby-ivar">@delegate</span>.<span class="ruby-identifier">decoration</span>.<span class="ruby-identifier">process_callbacks</span>(<span class="ruby-identifier">callbacks</span>)
|
199
173
|
<span class="ruby-keyword kw">end</span>
|
200
174
|
</pre>
|
201
175
|
</div>
|
202
|
-
|
203
176
|
</div>
|
204
177
|
</div>
|
205
178
|
|
206
|
-
|
207
|
-
|
208
|
-
<a name="M000199"></a>
|
179
|
+
<div id="method-M000213" class="method-detail">
|
180
|
+
<a name="M000213"></a>
|
209
181
|
|
210
182
|
<div class="method-heading">
|
211
|
-
|
212
|
-
<
|
213
|
-
|
214
|
-
<span class="method-name">process_callbacks</span><span class="method-args">(callbacks)</span>
|
215
|
-
|
183
|
+
<a href="#M000213" class="method-signature">
|
184
|
+
<span class="method-name">render_on</span><span class="method-args">(r)</span>
|
216
185
|
</a>
|
217
|
-
|
218
186
|
</div>
|
219
|
-
|
187
|
+
|
220
188
|
<div class="method-description">
|
221
|
-
|
222
189
|
<p>
|
223
190
|
Forwards method to the corresponding top-level <b>chain</b> method of the
|
224
191
|
<em>delegate</em> component.
|
225
192
|
</p>
|
226
|
-
|
227
193
|
<p><a class="source-toggle" href="#"
|
228
|
-
onclick="toggleCode('
|
229
|
-
<div class="method-source-code" id="
|
194
|
+
onclick="toggleCode('M000213-source');return false;">[Source]</a></p>
|
195
|
+
<div class="method-source-code" id="M000213-source">
|
230
196
|
<pre>
|
231
|
-
<span class="ruby-comment cmt"># File lib/wee/decoration.rb, line
|
232
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
233
|
-
<span class="ruby-ivar">@delegate</span>.<span class="ruby-identifier">decoration</span>.<span class="ruby-identifier">
|
197
|
+
<span class="ruby-comment cmt"># File lib/wee/decoration.rb, line 186</span>
|
198
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render_on</span>(<span class="ruby-identifier">r</span>)
|
199
|
+
<span class="ruby-ivar">@delegate</span>.<span class="ruby-identifier">decoration</span>.<span class="ruby-identifier">render_on</span>(<span class="ruby-identifier">r</span>)
|
234
200
|
<span class="ruby-keyword kw">end</span>
|
235
201
|
</pre>
|
236
202
|
</div>
|
237
|
-
|
238
203
|
</div>
|
239
204
|
</div>
|
240
205
|
|
241
|
-
|
242
|
-
|
243
|
-
<a name="M000200"></a>
|
206
|
+
<div id="method-M000214" class="method-detail">
|
207
|
+
<a name="M000214"></a>
|
244
208
|
|
245
209
|
<div class="method-heading">
|
246
|
-
|
247
|
-
<
|
248
|
-
|
249
|
-
<span class="method-name">render_on</span><span class="method-args">(r)</span>
|
250
|
-
|
210
|
+
<a href="#M000214" class="method-signature">
|
211
|
+
<span class="method-name">state</span><span class="method-args">(s)</span>
|
251
212
|
</a>
|
252
|
-
|
253
213
|
</div>
|
254
|
-
|
214
|
+
|
255
215
|
<div class="method-description">
|
256
|
-
|
257
216
|
<p>
|
258
217
|
Forwards method to the corresponding top-level <b>chain</b> method of the
|
259
|
-
<em>delegate</em> component.
|
218
|
+
<em>delegate</em> component. We also take snapshots of all non-visible
|
219
|
+
components, thus we follow the @next decoration (via super).
|
260
220
|
</p>
|
261
|
-
|
262
221
|
<p><a class="source-toggle" href="#"
|
263
|
-
onclick="toggleCode('
|
264
|
-
<div class="method-source-code" id="
|
222
|
+
onclick="toggleCode('M000214-source');return false;">[Source]</a></p>
|
223
|
+
<div class="method-source-code" id="M000214-source">
|
265
224
|
<pre>
|
266
|
-
<span class="ruby-comment cmt"># File lib/wee/decoration.rb, line
|
267
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
268
|
-
<span class="ruby-
|
225
|
+
<span class="ruby-comment cmt"># File lib/wee/decoration.rb, line 195</span>
|
226
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">state</span>(<span class="ruby-identifier">s</span>)
|
227
|
+
<span class="ruby-keyword kw">super</span>
|
228
|
+
<span class="ruby-ivar">@delegate</span>.<span class="ruby-identifier">decoration</span>.<span class="ruby-identifier">state</span>(<span class="ruby-identifier">s</span>)
|
269
229
|
<span class="ruby-keyword kw">end</span>
|
270
230
|
</pre>
|
271
231
|
</div>
|
272
|
-
|
273
232
|
</div>
|
274
233
|
</div>
|
275
234
|
|
276
235
|
|
277
|
-
|
278
236
|
</div>
|
279
237
|
|
280
238
|
|
281
|
-
|
282
|
-
|
283
239
|
</div>
|
284
240
|
|
241
|
+
|
285
242
|
<div id="validator-badges">
|
286
243
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
287
244
|
</div>
|
288
245
|
|
289
246
|
</body>
|
290
|
-
</html>
|
247
|
+
</html>
|
@@ -1,9 +1,12 @@
|
|
1
|
-
|
2
|
-
|
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
|
+
|
3
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
7
|
<head>
|
5
|
-
<title>Module: Wee::DupReplaceSnapshotMixin
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
8
|
+
<title>Module: Wee::DupReplaceSnapshotMixin</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
7
10
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
8
11
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
9
12
|
<script type="text/javascript">
|
@@ -22,7 +25,7 @@
|
|
22
25
|
return false;
|
23
26
|
|
24
27
|
elemStyle = elem.style;
|
25
|
-
|
28
|
+
|
26
29
|
if ( elemStyle.display != "block" ) {
|
27
30
|
elemStyle.display = "block"
|
28
31
|
} else {
|
@@ -31,10 +34,10 @@
|
|
31
34
|
|
32
35
|
return true;
|
33
36
|
}
|
34
|
-
|
37
|
+
|
35
38
|
// Make codeblocks hidden by default
|
36
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }
|
37
|
-
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
38
41
|
// ]]>
|
39
42
|
</script>
|
40
43
|
|
@@ -42,6 +45,7 @@
|
|
42
45
|
<body>
|
43
46
|
|
44
47
|
|
48
|
+
|
45
49
|
<div id="classHeader">
|
46
50
|
<table class="header-table">
|
47
51
|
<tr class="top-aligned-row">
|
@@ -51,46 +55,39 @@
|
|
51
55
|
<tr class="top-aligned-row">
|
52
56
|
<td><strong>In:</strong></td>
|
53
57
|
<td>
|
54
|
-
|
55
|
-
|
56
58
|
<a href="../../files/lib/wee/state_rb.html">
|
57
|
-
|
58
59
|
lib/wee/state.rb
|
59
|
-
|
60
60
|
</a>
|
61
|
-
|
62
|
-
|
63
61
|
<br />
|
64
|
-
|
65
62
|
</td>
|
66
63
|
</tr>
|
67
64
|
|
68
|
-
|
69
65
|
</table>
|
70
66
|
</div>
|
71
67
|
<!-- banner header -->
|
72
68
|
|
73
69
|
<div id="bodyContent">
|
74
70
|
|
71
|
+
|
72
|
+
|
75
73
|
<div id="contextContent">
|
76
74
|
|
77
|
-
</div>
|
78
75
|
|
79
76
|
|
77
|
+
</div>
|
78
|
+
|
80
79
|
<div id="method-list">
|
81
80
|
<h3 class="section-bar">Methods</h3>
|
82
81
|
|
83
82
|
<div class="name-list">
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
<a href="#M000014">take_snapshot</a>
|
88
|
-
|
83
|
+
<a href="#M000012">restore_snapshot</a>
|
84
|
+
<a href="#M000011">take_snapshot</a>
|
89
85
|
</div>
|
90
86
|
</div>
|
91
87
|
|
92
88
|
</div>
|
93
89
|
|
90
|
+
|
94
91
|
<!-- if includes -->
|
95
92
|
|
96
93
|
<div id="section">
|
@@ -98,31 +95,27 @@
|
|
98
95
|
|
99
96
|
|
100
97
|
|
101
|
-
<!-- if method_list -->
|
102
98
|
|
103
|
-
|
99
|
+
|
104
100
|
|
105
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
106
101
|
|
102
|
+
<!-- if method_list -->
|
103
|
+
<div id="methods">
|
104
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
107
105
|
|
108
|
-
<div id="method-
|
109
|
-
<a name="
|
106
|
+
<div id="method-M000012" class="method-detail">
|
107
|
+
<a name="M000012"></a>
|
110
108
|
|
111
109
|
<div class="method-heading">
|
112
|
-
|
113
|
-
<a href="#M000015" class="method-signature">
|
114
|
-
|
110
|
+
<a href="#M000012" class="method-signature">
|
115
111
|
<span class="method-name">restore_snapshot</span><span class="method-args">(snap)</span>
|
116
|
-
|
117
112
|
</a>
|
118
|
-
|
119
113
|
</div>
|
120
|
-
|
114
|
+
|
121
115
|
<div class="method-description">
|
122
|
-
|
123
116
|
<p><a class="source-toggle" href="#"
|
124
|
-
onclick="toggleCode('
|
125
|
-
<div class="method-source-code" id="
|
117
|
+
onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
|
118
|
+
<div class="method-source-code" id="M000012-source">
|
126
119
|
<pre>
|
127
120
|
<span class="ruby-comment cmt"># File lib/wee/state.rb, line 43</span>
|
128
121
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restore_snapshot</span>(<span class="ruby-identifier">snap</span>)
|
@@ -130,29 +123,22 @@
|
|
130
123
|
<span class="ruby-keyword kw">end</span>
|
131
124
|
</pre>
|
132
125
|
</div>
|
133
|
-
|
134
126
|
</div>
|
135
127
|
</div>
|
136
128
|
|
137
|
-
|
138
|
-
|
139
|
-
<a name="M000014"></a>
|
129
|
+
<div id="method-M000011" class="method-detail">
|
130
|
+
<a name="M000011"></a>
|
140
131
|
|
141
132
|
<div class="method-heading">
|
142
|
-
|
143
|
-
<a href="#M000014" class="method-signature">
|
144
|
-
|
133
|
+
<a href="#M000011" class="method-signature">
|
145
134
|
<span class="method-name">take_snapshot</span><span class="method-args">()</span>
|
146
|
-
|
147
135
|
</a>
|
148
|
-
|
149
136
|
</div>
|
150
|
-
|
137
|
+
|
151
138
|
<div class="method-description">
|
152
|
-
|
153
139
|
<p><a class="source-toggle" href="#"
|
154
|
-
onclick="toggleCode('
|
155
|
-
<div class="method-source-code" id="
|
140
|
+
onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
|
141
|
+
<div class="method-source-code" id="M000011-source">
|
156
142
|
<pre>
|
157
143
|
<span class="ruby-comment cmt"># File lib/wee/state.rb, line 39</span>
|
158
144
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">take_snapshot</span>
|
@@ -160,22 +146,19 @@
|
|
160
146
|
<span class="ruby-keyword kw">end</span>
|
161
147
|
</pre>
|
162
148
|
</div>
|
163
|
-
|
164
149
|
</div>
|
165
150
|
</div>
|
166
151
|
|
167
152
|
|
168
|
-
|
169
153
|
</div>
|
170
154
|
|
171
155
|
|
172
|
-
|
173
|
-
|
174
156
|
</div>
|
175
157
|
|
158
|
+
|
176
159
|
<div id="validator-badges">
|
177
160
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
178
161
|
</div>
|
179
162
|
|
180
163
|
</body>
|
181
|
-
</html>
|
164
|
+
</html>
|