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::State::Snapshot
|
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
|
8
|
+
<title>Class: Wee::State::Snapshot</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,43 +55,37 @@
|
|
|
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
|
<tr class="top-aligned-row">
|
|
70
66
|
<td><strong>Parent:</strong></td>
|
|
71
67
|
<td>
|
|
72
|
-
|
|
73
68
|
Struct.new(:object, :snapshot);
|
|
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
|
|
|
81
|
+
|
|
82
|
+
|
|
86
83
|
</div>
|
|
87
84
|
|
|
88
85
|
|
|
89
86
|
</div>
|
|
90
87
|
|
|
88
|
+
|
|
91
89
|
<!-- if includes -->
|
|
92
90
|
|
|
93
91
|
<div id="section">
|
|
@@ -95,16 +93,19 @@
|
|
|
95
93
|
|
|
96
94
|
|
|
97
95
|
|
|
98
|
-
<!-- if method_list -->
|
|
99
96
|
|
|
97
|
+
|
|
100
98
|
|
|
101
99
|
|
|
100
|
+
<!-- if method_list -->
|
|
101
|
+
|
|
102
102
|
|
|
103
103
|
</div>
|
|
104
104
|
|
|
105
|
+
|
|
105
106
|
<div id="validator-badges">
|
|
106
107
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
107
108
|
</div>
|
|
108
109
|
|
|
109
110
|
</body>
|
|
110
|
-
</html>
|
|
111
|
+
</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::State::SnapshotIVars
|
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
|
8
|
+
<title>Class: Wee::State::SnapshotIVars</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,43 +55,37 @@
|
|
|
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
|
<tr class="top-aligned-row">
|
|
70
66
|
<td><strong>Parent:</strong></td>
|
|
71
67
|
<td>
|
|
72
|
-
|
|
73
68
|
Struct.new(:object, :ivars);
|
|
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
|
|
|
81
|
+
|
|
82
|
+
|
|
86
83
|
</div>
|
|
87
84
|
|
|
88
85
|
|
|
89
86
|
</div>
|
|
90
87
|
|
|
88
|
+
|
|
91
89
|
<!-- if includes -->
|
|
92
90
|
|
|
93
91
|
<div id="section">
|
|
@@ -95,16 +93,19 @@
|
|
|
95
93
|
|
|
96
94
|
|
|
97
95
|
|
|
98
|
-
<!-- if method_list -->
|
|
99
96
|
|
|
97
|
+
|
|
100
98
|
|
|
101
99
|
|
|
100
|
+
<!-- if method_list -->
|
|
101
|
+
|
|
102
102
|
|
|
103
103
|
</div>
|
|
104
104
|
|
|
105
|
+
|
|
105
106
|
<div id="validator-badges">
|
|
106
107
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
107
108
|
</div>
|
|
108
109
|
|
|
109
110
|
</body>
|
|
110
|
-
</html>
|
|
111
|
+
</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::StructSnapshotMixin
|
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
|
8
|
+
<title>Module: Wee::StructSnapshotMixin</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="#M000018">take_snapshot</a>
|
|
88
|
-
|
|
83
|
+
<a href="#M000020">restore_snapshot</a>
|
|
84
|
+
<a href="#M000019">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
|
|
|
101
|
+
|
|
102
|
+
<!-- if method_list -->
|
|
103
|
+
<div id="methods">
|
|
105
104
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
106
105
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
<a name="M000019"></a>
|
|
106
|
+
<div id="method-M000020" class="method-detail">
|
|
107
|
+
<a name="M000020"></a>
|
|
110
108
|
|
|
111
109
|
<div class="method-heading">
|
|
112
|
-
|
|
113
|
-
<a href="#M000019" class="method-signature">
|
|
114
|
-
|
|
110
|
+
<a href="#M000020" 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('M000020-source');return false;">[Source]</a></p>
|
|
118
|
+
<div class="method-source-code" id="M000020-source">
|
|
126
119
|
<pre>
|
|
127
120
|
<span class="ruby-comment cmt"># File lib/wee/state.rb, line 71</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="M000018"></a>
|
|
129
|
+
<div id="method-M000019" class="method-detail">
|
|
130
|
+
<a name="M000019"></a>
|
|
140
131
|
|
|
141
132
|
<div class="method-heading">
|
|
142
|
-
|
|
143
|
-
<a href="#M000018" class="method-signature">
|
|
144
|
-
|
|
133
|
+
<a href="#M000019" 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('M000019-source');return false;">[Source]</a></p>
|
|
141
|
+
<div class="method-source-code" id="M000019-source">
|
|
156
142
|
<pre>
|
|
157
143
|
<span class="ruby-comment cmt"># File lib/wee/state.rb, line 65</span>
|
|
158
144
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">take_snapshot</span>
|
|
@@ -162,22 +148,19 @@
|
|
|
162
148
|
<span class="ruby-keyword kw">end</span>
|
|
163
149
|
</pre>
|
|
164
150
|
</div>
|
|
165
|
-
|
|
166
151
|
</div>
|
|
167
152
|
</div>
|
|
168
153
|
|
|
169
154
|
|
|
170
|
-
|
|
171
155
|
</div>
|
|
172
156
|
|
|
173
157
|
|
|
174
|
-
|
|
175
|
-
|
|
176
158
|
</div>
|
|
177
159
|
|
|
160
|
+
|
|
178
161
|
<div id="validator-badges">
|
|
179
162
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
180
163
|
</div>
|
|
181
164
|
|
|
182
165
|
</body>
|
|
183
|
-
</html>
|
|
166
|
+
</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::WrapperDecoration
|
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
|
8
|
+
<title>Class: Wee::WrapperDecoration</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,166 +55,136 @@
|
|
|
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
|
-
</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
|
-
|
|
99
|
-
|
|
100
|
-
<a href="#M000203">render_inner</a>
|
|
101
|
-
|
|
91
|
+
<a href="#M000105">render</a>
|
|
92
|
+
<a href="#M000106">render_inner</a>
|
|
102
93
|
</div>
|
|
103
94
|
</div>
|
|
104
95
|
|
|
105
96
|
</div>
|
|
106
97
|
|
|
98
|
+
|
|
107
99
|
<!-- if includes -->
|
|
108
100
|
|
|
109
101
|
<div id="section">
|
|
110
102
|
|
|
103
|
+
|
|
104
|
+
|
|
111
105
|
<div id="aliases-list">
|
|
112
106
|
<h3 class="section-bar">External Aliases</h3>
|
|
113
107
|
|
|
114
108
|
<div class="name-list">
|
|
115
|
-
|
|
116
|
-
|
|
109
|
+
<table summary="aliases">
|
|
117
110
|
<tr class="top-aligned-row context-row">
|
|
118
111
|
<td class="context-item-name">render_presenter_on</td>
|
|
119
112
|
<td>-></td>
|
|
120
113
|
<td class="context-item-value">render_on</td>
|
|
121
114
|
</tr>
|
|
122
|
-
|
|
123
|
-
</table>
|
|
115
|
+
</table>
|
|
124
116
|
</div>
|
|
125
117
|
</div>
|
|
126
118
|
|
|
127
119
|
|
|
120
|
+
|
|
128
121
|
|
|
129
122
|
|
|
130
123
|
<!-- if method_list -->
|
|
131
|
-
|
|
132
124
|
<div id="methods">
|
|
133
|
-
|
|
134
125
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
135
126
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
<a name="M000202"></a>
|
|
127
|
+
<div id="method-M000105" class="method-detail">
|
|
128
|
+
<a name="M000105"></a>
|
|
139
129
|
|
|
140
130
|
<div class="method-heading">
|
|
141
|
-
|
|
142
|
-
<a href="#M000202" class="method-signature">
|
|
143
|
-
|
|
131
|
+
<a href="#M000105" class="method-signature">
|
|
144
132
|
<span class="method-name">render</span><span class="method-args">(r)</span>
|
|
145
|
-
|
|
146
133
|
</a>
|
|
147
|
-
|
|
148
134
|
</div>
|
|
149
|
-
|
|
135
|
+
|
|
150
136
|
<div class="method-description">
|
|
151
|
-
|
|
152
137
|
<p>
|
|
153
138
|
Overwrite this method, and call <a
|
|
154
|
-
href="WrapperDecoration.html#
|
|
139
|
+
href="WrapperDecoration.html#M000106">render_inner</a>(r) where you want
|
|
155
140
|
the inner content to be drawn.
|
|
156
141
|
</p>
|
|
157
|
-
|
|
158
142
|
<p><a class="source-toggle" href="#"
|
|
159
|
-
onclick="toggleCode('
|
|
160
|
-
<div class="method-source-code" id="
|
|
143
|
+
onclick="toggleCode('M000105-source');return false;">[Source]</a></p>
|
|
144
|
+
<div class="method-source-code" id="M000105-source">
|
|
161
145
|
<pre>
|
|
162
|
-
<span class="ruby-comment cmt"># File lib/wee/decoration.rb, line
|
|
146
|
+
<span class="ruby-comment cmt"># File lib/wee/decoration.rb, line 210</span>
|
|
163
147
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>(<span class="ruby-identifier">r</span>)
|
|
164
148
|
<span class="ruby-identifier">render_inner</span>(<span class="ruby-identifier">r</span>)
|
|
165
149
|
<span class="ruby-keyword kw">end</span>
|
|
166
150
|
</pre>
|
|
167
151
|
</div>
|
|
168
|
-
|
|
169
152
|
</div>
|
|
170
153
|
</div>
|
|
171
154
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
<a name="M000203"></a>
|
|
155
|
+
<div id="method-M000106" class="method-detail">
|
|
156
|
+
<a name="M000106"></a>
|
|
175
157
|
|
|
176
158
|
<div class="method-heading">
|
|
177
|
-
|
|
178
|
-
<a href="#M000203" class="method-signature">
|
|
179
|
-
|
|
159
|
+
<a href="#M000106" class="method-signature">
|
|
180
160
|
<span class="method-name">render_inner</span><span class="method-args">(r)</span>
|
|
181
|
-
|
|
182
161
|
</a>
|
|
183
|
-
|
|
184
162
|
</div>
|
|
185
|
-
|
|
163
|
+
|
|
186
164
|
<div class="method-description">
|
|
187
|
-
|
|
188
165
|
<p><a class="source-toggle" href="#"
|
|
189
|
-
onclick="toggleCode('
|
|
190
|
-
<div class="method-source-code" id="
|
|
166
|
+
onclick="toggleCode('M000106-source');return false;">[Source]</a></p>
|
|
167
|
+
<div class="method-source-code" id="M000106-source">
|
|
191
168
|
<pre>
|
|
192
|
-
<span class="ruby-comment cmt"># File lib/wee/decoration.rb, line
|
|
169
|
+
<span class="ruby-comment cmt"># File lib/wee/decoration.rb, line 214</span>
|
|
193
170
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render_inner</span>(<span class="ruby-identifier">r</span>)
|
|
194
171
|
<span class="ruby-identifier">r</span>.<span class="ruby-identifier">render_decoration</span>(<span class="ruby-ivar">@next</span>)
|
|
195
172
|
<span class="ruby-keyword kw">end</span>
|
|
196
173
|
</pre>
|
|
197
174
|
</div>
|
|
198
|
-
|
|
199
175
|
</div>
|
|
200
176
|
</div>
|
|
201
177
|
|
|
202
178
|
|
|
203
|
-
|
|
204
179
|
</div>
|
|
205
180
|
|
|
206
181
|
|
|
207
|
-
|
|
208
|
-
|
|
209
182
|
</div>
|
|
210
183
|
|
|
184
|
+
|
|
211
185
|
<div id="validator-badges">
|
|
212
186
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
213
187
|
</div>
|
|
214
188
|
|
|
215
189
|
</body>
|
|
216
|
-
</html>
|
|
190
|
+
</html>
|