wee 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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::ErrorResponse
|
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
|
8
|
+
<title>Class: Wee::ErrorResponse</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,66 +55,52 @@
|
|
|
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/response_rb.html">
|
|
57
|
-
|
|
58
59
|
lib/wee/response.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="Response.html">
|
|
74
|
-
|
|
75
|
-
Wee::Response
|
|
76
|
-
|
|
69
|
+
Response
|
|
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
|
-
</div>
|
|
91
83
|
|
|
92
84
|
|
|
85
|
+
</div>
|
|
86
|
+
|
|
93
87
|
<div id="method-list">
|
|
94
88
|
<h3 class="section-bar">Methods</h3>
|
|
95
89
|
|
|
96
90
|
<div class="name-list">
|
|
97
|
-
|
|
98
|
-
<a href="#M000115">new</a>
|
|
99
|
-
|
|
91
|
+
<a href="#M000021">new</a>
|
|
100
92
|
</div>
|
|
101
93
|
</div>
|
|
102
94
|
|
|
103
95
|
</div>
|
|
104
96
|
|
|
105
|
-
<!-- if includes -->
|
|
106
97
|
|
|
98
|
+
<!-- if includes -->
|
|
107
99
|
<div id="includes">
|
|
108
100
|
<h3 class="section-bar">Included Modules</h3>
|
|
109
101
|
|
|
110
102
|
<div id="includes-list">
|
|
111
|
-
|
|
112
103
|
<span class="include-name">Rack::Utils</span>
|
|
113
|
-
|
|
114
104
|
</div>
|
|
115
105
|
</div>
|
|
116
106
|
|
|
@@ -119,31 +109,27 @@
|
|
|
119
109
|
|
|
120
110
|
|
|
121
111
|
|
|
122
|
-
<!-- if method_list -->
|
|
123
112
|
|
|
124
|
-
|
|
113
|
+
|
|
125
114
|
|
|
126
|
-
<h3 class="section-bar">Public Class methods</h3>
|
|
127
115
|
|
|
116
|
+
<!-- if method_list -->
|
|
117
|
+
<div id="methods">
|
|
118
|
+
<h3 class="section-bar">Public Class methods</h3>
|
|
128
119
|
|
|
129
|
-
<div id="method-
|
|
130
|
-
<a name="
|
|
120
|
+
<div id="method-M000021" class="method-detail">
|
|
121
|
+
<a name="M000021"></a>
|
|
131
122
|
|
|
132
123
|
<div class="method-heading">
|
|
133
|
-
|
|
134
|
-
<a href="#M000115" class="method-signature">
|
|
135
|
-
|
|
124
|
+
<a href="#M000021" class="method-signature">
|
|
136
125
|
<span class="method-name">new</span><span class="method-args">(exception)</span>
|
|
137
|
-
|
|
138
126
|
</a>
|
|
139
|
-
|
|
140
127
|
</div>
|
|
141
|
-
|
|
128
|
+
|
|
142
129
|
<div class="method-description">
|
|
143
|
-
|
|
144
130
|
<p><a class="source-toggle" href="#"
|
|
145
|
-
onclick="toggleCode('
|
|
146
|
-
<div class="method-source-code" id="
|
|
131
|
+
onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
|
|
132
|
+
<div class="method-source-code" id="M000021-source">
|
|
147
133
|
<pre>
|
|
148
134
|
<span class="ruby-comment cmt"># File lib/wee/response.rb, line 49</span>
|
|
149
135
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">exception</span>)
|
|
@@ -156,22 +142,19 @@
|
|
|
156
142
|
<span class="ruby-keyword kw">end</span>
|
|
157
143
|
</pre>
|
|
158
144
|
</div>
|
|
159
|
-
|
|
160
145
|
</div>
|
|
161
146
|
</div>
|
|
162
147
|
|
|
163
148
|
|
|
164
|
-
|
|
165
149
|
</div>
|
|
166
150
|
|
|
167
151
|
|
|
168
|
-
|
|
169
|
-
|
|
170
152
|
</div>
|
|
171
153
|
|
|
154
|
+
|
|
172
155
|
<div id="validator-badges">
|
|
173
156
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
174
157
|
</div>
|
|
175
158
|
|
|
176
159
|
</body>
|
|
177
|
-
</html>
|
|
160
|
+
</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>Class: Wee::FormDecoration
|
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
|
8
|
+
<title>Class: Wee::FormDecoration</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,57 +55,46 @@
|
|
|
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="WrapperDecoration.html">
|
|
74
|
-
|
|
75
|
-
Wee::WrapperDecoration
|
|
76
|
-
|
|
69
|
+
WrapperDecoration
|
|
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
|
-
</div>
|
|
91
83
|
|
|
92
84
|
|
|
85
|
+
</div>
|
|
86
|
+
|
|
93
87
|
<div id="method-list">
|
|
94
88
|
<h3 class="section-bar">Methods</h3>
|
|
95
89
|
|
|
96
90
|
<div class="name-list">
|
|
97
|
-
|
|
98
|
-
<a href="#M000204">render</a>
|
|
99
|
-
|
|
91
|
+
<a href="#M000026">render</a>
|
|
100
92
|
</div>
|
|
101
93
|
</div>
|
|
102
94
|
|
|
103
95
|
</div>
|
|
104
96
|
|
|
97
|
+
|
|
105
98
|
<!-- if includes -->
|
|
106
99
|
|
|
107
100
|
<div id="section">
|
|
@@ -109,54 +102,47 @@
|
|
|
109
102
|
|
|
110
103
|
|
|
111
104
|
|
|
112
|
-
<!-- if method_list -->
|
|
113
105
|
|
|
114
|
-
|
|
106
|
+
|
|
115
107
|
|
|
116
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
|
117
108
|
|
|
109
|
+
<!-- if method_list -->
|
|
110
|
+
<div id="methods">
|
|
111
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
|
118
112
|
|
|
119
|
-
<div id="method-
|
|
120
|
-
<a name="
|
|
113
|
+
<div id="method-M000026" class="method-detail">
|
|
114
|
+
<a name="M000026"></a>
|
|
121
115
|
|
|
122
116
|
<div class="method-heading">
|
|
123
|
-
|
|
124
|
-
<a href="#M000204" class="method-signature">
|
|
125
|
-
|
|
117
|
+
<a href="#M000026" class="method-signature">
|
|
126
118
|
<span class="method-name">render</span><span class="method-args">(r)</span>
|
|
127
|
-
|
|
128
119
|
</a>
|
|
129
|
-
|
|
130
120
|
</div>
|
|
131
|
-
|
|
121
|
+
|
|
132
122
|
<div class="method-description">
|
|
133
|
-
|
|
134
123
|
<p><a class="source-toggle" href="#"
|
|
135
|
-
onclick="toggleCode('
|
|
136
|
-
<div class="method-source-code" id="
|
|
124
|
+
onclick="toggleCode('M000026-source');return false;">[Source]</a></p>
|
|
125
|
+
<div class="method-source-code" id="M000026-source">
|
|
137
126
|
<pre>
|
|
138
|
-
<span class="ruby-comment cmt"># File lib/wee/decoration.rb, line
|
|
127
|
+
<span class="ruby-comment cmt"># File lib/wee/decoration.rb, line 222</span>
|
|
139
128
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>(<span class="ruby-identifier">r</span>)
|
|
140
129
|
<span class="ruby-identifier">r</span>.<span class="ruby-identifier">form</span> { <span class="ruby-identifier">render_inner</span>(<span class="ruby-identifier">r</span>) }
|
|
141
130
|
<span class="ruby-keyword kw">end</span>
|
|
142
131
|
</pre>
|
|
143
132
|
</div>
|
|
144
|
-
|
|
145
133
|
</div>
|
|
146
134
|
</div>
|
|
147
135
|
|
|
148
136
|
|
|
149
|
-
|
|
150
137
|
</div>
|
|
151
138
|
|
|
152
139
|
|
|
153
|
-
|
|
154
|
-
|
|
155
140
|
</div>
|
|
156
141
|
|
|
142
|
+
|
|
157
143
|
<div id="validator-badges">
|
|
158
144
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
159
145
|
</div>
|
|
160
146
|
|
|
161
147
|
</body>
|
|
162
|
-
</html>
|
|
148
|
+
</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>Class: Wee::GenericResponse
|
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
|
8
|
+
<title>Class: Wee::GenericResponse</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,113 +55,92 @@
|
|
|
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/response_rb.html">
|
|
57
|
-
|
|
58
59
|
lib/wee/response.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="Response.html">
|
|
74
|
-
|
|
75
|
-
Wee::Response
|
|
76
|
-
|
|
69
|
+
Response
|
|
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
|
-
</div>
|
|
91
83
|
|
|
92
84
|
|
|
85
|
+
</div>
|
|
86
|
+
|
|
93
87
|
<div id="method-list">
|
|
94
88
|
<h3 class="section-bar">Methods</h3>
|
|
95
89
|
|
|
96
90
|
<div class="name-list">
|
|
97
|
-
|
|
98
|
-
<a href="#M000112">new</a>
|
|
99
|
-
|
|
91
|
+
<a href="#M000022">new</a>
|
|
100
92
|
</div>
|
|
101
93
|
</div>
|
|
102
94
|
|
|
103
95
|
</div>
|
|
104
96
|
|
|
97
|
+
|
|
105
98
|
<!-- if includes -->
|
|
106
99
|
|
|
107
100
|
<div id="section">
|
|
108
101
|
|
|
102
|
+
|
|
109
103
|
<div id="constants-list">
|
|
110
104
|
<h3 class="section-bar">Constants</h3>
|
|
111
105
|
|
|
112
106
|
<div class="name-list">
|
|
113
107
|
<table summary="Constants">
|
|
114
|
-
|
|
115
108
|
<tr class="top-aligned-row context-row">
|
|
116
109
|
<td class="context-item-name">EXPIRE_OFFSET</td>
|
|
117
110
|
<td>=</td>
|
|
118
111
|
<td class="context-item-value">3600*24*365*20</td>
|
|
119
|
-
|
|
120
112
|
</tr>
|
|
121
|
-
|
|
122
113
|
<tr class="top-aligned-row context-row">
|
|
123
114
|
<td class="context-item-name">EXPIRES_HEADER</td>
|
|
124
115
|
<td>=</td>
|
|
125
116
|
<td class="context-item-value">'Expires'.freeze</td>
|
|
126
|
-
|
|
127
117
|
</tr>
|
|
128
|
-
|
|
129
118
|
</table>
|
|
130
119
|
</div>
|
|
131
120
|
</div>
|
|
132
121
|
|
|
133
122
|
|
|
134
123
|
|
|
124
|
+
|
|
135
125
|
|
|
136
|
-
<!-- if method_list -->
|
|
137
126
|
|
|
127
|
+
<!-- if method_list -->
|
|
138
128
|
<div id="methods">
|
|
139
|
-
|
|
140
129
|
<h3 class="section-bar">Public Class methods</h3>
|
|
141
130
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
<a name="M000112"></a>
|
|
131
|
+
<div id="method-M000022" class="method-detail">
|
|
132
|
+
<a name="M000022"></a>
|
|
145
133
|
|
|
146
134
|
<div class="method-heading">
|
|
147
|
-
|
|
148
|
-
<a href="#M000112" class="method-signature">
|
|
149
|
-
|
|
135
|
+
<a href="#M000022" class="method-signature">
|
|
150
136
|
<span class="method-name">new</span><span class="method-args">(*args)</span>
|
|
151
|
-
|
|
152
137
|
</a>
|
|
153
|
-
|
|
154
138
|
</div>
|
|
155
|
-
|
|
139
|
+
|
|
156
140
|
<div class="method-description">
|
|
157
|
-
|
|
158
141
|
<p><a class="source-toggle" href="#"
|
|
159
|
-
onclick="toggleCode('
|
|
160
|
-
<div class="method-source-code" id="
|
|
142
|
+
onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
|
|
143
|
+
<div class="method-source-code" id="M000022-source">
|
|
161
144
|
<pre>
|
|
162
145
|
<span class="ruby-comment cmt"># File lib/wee/response.rb, line 14</span>
|
|
163
146
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
|
@@ -166,22 +149,19 @@
|
|
|
166
149
|
<span class="ruby-keyword kw">end</span>
|
|
167
150
|
</pre>
|
|
168
151
|
</div>
|
|
169
|
-
|
|
170
152
|
</div>
|
|
171
153
|
</div>
|
|
172
154
|
|
|
173
155
|
|
|
174
|
-
|
|
175
156
|
</div>
|
|
176
157
|
|
|
177
158
|
|
|
178
|
-
|
|
179
|
-
|
|
180
159
|
</div>
|
|
181
160
|
|
|
161
|
+
|
|
182
162
|
<div id="validator-badges">
|
|
183
163
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
184
164
|
</div>
|
|
185
165
|
|
|
186
166
|
</body>
|
|
187
|
-
</html>
|
|
167
|
+
</html>
|