wee 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (231) hide show
  1. data/ChangeLog +286 -0
  2. data/Features +185 -0
  3. data/doc/rdoc/classes/ActionView.html +107 -0
  4. data/doc/rdoc/classes/ActionView/Base.html +133 -0
  5. data/doc/rdoc/classes/Array.html +7 -59
  6. data/doc/rdoc/classes/Cache/StorageCache.html +38 -38
  7. data/doc/rdoc/classes/Cache/Strategy/CapacityBounded.html +30 -30
  8. data/doc/rdoc/classes/Cache/Strategy/LFU.html +24 -24
  9. data/doc/rdoc/classes/Cache/Strategy/LRU.html +24 -24
  10. data/doc/rdoc/classes/Cache/Strategy/Unbounded.html +24 -24
  11. data/doc/rdoc/classes/Enumerable.html +6 -6
  12. data/doc/rdoc/classes/Hash.html +120 -0
  13. data/doc/rdoc/classes/Main.html +58 -34
  14. data/doc/rdoc/classes/Object.html +12 -12
  15. data/doc/rdoc/classes/OgScaffolder.html +165 -166
  16. data/doc/rdoc/classes/OgScaffolder/Editor.html +112 -112
  17. data/doc/rdoc/classes/String.html +7 -59
  18. data/doc/rdoc/classes/Struct.html +14 -14
  19. data/doc/rdoc/classes/Wee.html +70 -6
  20. data/doc/rdoc/classes/Wee/AbstractSession.html +502 -0
  21. data/doc/rdoc/classes/Wee/AnswerDecoration.html +11 -11
  22. data/doc/rdoc/classes/Wee/Application.html +139 -84
  23. data/doc/rdoc/classes/Wee/Brush.html +21 -18
  24. data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +90 -17
  25. data/doc/rdoc/classes/Wee/Brush/CheckboxTag.html +162 -0
  26. data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +7 -7
  27. data/doc/rdoc/classes/Wee/Brush/FormTag.html +41 -17
  28. data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
  29. data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +7 -7
  30. data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +112 -86
  31. data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
  32. data/doc/rdoc/classes/Wee/Brush/HiddenInputTag.html +160 -0
  33. data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +15 -15
  34. data/doc/rdoc/classes/Wee/Brush/ImageTag.html +21 -21
  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/RadioButtonTag.html +234 -0
  39. data/doc/rdoc/classes/Wee/Brush/RadioButtonTag/RadioGroup.html +207 -0
  40. data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +124 -28
  41. data/doc/rdoc/classes/Wee/Brush/SelectListTag/SelectListCallback.html +7 -7
  42. data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +7 -7
  43. data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +7 -7
  44. data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +14 -14
  45. data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +7 -7
  46. data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +42 -42
  47. data/doc/rdoc/classes/Wee/Brush/TableTag.html +7 -7
  48. data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +48 -15
  49. data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +7 -7
  50. data/doc/rdoc/classes/Wee/CallbackRegistry.html +38 -38
  51. data/doc/rdoc/classes/Wee/CallbackStream.html +18 -18
  52. data/doc/rdoc/classes/Wee/CanvasMixin.html +225 -0
  53. data/doc/rdoc/classes/Wee/Component.html +202 -201
  54. data/doc/rdoc/classes/Wee/Component/OnAnswer.html +7 -7
  55. data/doc/rdoc/classes/Wee/ComponentDispatcher.html +289 -0
  56. data/doc/rdoc/classes/Wee/ComponentRunner.html +321 -0
  57. data/doc/rdoc/classes/Wee/Context.html +63 -3
  58. data/doc/rdoc/classes/Wee/Decoration.html +45 -45
  59. data/doc/rdoc/classes/Wee/Delegate.html +30 -30
  60. data/doc/rdoc/classes/Wee/DupReplaceSnapshotMixin.html +164 -0
  61. data/doc/rdoc/classes/Wee/ErrorResponse.html +16 -16
  62. data/doc/rdoc/classes/Wee/Examples.html +114 -0
  63. data/doc/rdoc/classes/Wee/Examples/Calculator.html +319 -0
  64. data/doc/rdoc/classes/Wee/Examples/Counter.html +289 -0
  65. data/doc/rdoc/classes/Wee/Examples/EditableCounter.html +210 -0
  66. data/doc/rdoc/classes/Wee/Examples/Window.html +346 -0
  67. data/doc/rdoc/classes/Wee/FastCGIAdaptor.html +227 -0
  68. data/doc/rdoc/classes/Wee/FormDecoration.html +6 -6
  69. data/doc/rdoc/classes/Wee/GenericResponse.html +7 -7
  70. data/doc/rdoc/classes/Wee/HtmlCanvasRenderer.html +1230 -0
  71. data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
  72. data/doc/rdoc/classes/Wee/IdGenerator.html +148 -0
  73. data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +27 -14
  74. data/doc/rdoc/classes/Wee/LoginDecoration.html +261 -0
  75. data/doc/rdoc/classes/Wee/Md5IdGenerator.html +14 -14
  76. data/doc/rdoc/classes/Wee/MessageBox.html +14 -14
  77. data/doc/rdoc/classes/Wee/Nitro.html +114 -0
  78. data/doc/rdoc/classes/Wee/Nitro/ControllerClassMixin.html +192 -0
  79. data/doc/rdoc/classes/Wee/Nitro/ControllerMixin.html +345 -0
  80. data/doc/rdoc/classes/Wee/Nitro/FormTag.html +155 -0
  81. data/doc/rdoc/classes/Wee/Nitro/HtmlCanvasRenderer.html +178 -0
  82. data/doc/rdoc/classes/Wee/Page.html +4 -0
  83. data/doc/rdoc/classes/Wee/PageDecoration.html +18 -18
  84. data/doc/rdoc/classes/Wee/PagelessApplication.html +13 -11
  85. data/doc/rdoc/classes/Wee/PagelessComponentDriver.html +296 -0
  86. data/doc/rdoc/classes/Wee/PagelessRequest.html +52 -21
  87. data/doc/rdoc/classes/Wee/PagelessSession.html +130 -91
  88. data/doc/rdoc/classes/Wee/Pager.html +534 -0
  89. data/doc/rdoc/classes/Wee/Presenter.html +482 -298
  90. data/doc/rdoc/classes/Wee/Rails.html +114 -0
  91. data/doc/rdoc/classes/Wee/Rails/ControllerClassMixin.html +192 -0
  92. data/doc/rdoc/classes/Wee/Rails/ControllerMixin.html +342 -0
  93. data/doc/rdoc/classes/Wee/Rails/FormTag.html +155 -0
  94. data/doc/rdoc/classes/Wee/Rails/HtmlCanvasRenderer.html +177 -0
  95. data/doc/rdoc/classes/Wee/RedirectResponse.html +7 -7
  96. data/doc/rdoc/classes/Wee/RefreshResponse.html +7 -7
  97. data/doc/rdoc/classes/Wee/Renderer.html +208 -0
  98. data/doc/rdoc/classes/Wee/RenderingContext.html +175 -3
  99. data/doc/rdoc/classes/Wee/Request.html +197 -46
  100. data/doc/rdoc/classes/Wee/RequestHandler.html +31 -31
  101. data/doc/rdoc/classes/Wee/Response.html +44 -43
  102. data/doc/rdoc/classes/Wee/Session.html +296 -402
  103. data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +14 -14
  104. data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
  105. data/doc/rdoc/classes/Wee/Utils.html +22 -22
  106. data/doc/rdoc/classes/Wee/Utils/LRUCache.html +6 -6
  107. data/doc/rdoc/classes/Wee/ValueHolder.html +19 -19
  108. data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +72 -46
  109. data/doc/rdoc/classes/Wee/WrapperDecoration.html +6 -6
  110. data/doc/rdoc/created.rid +1 -1
  111. data/doc/rdoc/files/INSTALL.html +1 -1
  112. data/doc/rdoc/files/README.html +8 -12
  113. data/doc/rdoc/files/lib/cache/cache_rb.html +1 -1
  114. data/doc/rdoc/files/lib/wee/abstractsession_rb.html +108 -0
  115. data/doc/rdoc/files/lib/wee/adaptors/fastcgi_rb.html +108 -0
  116. data/doc/rdoc/files/lib/wee/adaptors/nitro_rb.html +101 -0
  117. data/doc/rdoc/files/lib/wee/adaptors/rails_rb.html +101 -0
  118. data/doc/rdoc/files/lib/wee/adaptors/webrick_rb.html +1 -1
  119. data/doc/rdoc/files/lib/wee/application_rb.html +1 -1
  120. data/doc/rdoc/files/lib/wee/components/component_dispatcher_rb.html +108 -0
  121. data/doc/rdoc/files/lib/wee/components/form_decoration_rb.html +1 -1
  122. data/doc/rdoc/files/lib/wee/components/login_decoration_rb.html +101 -0
  123. data/doc/rdoc/files/lib/wee/components/messagebox_rb.html +1 -1
  124. data/doc/rdoc/files/lib/wee/components/page_decoration_rb.html +1 -1
  125. data/doc/rdoc/files/lib/wee/components/pager_rb.html +101 -0
  126. data/doc/rdoc/files/lib/wee/components/wrapper_decoration_rb.html +1 -1
  127. data/doc/rdoc/files/lib/wee/components_rb.html +4 -1
  128. data/doc/rdoc/files/lib/wee/continuation/core/component_rb.html +1 -1
  129. data/doc/rdoc/files/lib/wee/continuation/session_rb.html +1 -1
  130. data/doc/rdoc/files/lib/wee/continuation_rb.html +1 -1
  131. data/doc/rdoc/files/lib/wee/core/callback_rb.html +1 -1
  132. data/doc/rdoc/files/lib/wee/core/component_rb.html +1 -1
  133. data/doc/rdoc/files/lib/wee/core/componentrunner_rb.html +110 -0
  134. data/doc/rdoc/files/lib/wee/core/context_rb.html +101 -0
  135. data/doc/rdoc/files/lib/wee/core/decoration_rb.html +1 -1
  136. data/doc/rdoc/files/lib/wee/core/idgen_rb.html +101 -0
  137. data/doc/rdoc/files/lib/wee/core/page_rb.html +101 -0
  138. data/doc/rdoc/files/lib/wee/core/presenter_rb.html +1 -1
  139. data/doc/rdoc/files/lib/wee/core/renderer_rb.html +107 -0
  140. data/doc/rdoc/files/lib/wee/core/snapshot_rb.html +1 -1
  141. data/doc/rdoc/files/lib/wee/core/valueholder_rb.html +2 -2
  142. data/doc/rdoc/files/lib/wee/core_ext_rb.html +101 -0
  143. data/doc/rdoc/files/lib/wee/core_rb.html +7 -14
  144. data/doc/rdoc/files/lib/wee/databases/og/application_rb.html +1 -1
  145. data/doc/rdoc/files/lib/wee/databases/og/old_scaffolder_rb.html +1 -1
  146. data/doc/rdoc/files/lib/wee/databases/og/scaffolder_rb.html +1 -1
  147. data/doc/rdoc/files/lib/wee/databases/og/session_rb.html +1 -1
  148. data/doc/rdoc/files/lib/wee/databases/og_rb.html +1 -1
  149. data/doc/rdoc/files/lib/wee/examples/calculator_rb.html +107 -0
  150. data/doc/rdoc/files/lib/wee/examples/counter_rb.html +101 -0
  151. data/doc/rdoc/files/lib/wee/examples/editable_counter_rb.html +114 -0
  152. data/doc/rdoc/files/lib/wee/examples/window_rb.html +101 -0
  153. data/doc/rdoc/files/lib/wee/idgen/md5_rb.html +1 -1
  154. data/doc/rdoc/files/lib/wee/idgen/simple_rb.html +1 -1
  155. data/doc/rdoc/files/lib/wee/page_rb.html +1 -1
  156. data/doc/rdoc/files/lib/wee/pageless/application_rb.html +8 -1
  157. data/doc/rdoc/files/lib/wee/pageless/request_rb.html +1 -1
  158. data/doc/rdoc/files/lib/wee/pageless/session_rb.html +2 -1
  159. data/doc/rdoc/files/lib/wee/pageless_rb.html +1 -1
  160. data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
  161. data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +1 -1
  162. data/doc/rdoc/files/lib/wee/renderer/html/writer_rb.html +1 -1
  163. data/doc/rdoc/files/lib/wee/request_rb.html +5 -4
  164. data/doc/rdoc/files/lib/wee/requesthandler_rb.html +1 -1
  165. data/doc/rdoc/files/lib/wee/response_rb.html +2 -1
  166. data/doc/rdoc/files/lib/wee/session_rb.html +2 -3
  167. data/doc/rdoc/files/lib/wee/skeleton/og/components/main_rb.html +1 -1
  168. data/doc/rdoc/files/lib/wee/skeleton/og/conf/db_rb.html +2 -2
  169. data/doc/rdoc/files/lib/wee/skeleton/og/models/recipe_rb.html +1 -1
  170. data/doc/rdoc/files/lib/wee/skeleton/og/run_rb.html +1 -1
  171. data/doc/rdoc/files/lib/wee/skeleton/simple/components/main_rb.html +1 -1
  172. data/doc/rdoc/files/lib/wee/skeleton/simple/run_rb.html +1 -1
  173. data/doc/rdoc/files/lib/wee/snapshot_ext_rb.html +1 -1
  174. data/doc/rdoc/files/lib/wee/template_rb.html +1 -1
  175. data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +1 -1
  176. data/doc/rdoc/files/lib/wee/utils/cache_rb.html +1 -1
  177. data/doc/rdoc/files/lib/wee/utils/helper_rb.html +1 -1
  178. data/doc/rdoc/files/lib/wee/utils_rb.html +1 -1
  179. data/doc/rdoc/files/lib/wee_rb.html +5 -3
  180. data/doc/rdoc/fr_class_index.html +34 -2
  181. data/doc/rdoc/fr_file_index.html +17 -1
  182. data/doc/rdoc/fr_method_index.html +464 -314
  183. data/examples/ajax/ajax.rb +1 -1
  184. data/examples/demo.rb +47 -0
  185. data/examples/{calendar.rb → demo/calendar.rb} +89 -97
  186. data/examples/{example.rb → demo/example.rb} +17 -97
  187. data/examples/dispatcher.rb +37 -0
  188. data/examples/draw.rb +14 -11
  189. data/examples/nitro/run.rb +42 -0
  190. data/examples/radio.rb +44 -0
  191. data/examples/test.rb +3 -27
  192. data/lib/wee.rb +15 -3
  193. data/lib/wee/adaptors/nitro.rb +154 -0
  194. data/lib/wee/adaptors/rails.rb +154 -0
  195. data/lib/wee/application.rb +22 -20
  196. data/lib/wee/components.rb +3 -0
  197. data/lib/wee/components/component_dispatcher.rb +46 -0
  198. data/lib/wee/components/login_decoration.rb +35 -0
  199. data/lib/wee/components/messagebox.rb +2 -2
  200. data/lib/wee/components/pager.rb +102 -0
  201. data/lib/wee/continuation/core/component.rb +13 -12
  202. data/lib/wee/continuation/session.rb +11 -19
  203. data/lib/wee/core.rb +8 -7
  204. data/lib/wee/core/component.rb +8 -28
  205. data/lib/wee/core/componentrunner.rb +73 -0
  206. data/lib/wee/core/context.rb +27 -0
  207. data/lib/wee/core/idgen.rb +5 -0
  208. data/lib/wee/core/page.rb +1 -0
  209. data/lib/wee/core/presenter.rb +10 -126
  210. data/lib/wee/core/renderer.rb +23 -0
  211. data/lib/wee/core_ext.rb +122 -0
  212. data/lib/wee/databases/og/scaffolder.rb +0 -1
  213. data/lib/wee/examples/calculator.rb +70 -0
  214. data/lib/wee/examples/counter.rb +33 -0
  215. data/lib/wee/examples/editable_counter.rb +31 -0
  216. data/{examples → lib/wee/examples}/window.rb +29 -23
  217. data/lib/wee/idgen/md5.rb +1 -1
  218. data/lib/wee/idgen/simple.rb +1 -1
  219. data/lib/wee/pageless/session.rb +2 -3
  220. data/lib/wee/renderer/html/brushes.rb +142 -22
  221. data/lib/wee/renderer/html/canvas.rb +57 -19
  222. data/lib/wee/response.rb +3 -2
  223. data/lib/wee/session.rb +10 -54
  224. data/lib/wee/skeleton/og/components/main.rb +5 -1
  225. data/lib/wee/skeleton/og/conf/db.rb +1 -1
  226. data/lib/wee/snapshot_ext.rb +4 -10
  227. data/lib/wee/template.rb +19 -5
  228. data/lib/wee/utils/helper.rb +2 -2
  229. metadata +90 -13
  230. data/examples/calculator.rb +0 -67
  231. data/lib/wee/context.rb +0 -2
@@ -86,7 +86,7 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000169">call</a>&nbsp;&nbsp;
89
+ <a href="#M000215">call</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 Instance methods</h3>
110
110
 
111
- <div id="method-M000169" class="method-detail">
112
- <a name="M000169"></a>
111
+ <div id="method-M000215" class="method-detail">
112
+ <a name="M000215"></a>
113
113
 
114
114
  <div class="method-heading">
115
- <a href="#M000169" class="method-signature">
115
+ <a href="#M000215" class="method-signature">
116
116
  <span class="method-name">call</span><span class="method-args">(input)</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('M000169-source');return false;">[Source]</a></p>
123
- <div class="method-source-code" id="M000169-source">
122
+ onclick="toggleCode('M000215-source');return false;">[Source]</a></p>
123
+ <div class="method-source-code" id="M000215-source">
124
124
  <pre>
125
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 334</span>
125
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 368</span>
126
126
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call</span>(<span class="ruby-identifier">input</span>)
127
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
128
  <span class="ruby-identifier">idx</span> = <span class="ruby-constant">Integer</span>(<span class="ruby-identifier">idx</span>)
@@ -86,7 +86,7 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000195">new</a>&nbsp;&nbsp;
89
+ <a href="#M000253">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-M000195" class="method-detail">
112
- <a name="M000195"></a>
111
+ <div id="method-M000253" class="method-detail">
112
+ <a name="M000253"></a>
113
113
 
114
114
  <div class="method-heading">
115
- <a href="#M000195" class="method-signature">
115
+ <a href="#M000253" 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('M000195-source');return false;">[Source]</a></p>
123
- <div class="method-source-code" id="M000195-source">
122
+ onclick="toggleCode('M000253-source');return false;">[Source]</a></p>
123
+ <div class="method-source-code" id="M000253-source">
124
124
  <pre>
125
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 304</span>
125
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 323</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="#M000172">new</a>&nbsp;&nbsp;
89
+ <a href="#M000218">new</a>&nbsp;&nbsp;
90
90
  </div>
91
91
  </div>
92
92
 
@@ -121,21 +121,21 @@
121
121
  <div id="methods">
122
122
  <h3 class="section-bar">Public Class methods</h3>
123
123
 
124
- <div id="method-M000172" class="method-detail">
125
- <a name="M000172"></a>
124
+ <div id="method-M000218" class="method-detail">
125
+ <a name="M000218"></a>
126
126
 
127
127
  <div class="method-heading">
128
- <a href="#M000172" class="method-signature">
128
+ <a href="#M000218" class="method-signature">
129
129
  <span class="method-name">new</span><span class="method-args">()</span>
130
130
  </a>
131
131
  </div>
132
132
 
133
133
  <div class="method-description">
134
134
  <p><a class="source-toggle" href="#"
135
- onclick="toggleCode('M000172-source');return false;">[Source]</a></p>
136
- <div class="method-source-code" id="M000172-source">
135
+ onclick="toggleCode('M000218-source');return false;">[Source]</a></p>
136
+ <div class="method-source-code" id="M000218-source">
137
137
  <pre>
138
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 397</span>
138
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 499</span>
139
139
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
140
140
  <span class="ruby-keyword kw">super</span>
141
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="#M000156">align_top</a>&nbsp;&nbsp;
90
- <a href="#M000155">new</a>&nbsp;&nbsp;
89
+ <a href="#M000198">align_top</a>&nbsp;&nbsp;
90
+ <a href="#M000197">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-M000155" class="method-detail">
113
- <a name="M000155"></a>
112
+ <div id="method-M000197" class="method-detail">
113
+ <a name="M000197"></a>
114
114
 
115
115
  <div class="method-heading">
116
- <a href="#M000155" class="method-signature">
116
+ <a href="#M000197" 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('M000155-source');return false;">[Source]</a></p>
124
- <div class="method-source-code" id="M000155-source">
123
+ onclick="toggleCode('M000197-source');return false;">[Source]</a></p>
124
+ <div class="method-source-code" id="M000197-source">
125
125
  <pre>
126
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 426</span>
126
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 528</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-M000156" class="method-detail">
138
- <a name="M000156"></a>
137
+ <div id="method-M000198" class="method-detail">
138
+ <a name="M000198"></a>
139
139
 
140
140
  <div class="method-heading">
141
- <a href="#M000156" class="method-signature">
141
+ <a href="#M000198" 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('M000156-source');return false;">[Source]</a></p>
149
- <div class="method-source-code" id="M000156-source">
148
+ onclick="toggleCode('M000198-source');return false;">[Source]</a></p>
149
+ <div class="method-source-code" id="M000198-source">
150
150
  <pre>
151
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 430</span>
151
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 532</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="#M000154">new</a>&nbsp;&nbsp;
89
+ <a href="#M000196">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-M000154" class="method-detail">
112
- <a name="M000154"></a>
111
+ <div id="method-M000196" class="method-detail">
112
+ <a name="M000196"></a>
113
113
 
114
114
  <div class="method-heading">
115
- <a href="#M000154" class="method-signature">
115
+ <a href="#M000196" 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('M000154-source');return false;">[Source]</a></p>
123
- <div class="method-source-code" id="M000154-source">
122
+ onclick="toggleCode('M000196-source');return false;">[Source]</a></p>
123
+ <div class="method-source-code" id="M000196-source">
124
124
  <pre>
125
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 436</span>
125
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 538</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="#M000161">align_top</a>&nbsp;&nbsp;
90
- <a href="#M000162">columns</a>&nbsp;&nbsp;
91
- <a href="#M000163">headings</a>&nbsp;&nbsp;
92
- <a href="#M000160">new</a>&nbsp;&nbsp;
93
- <a href="#M000165">spacer</a>&nbsp;&nbsp;
94
- <a href="#M000164">spanning_column</a>&nbsp;&nbsp;
89
+ <a href="#M000203">align_top</a>&nbsp;&nbsp;
90
+ <a href="#M000204">columns</a>&nbsp;&nbsp;
91
+ <a href="#M000205">headings</a>&nbsp;&nbsp;
92
+ <a href="#M000202">new</a>&nbsp;&nbsp;
93
+ <a href="#M000207">spacer</a>&nbsp;&nbsp;
94
+ <a href="#M000206">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-M000160" class="method-detail">
117
- <a name="M000160"></a>
116
+ <div id="method-M000202" class="method-detail">
117
+ <a name="M000202"></a>
118
118
 
119
119
  <div class="method-heading">
120
- <a href="#M000160" class="method-signature">
120
+ <a href="#M000202" 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('M000160-source');return false;">[Source]</a></p>
128
- <div class="method-source-code" id="M000160-source">
127
+ onclick="toggleCode('M000202-source');return false;">[Source]</a></p>
128
+ <div class="method-source-code" id="M000202-source">
129
129
  <pre>
130
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 226</span>
130
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 232</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-M000161" class="method-detail">
142
- <a name="M000161"></a>
141
+ <div id="method-M000203" class="method-detail">
142
+ <a name="M000203"></a>
143
143
 
144
144
  <div class="method-heading">
145
- <a href="#M000161" class="method-signature">
145
+ <a href="#M000203" 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('M000161-source');return false;">[Source]</a></p>
153
- <div class="method-source-code" id="M000161-source">
152
+ onclick="toggleCode('M000203-source');return false;">[Source]</a></p>
153
+ <div class="method-source-code" id="M000203-source">
154
154
  <pre>
155
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 230</span>
155
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 236</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-M000162" class="method-detail">
165
- <a name="M000162"></a>
164
+ <div id="method-M000204" class="method-detail">
165
+ <a name="M000204"></a>
166
166
 
167
167
  <div class="method-heading">
168
- <a href="#M000162" class="method-signature">
168
+ <a href="#M000204" 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('M000162-source');return false;">[Source]</a></p>
176
- <div class="method-source-code" id="M000162-source">
175
+ onclick="toggleCode('M000204-source');return false;">[Source]</a></p>
176
+ <div class="method-source-code" id="M000204-source">
177
177
  <pre>
178
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 234</span>
178
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 240</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-M000163" class="method-detail">
198
- <a name="M000163"></a>
197
+ <div id="method-M000205" class="method-detail">
198
+ <a name="M000205"></a>
199
199
 
200
200
  <div class="method-heading">
201
- <a href="#M000163" class="method-signature">
201
+ <a href="#M000205" 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('M000163-source');return false;">[Source]</a></p>
209
- <div class="method-source-code" id="M000163-source">
208
+ onclick="toggleCode('M000205-source');return false;">[Source]</a></p>
209
+ <div class="method-source-code" id="M000205-source">
210
210
  <pre>
211
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 248</span>
211
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 254</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-M000165" class="method-detail">
231
- <a name="M000165"></a>
230
+ <div id="method-M000207" class="method-detail">
231
+ <a name="M000207"></a>
232
232
 
233
233
  <div class="method-heading">
234
- <a href="#M000165" class="method-signature">
234
+ <a href="#M000207" 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('M000165-source');return false;">[Source]</a></p>
242
- <div class="method-source-code" id="M000165-source">
241
+ onclick="toggleCode('M000207-source');return false;">[Source]</a></p>
242
+ <div class="method-source-code" id="M000207-source">
243
243
  <pre>
244
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 268</span>
244
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 274</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-M000164" class="method-detail">
256
- <a name="M000164"></a>
255
+ <div id="method-M000206" class="method-detail">
256
+ <a name="M000206"></a>
257
257
 
258
258
  <div class="method-heading">
259
- <a href="#M000164" class="method-signature">
259
+ <a href="#M000206" 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('M000164-source');return false;">[Source]</a></p>
267
- <div class="method-source-code" id="M000164-source">
266
+ onclick="toggleCode('M000206-source');return false;">[Source]</a></p>
267
+ <div class="method-source-code" id="M000206-source">
268
268
  <pre>
269
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 262</span>
269
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 268</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>)
@@ -86,7 +86,7 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000153">new</a>&nbsp;&nbsp;
89
+ <a href="#M000195">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-M000153" class="method-detail">
112
- <a name="M000153"></a>
111
+ <div id="method-M000195" class="method-detail">
112
+ <a name="M000195"></a>
113
113
 
114
114
  <div class="method-heading">
115
- <a href="#M000153" class="method-signature">
115
+ <a href="#M000195" 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('M000153-source');return false;">[Source]</a></p>
123
- <div class="method-source-code" id="M000153-source">
122
+ onclick="toggleCode('M000195-source');return false;">[Source]</a></p>
123
+ <div class="method-source-code" id="M000195-source">
124
124
  <pre>
125
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 220</span>
125
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 226</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">'table'</span>)
128
128
  <span class="ruby-keyword kw">end</span>
@@ -86,8 +86,9 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000149">new</a>&nbsp;&nbsp;
90
- <a href="#M000150">with</a>&nbsp;&nbsp;
89
+ <a href="#M000190">new</a>&nbsp;&nbsp;
90
+ <a href="#M000191">value</a>&nbsp;&nbsp;
91
+ <a href="#M000192">with</a>&nbsp;&nbsp;
91
92
  </div>
92
93
  </div>
93
94
 
@@ -122,21 +123,21 @@
122
123
  <div id="methods">
123
124
  <h3 class="section-bar">Public Class methods</h3>
124
125
 
125
- <div id="method-M000149" class="method-detail">
126
- <a name="M000149"></a>
126
+ <div id="method-M000190" class="method-detail">
127
+ <a name="M000190"></a>
127
128
 
128
129
  <div class="method-heading">
129
- <a href="#M000149" class="method-signature">
130
+ <a href="#M000190" class="method-signature">
130
131
  <span class="method-name">new</span><span class="method-args">()</span>
131
132
  </a>
132
133
  </div>
133
134
 
134
135
  <div class="method-description">
135
136
  <p><a class="source-toggle" href="#"
136
- onclick="toggleCode('M000149-source');return false;">[Source]</a></p>
137
- <div class="method-source-code" id="M000149-source">
137
+ onclick="toggleCode('M000190-source');return false;">[Source]</a></p>
138
+ <div class="method-source-code" id="M000190-source">
138
139
  <pre>
139
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 289</span>
140
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 295</span>
140
141
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
141
142
  <span class="ruby-keyword kw">super</span>(<span class="ruby-value str">'textarea'</span>)
142
143
  <span class="ruby-keyword kw">end</span>
@@ -147,23 +148,55 @@
147
148
 
148
149
  <h3 class="section-bar">Public Instance methods</h3>
149
150
 
150
- <div id="method-M000150" class="method-detail">
151
- <a name="M000150"></a>
151
+ <div id="method-M000191" class="method-detail">
152
+ <a name="M000191"></a>
152
153
 
153
154
  <div class="method-heading">
154
- <a href="#M000150" class="method-signature">
155
+ <a href="#M000191" class="method-signature">
156
+ <span class="method-name">value</span><span class="method-args">(val)</span>
157
+ </a>
158
+ </div>
159
+
160
+ <div class="method-description">
161
+ <p><a class="source-toggle" href="#"
162
+ onclick="toggleCode('M000191-source');return false;">[Source]</a></p>
163
+ <div class="method-source-code" id="M000191-source">
164
+ <pre>
165
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 304</span>
166
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">value</span>(<span class="ruby-identifier">val</span>)
167
+ <span class="ruby-ivar">@value</span> = <span class="ruby-identifier">val</span>
168
+ <span class="ruby-keyword kw">self</span>
169
+ <span class="ruby-keyword kw">end</span>
170
+ </pre>
171
+ </div>
172
+ </div>
173
+ </div>
174
+
175
+ <div id="method-M000192" class="method-detail">
176
+ <a name="M000192"></a>
177
+
178
+ <div class="method-heading">
179
+ <a href="#M000192" class="method-signature">
155
180
  <span class="method-name">with</span><span class="method-args">(*args, &amp;block)</span>
156
181
  </a>
157
182
  </div>
158
183
 
159
184
  <div class="method-description">
160
185
  <p><a class="source-toggle" href="#"
161
- onclick="toggleCode('M000150-source');return false;">[Source]</a></p>
162
- <div class="method-source-code" id="M000150-source">
186
+ onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
187
+ <div class="method-source-code" id="M000192-source">
163
188
  <pre>
164
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 298</span>
189
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 309</span>
165
190
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
166
- <span class="ruby-keyword kw">super</span>
191
+ <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@value</span>
192
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span> <span class="ruby-keyword kw">or</span> <span class="ruby-operator">!</span><span class="ruby-identifier">args</span>.<span class="ruby-identifier">empty?</span>
193
+ <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;please use either method 'value' or 'with'&quot;</span>
194
+ <span class="ruby-keyword kw">else</span>
195
+ <span class="ruby-keyword kw">super</span>(<span class="ruby-ivar">@value</span>)
196
+ <span class="ruby-keyword kw">end</span>
197
+ <span class="ruby-keyword kw">else</span>
198
+ <span class="ruby-keyword kw">super</span>
199
+ <span class="ruby-keyword kw">end</span>
167
200
  <span class="ruby-keyword kw">end</span>
168
201
  </pre>
169
202
  </div>