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::Brush::JavascriptTag
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
8
|
+
<title>Class: Wee::Brush::JavascriptTag</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,77 +55,64 @@
|
|
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/html_brushes_rb.html">
|
57
|
-
|
58
59
|
lib/wee/html_brushes.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
|
Brush::GenericTagBrush
|
74
|
-
|
75
69
|
</td>
|
76
70
|
</tr>
|
77
|
-
|
78
71
|
</table>
|
79
72
|
</div>
|
80
73
|
<!-- banner header -->
|
81
74
|
|
82
75
|
<div id="bodyContent">
|
83
76
|
|
77
|
+
|
78
|
+
|
84
79
|
<div id="contextContent">
|
85
80
|
|
86
|
-
</div>
|
87
81
|
|
88
82
|
|
83
|
+
</div>
|
84
|
+
|
89
85
|
<div id="method-list">
|
90
86
|
<h3 class="section-bar">Methods</h3>
|
91
87
|
|
92
88
|
<div class="name-list">
|
93
|
-
|
94
|
-
<a href="#M000136">new</a>
|
95
|
-
|
89
|
+
<a href="#M000180">new</a>
|
96
90
|
</div>
|
97
91
|
</div>
|
98
92
|
|
99
93
|
</div>
|
100
94
|
|
95
|
+
|
101
96
|
<!-- if includes -->
|
102
97
|
|
103
98
|
<div id="section">
|
104
99
|
|
100
|
+
|
105
101
|
<div id="constants-list">
|
106
102
|
<h3 class="section-bar">Constants</h3>
|
107
103
|
|
108
104
|
<div class="name-list">
|
109
105
|
<table summary="Constants">
|
110
|
-
|
111
106
|
<tr class="top-aligned-row context-row">
|
112
107
|
<td class="context-item-name">HTML_TAG</td>
|
113
108
|
<td>=</td>
|
114
109
|
<td class="context-item-value">'script'.freeze</td>
|
115
|
-
|
116
110
|
</tr>
|
117
|
-
|
118
111
|
<tr class="top-aligned-row context-row">
|
119
112
|
<td class="context-item-name">HTML_TYPE</td>
|
120
113
|
<td>=</td>
|
121
114
|
<td class="context-item-value">'text/javascript'.freeze</td>
|
122
|
-
|
123
115
|
</tr>
|
124
|
-
|
125
116
|
</table>
|
126
117
|
</div>
|
127
118
|
</div>
|
@@ -133,53 +124,39 @@
|
|
133
124
|
|
134
125
|
<div class="name-list">
|
135
126
|
<table>
|
136
|
-
|
137
127
|
<tr class="top-aligned-row context-row">
|
138
128
|
<td class="context-item-name">src</td>
|
139
|
-
|
140
129
|
<td class="context-item-value"> [HtmlAttribute] </td>
|
141
|
-
|
142
130
|
<td class="context-item-desc"></td>
|
143
131
|
</tr>
|
144
|
-
|
145
132
|
<tr class="top-aligned-row context-row">
|
146
133
|
<td class="context-item-name">type</td>
|
147
|
-
|
148
134
|
<td class="context-item-value"> [HtmlAttribute] </td>
|
149
|
-
|
150
135
|
<td class="context-item-desc"></td>
|
151
136
|
</tr>
|
152
|
-
|
153
137
|
</table>
|
154
138
|
</div>
|
155
139
|
</div>
|
140
|
+
|
156
141
|
|
157
142
|
|
158
143
|
<!-- if method_list -->
|
159
|
-
|
160
144
|
<div id="methods">
|
161
|
-
|
162
145
|
<h3 class="section-bar">Public Class methods</h3>
|
163
146
|
|
164
|
-
|
165
|
-
|
166
|
-
<a name="M000136"></a>
|
147
|
+
<div id="method-M000180" class="method-detail">
|
148
|
+
<a name="M000180"></a>
|
167
149
|
|
168
150
|
<div class="method-heading">
|
169
|
-
|
170
|
-
<a href="#M000136" class="method-signature">
|
171
|
-
|
151
|
+
<a href="#M000180" class="method-signature">
|
172
152
|
<span class="method-name">new</span><span class="method-args">()</span>
|
173
|
-
|
174
153
|
</a>
|
175
|
-
|
176
154
|
</div>
|
177
|
-
|
155
|
+
|
178
156
|
<div class="method-description">
|
179
|
-
|
180
157
|
<p><a class="source-toggle" href="#"
|
181
|
-
onclick="toggleCode('
|
182
|
-
<div class="method-source-code" id="
|
158
|
+
onclick="toggleCode('M000180-source');return false;">[Source]</a></p>
|
159
|
+
<div class="method-source-code" id="M000180-source">
|
183
160
|
<pre>
|
184
161
|
<span class="ruby-comment cmt"># File lib/wee/html_brushes.rb, line 182</span>
|
185
162
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
@@ -188,22 +165,19 @@
|
|
188
165
|
<span class="ruby-keyword kw">end</span>
|
189
166
|
</pre>
|
190
167
|
</div>
|
191
|
-
|
192
168
|
</div>
|
193
169
|
</div>
|
194
170
|
|
195
171
|
|
196
|
-
|
197
172
|
</div>
|
198
173
|
|
199
174
|
|
200
|
-
|
201
|
-
|
202
175
|
</div>
|
203
176
|
|
177
|
+
|
204
178
|
<div id="validator-badges">
|
205
179
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
206
180
|
</div>
|
207
181
|
|
208
182
|
</body>
|
209
|
-
</html>
|
183
|
+
</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::Brush::Page
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
8
|
+
<title>Class: Wee::Brush::Page</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,162 +55,127 @@
|
|
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/html_brushes_rb.html">
|
57
|
-
|
58
59
|
lib/wee/html_brushes.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
|
-
<a href="../Brush.html">
|
74
|
-
|
75
|
-
Wee::Brush
|
76
|
-
|
77
|
-
</a>
|
78
|
-
|
68
|
+
Brush
|
79
69
|
</td>
|
80
70
|
</tr>
|
81
|
-
|
82
71
|
</table>
|
83
72
|
</div>
|
84
73
|
<!-- banner header -->
|
85
74
|
|
86
75
|
<div id="bodyContent">
|
87
76
|
|
77
|
+
|
78
|
+
|
88
79
|
<div id="contextContent">
|
89
80
|
|
90
|
-
</div>
|
91
81
|
|
92
82
|
|
83
|
+
</div>
|
84
|
+
|
93
85
|
<div id="method-list">
|
94
86
|
<h3 class="section-bar">Methods</h3>
|
95
87
|
|
96
88
|
<div class="name-list">
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
<a href="#M000183">with</a>
|
101
|
-
|
89
|
+
<a href="#M000171">title</a>
|
90
|
+
<a href="#M000170">with</a>
|
102
91
|
</div>
|
103
92
|
</div>
|
104
93
|
|
105
94
|
</div>
|
106
95
|
|
96
|
+
|
107
97
|
<!-- if includes -->
|
108
98
|
|
109
99
|
<div id="section">
|
110
100
|
|
101
|
+
|
111
102
|
<div id="constants-list">
|
112
103
|
<h3 class="section-bar">Constants</h3>
|
113
104
|
|
114
105
|
<div class="name-list">
|
115
106
|
<table summary="Constants">
|
116
|
-
|
117
107
|
<tr class="top-aligned-row context-row">
|
118
108
|
<td class="context-item-name">HTML_HTML</td>
|
119
109
|
<td>=</td>
|
120
110
|
<td class="context-item-value">'html'.freeze</td>
|
121
|
-
|
122
111
|
</tr>
|
123
|
-
|
124
112
|
<tr class="top-aligned-row context-row">
|
125
113
|
<td class="context-item-name">HTML_HEAD</td>
|
126
114
|
<td>=</td>
|
127
115
|
<td class="context-item-value">'head'.freeze</td>
|
128
|
-
|
129
116
|
</tr>
|
130
|
-
|
131
117
|
<tr class="top-aligned-row context-row">
|
132
118
|
<td class="context-item-name">HTML_TITLE</td>
|
133
119
|
<td>=</td>
|
134
120
|
<td class="context-item-value">'title'.freeze</td>
|
135
|
-
|
136
121
|
</tr>
|
137
|
-
|
138
122
|
<tr class="top-aligned-row context-row">
|
139
123
|
<td class="context-item-name">HTML_BODY</td>
|
140
124
|
<td>=</td>
|
141
125
|
<td class="context-item-value">'body'.freeze</td>
|
142
|
-
|
143
126
|
</tr>
|
144
|
-
|
145
127
|
</table>
|
146
128
|
</div>
|
147
129
|
</div>
|
148
130
|
|
149
131
|
|
150
132
|
|
133
|
+
|
151
134
|
|
152
|
-
<!-- if method_list -->
|
153
135
|
|
136
|
+
<!-- if method_list -->
|
154
137
|
<div id="methods">
|
155
|
-
|
156
138
|
<h3 class="section-bar">Public Instance methods</h3>
|
157
139
|
|
158
|
-
|
159
|
-
|
160
|
-
<a name="M000184"></a>
|
140
|
+
<div id="method-M000171" class="method-detail">
|
141
|
+
<a name="M000171"></a>
|
161
142
|
|
162
143
|
<div class="method-heading">
|
163
|
-
|
164
|
-
<a href="#M000184" class="method-signature">
|
165
|
-
|
144
|
+
<a href="#M000171" class="method-signature">
|
166
145
|
<span class="method-name">title</span><span class="method-args">(t)</span>
|
167
|
-
|
168
146
|
</a>
|
169
|
-
|
170
147
|
</div>
|
171
|
-
|
148
|
+
|
172
149
|
<div class="method-description">
|
173
|
-
|
174
150
|
<p><a class="source-toggle" href="#"
|
175
|
-
onclick="toggleCode('
|
176
|
-
<div class="method-source-code" id="
|
151
|
+
onclick="toggleCode('M000171-source');return false;">[Source]</a></p>
|
152
|
+
<div class="method-source-code" id="M000171-source">
|
177
153
|
<pre>
|
178
|
-
<span class="ruby-comment cmt"># File lib/wee/html_brushes.rb, line
|
154
|
+
<span class="ruby-comment cmt"># File lib/wee/html_brushes.rb, line 718</span>
|
179
155
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">title</span>(<span class="ruby-identifier">t</span>)
|
180
156
|
<span class="ruby-ivar">@title</span> = <span class="ruby-identifier">t</span>
|
181
157
|
<span class="ruby-keyword kw">self</span>
|
182
158
|
<span class="ruby-keyword kw">end</span>
|
183
159
|
</pre>
|
184
160
|
</div>
|
185
|
-
|
186
161
|
</div>
|
187
162
|
</div>
|
188
163
|
|
189
|
-
|
190
|
-
|
191
|
-
<a name="M000183"></a>
|
164
|
+
<div id="method-M000170" class="method-detail">
|
165
|
+
<a name="M000170"></a>
|
192
166
|
|
193
167
|
<div class="method-heading">
|
194
|
-
|
195
|
-
<a href="#M000183" class="method-signature">
|
196
|
-
|
168
|
+
<a href="#M000170" class="method-signature">
|
197
169
|
<span class="method-name">with</span><span class="method-args">(text=nil, &block)</span>
|
198
|
-
|
199
170
|
</a>
|
200
|
-
|
201
171
|
</div>
|
202
|
-
|
172
|
+
|
203
173
|
<div class="method-description">
|
204
|
-
|
205
174
|
<p><a class="source-toggle" href="#"
|
206
|
-
onclick="toggleCode('
|
207
|
-
<div class="method-source-code" id="
|
175
|
+
onclick="toggleCode('M000170-source');return false;">[Source]</a></p>
|
176
|
+
<div class="method-source-code" id="M000170-source">
|
208
177
|
<pre>
|
209
|
-
<span class="ruby-comment cmt"># File lib/wee/html_brushes.rb, line
|
178
|
+
<span class="ruby-comment cmt"># File lib/wee/html_brushes.rb, line 692</span>
|
210
179
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with</span>(<span class="ruby-identifier">text</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
211
180
|
<span class="ruby-ivar">@document</span>.<span class="ruby-identifier">start_tag</span>(<span class="ruby-constant">HTML_HTML</span>)
|
212
181
|
<span class="ruby-ivar">@document</span>.<span class="ruby-identifier">start_tag</span>(<span class="ruby-constant">HTML_HEAD</span>)
|
@@ -234,22 +203,19 @@
|
|
234
203
|
<span class="ruby-keyword kw">end</span>
|
235
204
|
</pre>
|
236
205
|
</div>
|
237
|
-
|
238
206
|
</div>
|
239
207
|
</div>
|
240
208
|
|
241
209
|
|
242
|
-
|
243
210
|
</div>
|
244
211
|
|
245
212
|
|
246
|
-
|
247
|
-
|
248
213
|
</div>
|
249
214
|
|
215
|
+
|
250
216
|
<div id="validator-badges">
|
251
217
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
252
218
|
</div>
|
253
219
|
|
254
220
|
</body>
|
255
|
-
</html>
|
221
|
+
</html>
|