wee 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. data/ChangeLog +132 -0
  2. data/INSTALL +13 -3
  3. data/README +3 -3
  4. data/Rakefile +5 -1
  5. data/bin/wee +100 -0
  6. data/doc/rdoc/classes/Array.html +12 -12
  7. data/doc/rdoc/classes/Cache/StorageCache.html +38 -38
  8. data/doc/rdoc/classes/Cache/Strategy/CapacityBounded.html +30 -30
  9. data/doc/rdoc/classes/Cache/Strategy/LFU.html +24 -24
  10. data/doc/rdoc/classes/Cache/Strategy/LRU.html +24 -24
  11. data/doc/rdoc/classes/Cache/Strategy/Unbounded.html +24 -24
  12. data/doc/rdoc/classes/Enumerable.html +6 -6
  13. data/doc/rdoc/classes/Main.html +265 -0
  14. data/doc/rdoc/classes/Object.html +12 -12
  15. data/doc/rdoc/classes/OgApplication.html +2 -2
  16. data/doc/rdoc/classes/OgScaffolder.html +444 -64
  17. data/doc/rdoc/classes/OgScaffolder/Editor.html +490 -0
  18. data/doc/rdoc/classes/OgSession.html +4 -4
  19. data/doc/rdoc/classes/Recipe.html +113 -0
  20. data/doc/rdoc/classes/String.html +12 -12
  21. data/doc/rdoc/classes/Struct.html +12 -12
  22. data/doc/rdoc/classes/Wee.html +10 -1
  23. data/doc/rdoc/classes/Wee/AnswerDecoration.html +9 -9
  24. data/doc/rdoc/classes/Wee/Application.html +48 -47
  25. data/doc/rdoc/classes/Wee/Brush.html +19 -23
  26. data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +17 -14
  27. data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +20 -14
  28. data/doc/rdoc/classes/Wee/Brush/FormTag.html +25 -21
  29. data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
  30. data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +7 -7
  31. data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +234 -100
  32. data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
  33. data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +28 -22
  34. data/doc/rdoc/classes/Wee/Brush/ImageTag.html +23 -24
  35. data/doc/rdoc/classes/Wee/Brush/InputTag.html +14 -14
  36. data/doc/rdoc/classes/Wee/Brush/JavascriptTag.html +7 -7
  37. data/doc/rdoc/classes/Wee/Brush/Page.html +14 -14
  38. data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +33 -57
  39. data/doc/rdoc/classes/Wee/Brush/SelectListTag/SelectListCallback.html +154 -0
  40. data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +7 -7
  41. data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +20 -14
  42. data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +14 -14
  43. data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +7 -7
  44. data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +42 -42
  45. data/doc/rdoc/classes/Wee/Brush/TableTag.html +7 -7
  46. data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +27 -21
  47. data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +20 -14
  48. data/doc/rdoc/classes/Wee/CallbackRegistry.html +64 -36
  49. data/doc/rdoc/classes/Wee/CallbackStream.html +21 -21
  50. data/doc/rdoc/classes/Wee/Canvas.html +24 -24
  51. data/doc/rdoc/classes/Wee/Component.html +179 -151
  52. data/doc/rdoc/classes/Wee/Component/OnAnswer.html +12 -12
  53. data/doc/rdoc/classes/Wee/Decoration.html +42 -42
  54. data/doc/rdoc/classes/Wee/Delegate.html +27 -27
  55. data/doc/rdoc/classes/Wee/ErrorResponse.html +14 -14
  56. data/doc/rdoc/classes/Wee/FormDecoration.html +6 -6
  57. data/doc/rdoc/classes/Wee/GenericResponse.html +7 -7
  58. data/doc/rdoc/classes/Wee/HtmlCanvas.html +326 -219
  59. data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
  60. data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +19 -19
  61. data/doc/rdoc/classes/Wee/Md5IdGenerator.html +181 -0
  62. data/doc/rdoc/classes/Wee/MessageBox.html +12 -12
  63. data/doc/rdoc/classes/Wee/PageDecoration.html +18 -18
  64. data/doc/rdoc/classes/Wee/PagelessApplication.html +152 -0
  65. data/doc/rdoc/classes/Wee/PagelessRequest.html +177 -0
  66. data/doc/rdoc/classes/Wee/PagelessSession.html +320 -0
  67. data/doc/rdoc/classes/Wee/Presenter.html +145 -89
  68. data/doc/rdoc/classes/Wee/RedirectResponse.html +7 -7
  69. data/doc/rdoc/classes/Wee/RefreshResponse.html +7 -7
  70. data/doc/rdoc/classes/Wee/Request.html +116 -50
  71. data/doc/rdoc/classes/Wee/RequestHandler.html +31 -31
  72. data/doc/rdoc/classes/Wee/Response.html +76 -28
  73. data/doc/rdoc/classes/Wee/Session.html +129 -506
  74. data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +22 -40
  75. data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
  76. data/doc/rdoc/classes/Wee/Utils.html +70 -17
  77. data/doc/rdoc/classes/Wee/Utils/LRUCache.html +6 -6
  78. data/doc/rdoc/classes/Wee/ValueHolder.html +18 -18
  79. data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +82 -49
  80. data/doc/rdoc/classes/Wee/WrapperDecoration.html +6 -6
  81. data/doc/rdoc/created.rid +1 -1
  82. data/doc/rdoc/files/INSTALL.html +17 -5
  83. data/doc/rdoc/files/README.html +9 -11
  84. data/doc/rdoc/files/lib/wee/adaptors/webrick_rb.html +1 -1
  85. data/doc/rdoc/files/lib/wee/application_rb.html +1 -1
  86. data/doc/rdoc/files/lib/wee/components/page_decoration_rb.html +1 -1
  87. data/doc/rdoc/files/lib/wee/continuation/session_rb.html +1 -3
  88. data/doc/rdoc/files/lib/wee/core/callback_rb.html +1 -1
  89. data/doc/rdoc/files/lib/wee/core/component_rb.html +1 -1
  90. data/doc/rdoc/files/lib/wee/core_rb.html +3 -3
  91. data/doc/rdoc/files/lib/wee/databases/og/application_rb.html +101 -0
  92. data/doc/rdoc/files/lib/wee/databases/og/old_scaffolder_rb.html +101 -0
  93. data/doc/rdoc/files/lib/wee/databases/og/scaffolder_rb.html +108 -0
  94. data/doc/rdoc/files/lib/wee/databases/og/session_rb.html +101 -0
  95. data/doc/rdoc/files/lib/wee/databases/og_rb.html +4 -1
  96. data/doc/rdoc/files/lib/wee/idgen/md5_rb.html +115 -0
  97. data/doc/rdoc/files/lib/wee/idgen/simple_rb.html +107 -0
  98. data/doc/rdoc/files/lib/wee/pageless/application_rb.html +101 -0
  99. data/doc/rdoc/files/lib/wee/pageless/request_rb.html +101 -0
  100. data/doc/rdoc/files/lib/wee/pageless/session_rb.html +108 -0
  101. data/doc/rdoc/files/lib/wee/pageless_rb.html +110 -0
  102. data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
  103. data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +8 -1
  104. data/doc/rdoc/files/lib/wee/request_rb.html +1 -1
  105. data/doc/rdoc/files/lib/wee/response_rb.html +1 -1
  106. data/doc/rdoc/files/lib/wee/session_rb.html +1 -1
  107. data/doc/rdoc/files/lib/wee/skeleton/og/components/main_rb.html +101 -0
  108. data/doc/rdoc/files/lib/wee/skeleton/og/conf/db_rb.html +114 -0
  109. data/doc/rdoc/files/lib/wee/skeleton/og/models/recipe_rb.html +101 -0
  110. data/doc/rdoc/files/lib/wee/skeleton/og/run_rb.html +115 -0
  111. data/doc/rdoc/files/lib/wee/skeleton/simple/components/main_rb.html +101 -0
  112. data/doc/rdoc/files/lib/wee/skeleton/simple/run_rb.html +111 -0
  113. data/doc/rdoc/files/lib/wee/template_rb.html +101 -0
  114. data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +1 -1
  115. data/doc/rdoc/files/lib/wee/utils/helper_rb.html +1 -1
  116. data/doc/rdoc/files/lib/wee_rb.html +4 -2
  117. data/doc/rdoc/fr_class_index.html +8 -4
  118. data/doc/rdoc/fr_file_index.html +17 -1
  119. data/doc/rdoc/fr_method_index.html +312 -267
  120. data/examples/live-update.rb +1 -1
  121. data/install.rb +14 -0
  122. data/lib/wee.rb +6 -2
  123. data/lib/wee/adaptors/webrick.rb +17 -5
  124. data/lib/wee/application.rb +2 -1
  125. data/lib/wee/continuation/session.rb +1 -146
  126. data/lib/wee/core/callback.rb +11 -5
  127. data/lib/wee/core/component.rb +14 -10
  128. data/lib/wee/databases/og.rb +3 -113
  129. data/lib/wee/databases/og/application.rb +3 -0
  130. data/lib/wee/databases/og/old_scaffolder.rb +98 -0
  131. data/lib/wee/databases/og/scaffolder.rb +174 -0
  132. data/lib/wee/databases/og/session.rb +9 -0
  133. data/lib/wee/idgen/md5.rb +21 -0
  134. data/lib/wee/{idgen.rb → idgen/simple.rb} +2 -4
  135. data/lib/wee/pageless.rb +3 -0
  136. data/lib/wee/pageless/application.rb +9 -0
  137. data/lib/wee/pageless/request.rb +15 -0
  138. data/lib/wee/pageless/session.rb +89 -0
  139. data/lib/wee/renderer/html/brushes.rb +100 -115
  140. data/lib/wee/renderer/html/canvas.rb +32 -2
  141. data/lib/wee/request.rb +36 -24
  142. data/lib/wee/response.rb +8 -1
  143. data/lib/wee/session.rb +13 -7
  144. data/lib/wee/skeleton/og/README +38 -0
  145. data/lib/wee/skeleton/og/components/main.rb +16 -0
  146. data/lib/wee/skeleton/og/conf/db.rb +8 -0
  147. data/lib/wee/skeleton/og/models/recipe.rb +5 -0
  148. data/lib/wee/skeleton/og/run.rb +23 -0
  149. data/lib/wee/skeleton/simple/README +32 -0
  150. data/lib/wee/skeleton/simple/components/main.rb +25 -0
  151. data/lib/wee/skeleton/simple/run.rb +12 -0
  152. data/lib/wee/template.rb +28 -0
  153. data/lib/wee/utils/autoreload.rb +29 -0
  154. data/lib/wee/utils/helper.rb +9 -5
  155. data/test/test_request.rb +4 -3
  156. data/wee.gemspec +3 -1
  157. metadata +91 -22
@@ -0,0 +1,154 @@
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
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Wee::Brush::SelectListTag::SelectListCallback</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Wee::Brush::SelectListTag::SelectListCallback</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../../files/lib/wee/renderer/html/brushes_rb.html">
59
+ lib/wee/renderer/html/brushes.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Struct.new(:callback, :items, :is_multiple)
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000165">call</a>&nbsp;&nbsp;
90
+ </div>
91
+ </div>
92
+
93
+ </div>
94
+
95
+
96
+ <!-- if includes -->
97
+
98
+ <div id="section">
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+ <!-- if method_list -->
108
+ <div id="methods">
109
+ <h3 class="section-bar">Public Instance methods</h3>
110
+
111
+ <div id="method-M000165" class="method-detail">
112
+ <a name="M000165"></a>
113
+
114
+ <div class="method-heading">
115
+ <a href="#M000165" class="method-signature">
116
+ <span class="method-name">call</span><span class="method-args">(input)</span>
117
+ </a>
118
+ </div>
119
+
120
+ <div class="method-description">
121
+ <p><a class="source-toggle" href="#"
122
+ onclick="toggleCode('M000165-source');return false;">[Source]</a></p>
123
+ <div class="method-source-code" id="M000165-source">
124
+ <pre>
125
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 334</span>
126
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call</span>(<span class="ruby-identifier">input</span>)
127
+ <span class="ruby-identifier">choosen</span> = <span class="ruby-identifier">input</span>.<span class="ruby-identifier">list</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">idx</span><span class="ruby-operator">|</span>
128
+ <span class="ruby-identifier">idx</span> = <span class="ruby-constant">Integer</span>(<span class="ruby-identifier">idx</span>)
129
+ <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;invalid index in select list&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">idx</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">idx</span> <span class="ruby-operator">&gt;</span> <span class="ruby-identifier">items</span>.<span class="ruby-identifier">size</span>
130
+ <span class="ruby-identifier">items</span>[<span class="ruby-identifier">idx</span>]
131
+ }
132
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">choosen</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">and</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">is_multiple</span>
133
+ <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;choosen more than one element from a non-multiple select list&quot;</span>
134
+ <span class="ruby-keyword kw">end</span>
135
+ <span class="ruby-identifier">callback</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">choosen</span>)
136
+ <span class="ruby-keyword kw">end</span>
137
+ </pre>
138
+ </div>
139
+ </div>
140
+ </div>
141
+
142
+
143
+ </div>
144
+
145
+
146
+ </div>
147
+
148
+
149
+ <div id="validator-badges">
150
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
151
+ </div>
152
+
153
+ </body>
154
+ </html>
@@ -86,7 +86,7 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000144">new</a>&nbsp;&nbsp;
89
+ <a href="#M000191">new</a>&nbsp;&nbsp;
90
90
  </div>
91
91
  </div>
92
92
 
@@ -108,21 +108,21 @@
108
108
  <div id="methods">
109
109
  <h3 class="section-bar">Public Class methods</h3>
110
110
 
111
- <div id="method-M000144" class="method-detail">
112
- <a name="M000144"></a>
111
+ <div id="method-M000191" class="method-detail">
112
+ <a name="M000191"></a>
113
113
 
114
114
  <div class="method-heading">
115
- <a href="#M000144" class="method-signature">
115
+ <a href="#M000191" class="method-signature">
116
116
  <span class="method-name">new</span><span class="method-args">()</span>
117
117
  </a>
118
118
  </div>
119
119
 
120
120
  <div class="method-description">
121
121
  <p><a class="source-toggle" href="#"
122
- onclick="toggleCode('M000144-source');return false;">[Source]</a></p>
123
- <div class="method-source-code" id="M000144-source">
122
+ onclick="toggleCode('M000191-source');return false;">[Source]</a></p>
123
+ <div class="method-source-code" id="M000191-source">
124
124
  <pre>
125
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 316</span>
125
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 304</span>
126
126
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
127
127
  <span class="ruby-keyword kw">super</span>(<span class="ruby-value str">'option'</span>)
128
128
  <span class="ruby-keyword kw">end</span>
@@ -86,7 +86,7 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000126">new</a>&nbsp;&nbsp;
89
+ <a href="#M000168">new</a>&nbsp;&nbsp;
90
90
  </div>
91
91
  </div>
92
92
 
@@ -94,18 +94,24 @@
94
94
 
95
95
 
96
96
  <!-- if includes -->
97
- <div id="includes">
98
- <h3 class="section-bar">Included Modules</h3>
99
-
100
- <div id="includes-list">
101
- <span class="include-name"><a href="ActionCallbackMixin.html">Brush::ActionCallbackMixin</a></span>
102
- </div>
103
- </div>
104
97
 
105
98
  <div id="section">
106
99
 
107
100
 
108
101
 
102
+ <div id="aliases-list">
103
+ <h3 class="section-bar">External Aliases</h3>
104
+
105
+ <div class="name-list">
106
+ <table summary="aliases">
107
+ <tr class="top-aligned-row context-row">
108
+ <td class="context-item-name">__action_callback</td>
109
+ <td>-></td>
110
+ <td class="context-item-value">callback</td>
111
+ </tr>
112
+ </table>
113
+ </div>
114
+ </div>
109
115
 
110
116
 
111
117
 
@@ -115,21 +121,21 @@
115
121
  <div id="methods">
116
122
  <h3 class="section-bar">Public Class methods</h3>
117
123
 
118
- <div id="method-M000126" class="method-detail">
119
- <a name="M000126"></a>
124
+ <div id="method-M000168" class="method-detail">
125
+ <a name="M000168"></a>
120
126
 
121
127
  <div class="method-heading">
122
- <a href="#M000126" class="method-signature">
128
+ <a href="#M000168" class="method-signature">
123
129
  <span class="method-name">new</span><span class="method-args">()</span>
124
130
  </a>
125
131
  </div>
126
132
 
127
133
  <div class="method-description">
128
134
  <p><a class="source-toggle" href="#"
129
- onclick="toggleCode('M000126-source');return false;">[Source]</a></p>
130
- <div class="method-source-code" id="M000126-source">
135
+ onclick="toggleCode('M000168-source');return false;">[Source]</a></p>
136
+ <div class="method-source-code" id="M000168-source">
131
137
  <pre>
132
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 401</span>
138
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 385</span>
133
139
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
134
140
  <span class="ruby-keyword kw">super</span>
135
141
  <span class="ruby-identifier">type</span>(<span class="ruby-value str">'submit'</span>)
@@ -86,8 +86,8 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000111">align_top</a>&nbsp;&nbsp;
90
- <a href="#M000110">new</a>&nbsp;&nbsp;
89
+ <a href="#M000152">align_top</a>&nbsp;&nbsp;
90
+ <a href="#M000151">new</a>&nbsp;&nbsp;
91
91
  </div>
92
92
  </div>
93
93
 
@@ -109,21 +109,21 @@
109
109
  <div id="methods">
110
110
  <h3 class="section-bar">Public Class methods</h3>
111
111
 
112
- <div id="method-M000110" class="method-detail">
113
- <a name="M000110"></a>
112
+ <div id="method-M000151" class="method-detail">
113
+ <a name="M000151"></a>
114
114
 
115
115
  <div class="method-heading">
116
- <a href="#M000110" class="method-signature">
116
+ <a href="#M000151" class="method-signature">
117
117
  <span class="method-name">new</span><span class="method-args">()</span>
118
118
  </a>
119
119
  </div>
120
120
 
121
121
  <div class="method-description">
122
122
  <p><a class="source-toggle" href="#"
123
- onclick="toggleCode('M000110-source');return false;">[Source]</a></p>
124
- <div class="method-source-code" id="M000110-source">
123
+ onclick="toggleCode('M000151-source');return false;">[Source]</a></p>
124
+ <div class="method-source-code" id="M000151-source">
125
125
  <pre>
126
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 429</span>
126
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 414</span>
127
127
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
128
128
  <span class="ruby-keyword kw">super</span>(<span class="ruby-value str">'td'</span>)
129
129
  <span class="ruby-keyword kw">end</span>
@@ -134,21 +134,21 @@
134
134
 
135
135
  <h3 class="section-bar">Public Instance methods</h3>
136
136
 
137
- <div id="method-M000111" class="method-detail">
138
- <a name="M000111"></a>
137
+ <div id="method-M000152" class="method-detail">
138
+ <a name="M000152"></a>
139
139
 
140
140
  <div class="method-heading">
141
- <a href="#M000111" class="method-signature">
141
+ <a href="#M000152" class="method-signature">
142
142
  <span class="method-name">align_top</span><span class="method-args">()</span>
143
143
  </a>
144
144
  </div>
145
145
 
146
146
  <div class="method-description">
147
147
  <p><a class="source-toggle" href="#"
148
- onclick="toggleCode('M000111-source');return false;">[Source]</a></p>
149
- <div class="method-source-code" id="M000111-source">
148
+ onclick="toggleCode('M000152-source');return false;">[Source]</a></p>
149
+ <div class="method-source-code" id="M000152-source">
150
150
  <pre>
151
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 433</span>
151
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 418</span>
152
152
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_top</span>
153
153
  <span class="ruby-identifier">html_attr</span>(<span class="ruby-value str">'align'</span>, <span class="ruby-value str">'top'</span>)
154
154
  <span class="ruby-keyword kw">end</span>
@@ -86,7 +86,7 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000109">new</a>&nbsp;&nbsp;
89
+ <a href="#M000150">new</a>&nbsp;&nbsp;
90
90
  </div>
91
91
  </div>
92
92
 
@@ -108,21 +108,21 @@
108
108
  <div id="methods">
109
109
  <h3 class="section-bar">Public Class methods</h3>
110
110
 
111
- <div id="method-M000109" class="method-detail">
112
- <a name="M000109"></a>
111
+ <div id="method-M000150" class="method-detail">
112
+ <a name="M000150"></a>
113
113
 
114
114
  <div class="method-heading">
115
- <a href="#M000109" class="method-signature">
115
+ <a href="#M000150" class="method-signature">
116
116
  <span class="method-name">new</span><span class="method-args">()</span>
117
117
  </a>
118
118
  </div>
119
119
 
120
120
  <div class="method-description">
121
121
  <p><a class="source-toggle" href="#"
122
- onclick="toggleCode('M000109-source');return false;">[Source]</a></p>
123
- <div class="method-source-code" id="M000109-source">
122
+ onclick="toggleCode('M000150-source');return false;">[Source]</a></p>
123
+ <div class="method-source-code" id="M000150-source">
124
124
  <pre>
125
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 439</span>
125
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 424</span>
126
126
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
127
127
  <span class="ruby-keyword kw">super</span>(<span class="ruby-value str">'th'</span>)
128
128
  <span class="ruby-keyword kw">end</span>
@@ -86,12 +86,12 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000116">align_top</a>&nbsp;&nbsp;
90
- <a href="#M000117">columns</a>&nbsp;&nbsp;
91
- <a href="#M000118">headings</a>&nbsp;&nbsp;
92
- <a href="#M000115">new</a>&nbsp;&nbsp;
93
- <a href="#M000120">spacer</a>&nbsp;&nbsp;
94
- <a href="#M000119">spanning_column</a>&nbsp;&nbsp;
89
+ <a href="#M000157">align_top</a>&nbsp;&nbsp;
90
+ <a href="#M000158">columns</a>&nbsp;&nbsp;
91
+ <a href="#M000159">headings</a>&nbsp;&nbsp;
92
+ <a href="#M000156">new</a>&nbsp;&nbsp;
93
+ <a href="#M000161">spacer</a>&nbsp;&nbsp;
94
+ <a href="#M000160">spanning_column</a>&nbsp;&nbsp;
95
95
  </div>
96
96
  </div>
97
97
 
@@ -113,21 +113,21 @@
113
113
  <div id="methods">
114
114
  <h3 class="section-bar">Public Class methods</h3>
115
115
 
116
- <div id="method-M000115" class="method-detail">
117
- <a name="M000115"></a>
116
+ <div id="method-M000156" class="method-detail">
117
+ <a name="M000156"></a>
118
118
 
119
119
  <div class="method-heading">
120
- <a href="#M000115" class="method-signature">
120
+ <a href="#M000156" class="method-signature">
121
121
  <span class="method-name">new</span><span class="method-args">()</span>
122
122
  </a>
123
123
  </div>
124
124
 
125
125
  <div class="method-description">
126
126
  <p><a class="source-toggle" href="#"
127
- onclick="toggleCode('M000115-source');return false;">[Source]</a></p>
128
- <div class="method-source-code" id="M000115-source">
127
+ onclick="toggleCode('M000156-source');return false;">[Source]</a></p>
128
+ <div class="method-source-code" id="M000156-source">
129
129
  <pre>
130
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 202</span>
130
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 226</span>
131
131
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
132
132
  <span class="ruby-keyword kw">super</span>(<span class="ruby-value str">'tr'</span>)
133
133
  <span class="ruby-keyword kw">end</span>
@@ -138,21 +138,21 @@
138
138
 
139
139
  <h3 class="section-bar">Public Instance methods</h3>
140
140
 
141
- <div id="method-M000116" class="method-detail">
142
- <a name="M000116"></a>
141
+ <div id="method-M000157" class="method-detail">
142
+ <a name="M000157"></a>
143
143
 
144
144
  <div class="method-heading">
145
- <a href="#M000116" class="method-signature">
145
+ <a href="#M000157" class="method-signature">
146
146
  <span class="method-name">align_top</span><span class="method-args">()</span>
147
147
  </a>
148
148
  </div>
149
149
 
150
150
  <div class="method-description">
151
151
  <p><a class="source-toggle" href="#"
152
- onclick="toggleCode('M000116-source');return false;">[Source]</a></p>
153
- <div class="method-source-code" id="M000116-source">
152
+ onclick="toggleCode('M000157-source');return false;">[Source]</a></p>
153
+ <div class="method-source-code" id="M000157-source">
154
154
  <pre>
155
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 206</span>
155
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 230</span>
156
156
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_top</span>
157
157
  <span class="ruby-identifier">html_attr</span>(<span class="ruby-value str">'align'</span>, <span class="ruby-value str">'top'</span>)
158
158
  <span class="ruby-keyword kw">end</span>
@@ -161,21 +161,21 @@
161
161
  </div>
162
162
  </div>
163
163
 
164
- <div id="method-M000117" class="method-detail">
165
- <a name="M000117"></a>
164
+ <div id="method-M000158" class="method-detail">
165
+ <a name="M000158"></a>
166
166
 
167
167
  <div class="method-heading">
168
- <a href="#M000117" class="method-signature">
168
+ <a href="#M000158" class="method-signature">
169
169
  <span class="method-name">columns</span><span class="method-args">(*cols, &amp;block)</span>
170
170
  </a>
171
171
  </div>
172
172
 
173
173
  <div class="method-description">
174
174
  <p><a class="source-toggle" href="#"
175
- onclick="toggleCode('M000117-source');return false;">[Source]</a></p>
176
- <div class="method-source-code" id="M000117-source">
175
+ onclick="toggleCode('M000158-source');return false;">[Source]</a></p>
176
+ <div class="method-source-code" id="M000158-source">
177
177
  <pre>
178
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 210</span>
178
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 234</span>
179
179
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">columns</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">cols</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
180
180
  <span class="ruby-identifier">with</span> {
181
181
  <span class="ruby-identifier">cols</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">col</span><span class="ruby-operator">|</span>
@@ -194,21 +194,21 @@
194
194
  </div>
195
195
  </div>
196
196
 
197
- <div id="method-M000118" class="method-detail">
198
- <a name="M000118"></a>
197
+ <div id="method-M000159" class="method-detail">
198
+ <a name="M000159"></a>
199
199
 
200
200
  <div class="method-heading">
201
- <a href="#M000118" class="method-signature">
201
+ <a href="#M000159" class="method-signature">
202
202
  <span class="method-name">headings</span><span class="method-args">(*headers, &amp;block)</span>
203
203
  </a>
204
204
  </div>
205
205
 
206
206
  <div class="method-description">
207
207
  <p><a class="source-toggle" href="#"
208
- onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
209
- <div class="method-source-code" id="M000118-source">
208
+ onclick="toggleCode('M000159-source');return false;">[Source]</a></p>
209
+ <div class="method-source-code" id="M000159-source">
210
210
  <pre>
211
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 224</span>
211
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 248</span>
212
212
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">headings</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">headers</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
213
213
  <span class="ruby-identifier">with</span> {
214
214
  <span class="ruby-identifier">headers</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">header</span><span class="ruby-operator">|</span>
@@ -227,21 +227,21 @@
227
227
  </div>
228
228
  </div>
229
229
 
230
- <div id="method-M000120" class="method-detail">
231
- <a name="M000120"></a>
230
+ <div id="method-M000161" class="method-detail">
231
+ <a name="M000161"></a>
232
232
 
233
233
  <div class="method-heading">
234
- <a href="#M000120" class="method-signature">
234
+ <a href="#M000161" class="method-signature">
235
235
  <span class="method-name">spacer</span><span class="method-args">()</span>
236
236
  </a>
237
237
  </div>
238
238
 
239
239
  <div class="method-description">
240
240
  <p><a class="source-toggle" href="#"
241
- onclick="toggleCode('M000120-source');return false;">[Source]</a></p>
242
- <div class="method-source-code" id="M000120-source">
241
+ onclick="toggleCode('M000161-source');return false;">[Source]</a></p>
242
+ <div class="method-source-code" id="M000161-source">
243
243
  <pre>
244
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 244</span>
244
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 268</span>
245
245
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">spacer</span>
246
246
  <span class="ruby-identifier">with</span> {
247
247
  <span class="ruby-ivar">@canvas</span>.<span class="ruby-identifier">table_data</span> { <span class="ruby-ivar">@canvas</span>.<span class="ruby-identifier">space</span> }
@@ -252,21 +252,21 @@
252
252
  </div>
253
253
  </div>
254
254
 
255
- <div id="method-M000119" class="method-detail">
256
- <a name="M000119"></a>
255
+ <div id="method-M000160" class="method-detail">
256
+ <a name="M000160"></a>
257
257
 
258
258
  <div class="method-heading">
259
- <a href="#M000119" class="method-signature">
259
+ <a href="#M000160" class="method-signature">
260
260
  <span class="method-name">spanning_column</span><span class="method-args">(str, colspan)</span>
261
261
  </a>
262
262
  </div>
263
263
 
264
264
  <div class="method-description">
265
265
  <p><a class="source-toggle" href="#"
266
- onclick="toggleCode('M000119-source');return false;">[Source]</a></p>
267
- <div class="method-source-code" id="M000119-source">
266
+ onclick="toggleCode('M000160-source');return false;">[Source]</a></p>
267
+ <div class="method-source-code" id="M000160-source">
268
268
  <pre>
269
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 238</span>
269
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 262</span>
270
270
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">spanning_column</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">colspan</span>)
271
271
  <span class="ruby-identifier">with</span> {
272
272
  <span class="ruby-ivar">@canvas</span>.<span class="ruby-identifier">table_data</span>.<span class="ruby-identifier">col_span</span>(<span class="ruby-identifier">colspan</span>).<span class="ruby-identifier">with</span>(<span class="ruby-identifier">str</span>)