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
@@ -55,8 +55,8 @@
55
55
  <tr class="top-aligned-row">
56
56
  <td><strong>In:</strong></td>
57
57
  <td>
58
- <a href="../../files/lib/wee/context_rb.html">
59
- lib/wee/context.rb
58
+ <a href="../../files/lib/wee/core/context_rb.html">
59
+ lib/wee/core/context.rb
60
60
  </a>
61
61
  <br />
62
62
  </td>
@@ -65,7 +65,9 @@
65
65
  <tr class="top-aligned-row">
66
66
  <td><strong>Parent:</strong></td>
67
67
  <td>
68
- Struct.new(:request, :response);
68
+ <a href="../Object.html">
69
+ Object
70
+ </a>
69
71
  </td>
70
72
  </tr>
71
73
  </table>
@@ -82,6 +84,13 @@
82
84
 
83
85
  </div>
84
86
 
87
+ <div id="method-list">
88
+ <h3 class="section-bar">Methods</h3>
89
+
90
+ <div class="name-list">
91
+ <a href="#M000257">new</a>&nbsp;&nbsp;
92
+ </div>
93
+ </div>
85
94
 
86
95
  </div>
87
96
 
@@ -94,10 +103,61 @@
94
103
 
95
104
 
96
105
 
106
+ <div id="attribute-list">
107
+ <h3 class="section-bar">Attributes</h3>
108
+
109
+ <div class="name-list">
110
+ <table>
111
+ <tr class="top-aligned-row context-row">
112
+ <td class="context-item-name">request</td>
113
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
114
+ <td class="context-item-desc"></td>
115
+ </tr>
116
+ <tr class="top-aligned-row context-row">
117
+ <td class="context-item-name">response</td>
118
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
119
+ <td class="context-item-desc"></td>
120
+ </tr>
121
+ <tr class="top-aligned-row context-row">
122
+ <td class="context-item-name">session</td>
123
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
124
+ <td class="context-item-desc"></td>
125
+ </tr>
126
+ </table>
127
+ </div>
128
+ </div>
97
129
 
98
130
 
99
131
 
100
132
  <!-- if method_list -->
133
+ <div id="methods">
134
+ <h3 class="section-bar">Public Class methods</h3>
135
+
136
+ <div id="method-M000257" class="method-detail">
137
+ <a name="M000257"></a>
138
+
139
+ <div class="method-heading">
140
+ <a href="#M000257" class="method-signature">
141
+ <span class="method-name">new</span><span class="method-args">(request=nil, response=nil, session=nil)</span>
142
+ </a>
143
+ </div>
144
+
145
+ <div class="method-description">
146
+ <p><a class="source-toggle" href="#"
147
+ onclick="toggleCode('M000257-source');return false;">[Source]</a></p>
148
+ <div class="method-source-code" id="M000257-source">
149
+ <pre>
150
+ <span class="ruby-comment cmt"># File lib/wee/core/context.rb, line 4</span>
151
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">request</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">response</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">session</span>=<span class="ruby-keyword kw">nil</span>)
152
+ <span class="ruby-ivar">@request</span>, <span class="ruby-ivar">@response</span>, <span class="ruby-ivar">@session</span> = <span class="ruby-identifier">request</span>, <span class="ruby-identifier">response</span>, <span class="ruby-identifier">session</span>
153
+ <span class="ruby-keyword kw">end</span>
154
+ </pre>
155
+ </div>
156
+ </div>
157
+ </div>
158
+
159
+
160
+ </div>
101
161
 
102
162
 
103
163
  </div>
@@ -83,9 +83,9 @@
83
83
  <div id="description">
84
84
  <p>
85
85
  Abstract base class of all decorations. Forwards the methods <a
86
- href="Decoration.html#M000217">process_callbacks</a>, <a
87
- href="Decoration.html#M000218">do_render</a> and <a
88
- href="Decoration.html#M000219">backtrack_state</a> to the next decoration
86
+ href="Decoration.html#M000282">process_callbacks</a>, <a
87
+ href="Decoration.html#M000283">do_render</a> and <a
88
+ href="Decoration.html#M000284">backtrack_state</a> to the next decoration
89
89
  in the chain. Subclasses should provide special behaviour in these methods,
90
90
  otherwise the decoration does not make sense.
91
91
  </p>
@@ -119,7 +119,7 @@ around the decorations or components below itself:
119
119
  <div id="contents-list">
120
120
  <h3 class="section-bar">Contents</h3>
121
121
  <ul>
122
- <li><a href="#SEC00084">Snapshot</a></li>
122
+ <li><a href="#SEC00092">Snapshot</a></li>
123
123
  </ul>
124
124
  </div>
125
125
 
@@ -127,12 +127,12 @@ around the decorations or components below itself:
127
127
  <h3 class="section-bar">Methods</h3>
128
128
 
129
129
  <div class="name-list">
130
- <a href="#M000219">backtrack_state</a>&nbsp;&nbsp;
131
- <a href="#M000218">do_render</a>&nbsp;&nbsp;
132
- <a href="#M000216">global?</a>&nbsp;&nbsp;
133
- <a href="#M000217">process_callbacks</a>&nbsp;&nbsp;
134
- <a href="#M000221">restore_snapshot</a>&nbsp;&nbsp;
135
- <a href="#M000220">take_snapshot</a>&nbsp;&nbsp;
130
+ <a href="#M000284">backtrack_state</a>&nbsp;&nbsp;
131
+ <a href="#M000283">do_render</a>&nbsp;&nbsp;
132
+ <a href="#M000281">global?</a>&nbsp;&nbsp;
133
+ <a href="#M000282">process_callbacks</a>&nbsp;&nbsp;
134
+ <a href="#M000286">restore_snapshot</a>&nbsp;&nbsp;
135
+ <a href="#M000285">take_snapshot</a>&nbsp;&nbsp;
136
136
  </div>
137
137
  </div>
138
138
 
@@ -173,11 +173,11 @@ everything &quot;below&quot; itself.
173
173
  <div id="methods">
174
174
  <h3 class="section-bar">Public Instance methods</h3>
175
175
 
176
- <div id="method-M000219" class="method-detail">
177
- <a name="M000219"></a>
176
+ <div id="method-M000284" class="method-detail">
177
+ <a name="M000284"></a>
178
178
 
179
179
  <div class="method-heading">
180
- <a href="#M000219" class="method-signature">
180
+ <a href="#M000284" class="method-signature">
181
181
  <span class="method-name">backtrack_state</span><span class="method-args">(snapshot)</span>
182
182
  </a>
183
183
  </div>
@@ -187,8 +187,8 @@ everything &quot;below&quot; itself.
187
187
  Forwards method call to the next decoration in the chain.
188
188
  </p>
189
189
  <p><a class="source-toggle" href="#"
190
- onclick="toggleCode('M000219-source');return false;">[Source]</a></p>
191
- <div class="method-source-code" id="M000219-source">
190
+ onclick="toggleCode('M000284-source');return false;">[Source]</a></p>
191
+ <div class="method-source-code" id="M000284-source">
192
192
  <pre>
193
193
  <span class="ruby-comment cmt"># File lib/wee/core/decoration.rb, line 59</span>
194
194
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">backtrack_state</span>(<span class="ruby-identifier">snapshot</span>)
@@ -200,11 +200,11 @@ Forwards method call to the next decoration in the chain.
200
200
  </div>
201
201
  </div>
202
202
 
203
- <div id="method-M000218" class="method-detail">
204
- <a name="M000218"></a>
203
+ <div id="method-M000283" class="method-detail">
204
+ <a name="M000283"></a>
205
205
 
206
206
  <div class="method-heading">
207
- <a href="#M000218" class="method-signature">
207
+ <a href="#M000283" class="method-signature">
208
208
  <span class="method-name">do_render</span><span class="method-args">(rendering_context)</span>
209
209
  </a>
210
210
  </div>
@@ -214,8 +214,8 @@ Forwards method call to the next decoration in the chain.
214
214
  Forwards method call to the next decoration in the chain.
215
215
  </p>
216
216
  <p><a class="source-toggle" href="#"
217
- onclick="toggleCode('M000218-source');return false;">[Source]</a></p>
218
- <div class="method-source-code" id="M000218-source">
217
+ onclick="toggleCode('M000283-source');return false;">[Source]</a></p>
218
+ <div class="method-source-code" id="M000283-source">
219
219
  <pre>
220
220
  <span class="ruby-comment cmt"># File lib/wee/core/decoration.rb, line 53</span>
221
221
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">do_render</span>(<span class="ruby-identifier">rendering_context</span>)
@@ -226,11 +226,11 @@ Forwards method call to the next decoration in the chain.
226
226
  </div>
227
227
  </div>
228
228
 
229
- <div id="method-M000216" class="method-detail">
230
- <a name="M000216"></a>
229
+ <div id="method-M000281" class="method-detail">
230
+ <a name="M000281"></a>
231
231
 
232
232
  <div class="method-heading">
233
- <a href="#M000216" class="method-signature">
233
+ <a href="#M000281" class="method-signature">
234
234
  <span class="method-name">global?</span><span class="method-args">()</span>
235
235
  </a>
236
236
  </div>
@@ -246,8 +246,8 @@ decoration is added in front of all other local decorations but after all
246
246
  global decorations.
247
247
  </p>
248
248
  <p><a class="source-toggle" href="#"
249
- onclick="toggleCode('M000216-source');return false;">[Source]</a></p>
250
- <div class="method-source-code" id="M000216-source">
249
+ onclick="toggleCode('M000281-source');return false;">[Source]</a></p>
250
+ <div class="method-source-code" id="M000281-source">
251
251
  <pre>
252
252
  <span class="ruby-comment cmt"># File lib/wee/core/decoration.rb, line 43</span>
253
253
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">global?</span>() <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">end</span>
@@ -256,12 +256,12 @@ global decorations.
256
256
  </div>
257
257
  </div>
258
258
 
259
- <div id="method-M000217" class="method-detail">
260
- <a name="M000217"></a>
259
+ <div id="method-M000282" class="method-detail">
260
+ <a name="M000282"></a>
261
261
 
262
262
  <div class="method-heading">
263
- <a href="#M000217" class="method-signature">
264
- <span class="method-name">process_callbacks</span><span class="method-args">(callback_stream)</span>
263
+ <a href="#M000282" class="method-signature">
264
+ <span class="method-name">process_callbacks</span><span class="method-args">(&amp;block)</span>
265
265
  </a>
266
266
  </div>
267
267
 
@@ -270,12 +270,12 @@ global decorations.
270
270
  Forwards method call to the next decoration in the chain.
271
271
  </p>
272
272
  <p><a class="source-toggle" href="#"
273
- onclick="toggleCode('M000217-source');return false;">[Source]</a></p>
274
- <div class="method-source-code" id="M000217-source">
273
+ onclick="toggleCode('M000282-source');return false;">[Source]</a></p>
274
+ <div class="method-source-code" id="M000282-source">
275
275
  <pre>
276
276
  <span class="ruby-comment cmt"># File lib/wee/core/decoration.rb, line 47</span>
277
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_callbacks</span>(<span class="ruby-identifier">callback_stream</span>)
278
- <span class="ruby-ivar">@owner</span>.<span class="ruby-identifier">process_callbacks</span>(<span class="ruby-identifier">callback_stream</span>)
277
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_callbacks</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
278
+ <span class="ruby-ivar">@owner</span>.<span class="ruby-identifier">process_callbacks</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
279
279
  <span class="ruby-keyword kw">end</span>
280
280
  </pre>
281
281
  </div>
@@ -285,7 +285,7 @@ Forwards method call to the next decoration in the chain.
285
285
 
286
286
  </div>
287
287
  <div id="section">
288
- <h2 class="section-title"><a name="SEC00084">Snapshot</a></h2>
288
+ <h2 class="section-title"><a name="SEC00092">Snapshot</a></h2>
289
289
  <div class="section-comment">
290
290
 
291
291
  </div>
@@ -301,19 +301,19 @@ Forwards method call to the next decoration in the chain.
301
301
  <div id="methods">
302
302
  <h3 class="section-bar">Public Instance methods</h3>
303
303
 
304
- <div id="method-M000221" class="method-detail">
305
- <a name="M000221"></a>
304
+ <div id="method-M000286" class="method-detail">
305
+ <a name="M000286"></a>
306
306
 
307
307
  <div class="method-heading">
308
- <a href="#M000221" class="method-signature">
308
+ <a href="#M000286" class="method-signature">
309
309
  <span class="method-name">restore_snapshot</span><span class="method-args">(snap)</span>
310
310
  </a>
311
311
  </div>
312
312
 
313
313
  <div class="method-description">
314
314
  <p><a class="source-toggle" href="#"
315
- onclick="toggleCode('M000221-source');return false;">[Source]</a></p>
316
- <div class="method-source-code" id="M000221-source">
315
+ onclick="toggleCode('M000286-source');return false;">[Source]</a></p>
316
+ <div class="method-source-code" id="M000286-source">
317
317
  <pre>
318
318
  <span class="ruby-comment cmt"># File lib/wee/core/decoration.rb, line 78</span>
319
319
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restore_snapshot</span>(<span class="ruby-identifier">snap</span>)
@@ -324,11 +324,11 @@ Forwards method call to the next decoration in the chain.
324
324
  </div>
325
325
  </div>
326
326
 
327
- <div id="method-M000220" class="method-detail">
328
- <a name="M000220"></a>
327
+ <div id="method-M000285" class="method-detail">
328
+ <a name="M000285"></a>
329
329
 
330
330
  <div class="method-heading">
331
- <a href="#M000220" class="method-signature">
331
+ <a href="#M000285" class="method-signature">
332
332
  <span class="method-name">take_snapshot</span><span class="method-args">()</span>
333
333
  </a>
334
334
  </div>
@@ -336,14 +336,14 @@ Forwards method call to the next decoration in the chain.
336
336
  <div class="method-description">
337
337
  <p>
338
338
  We have to save the @owner attribute to be able to correctly backtrack
339
- calls, as method <a href="Component.html#M000268">Wee::Component#call</a>
339
+ calls, as method <a href="Component.html#M000340">Wee::Component#call</a>
340
340
  modifies it in the call to <tt>component.remove_decoration(answer)</tt>.
341
341
  Removing the answer-decoration has the advantage to be able to call a
342
342
  component more than once!
343
343
  </p>
344
344
  <p><a class="source-toggle" href="#"
345
- onclick="toggleCode('M000220-source');return false;">[Source]</a></p>
346
- <div class="method-source-code" id="M000220-source">
345
+ onclick="toggleCode('M000285-source');return false;">[Source]</a></p>
346
+ <div class="method-source-code" id="M000285-source">
347
347
  <pre>
348
348
  <span class="ruby-comment cmt"># File lib/wee/core/decoration.rb, line 74</span>
349
349
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">take_snapshot</span>
@@ -83,9 +83,9 @@
83
83
  <div id="description">
84
84
  <p>
85
85
  A <a href="Delegate.html">Wee::Delegate</a> breaks the decoration chain and
86
- forwards the methods <a href="Delegate.html#M000306">process_callbacks</a>,
87
- <a href="Delegate.html#M000307">do_render</a> and <a
88
- href="Delegate.html#M000308">backtrack_state</a> to the corresponding
86
+ forwards the methods <a href="Delegate.html#M000397">process_callbacks</a>,
87
+ <a href="Delegate.html#M000398">do_render</a> and <a
88
+ href="Delegate.html#M000399">backtrack_state</a> to the corresponding
89
89
  <b>chain</b> method of it&#8217;s <em>delegate</em> component (a <a
90
90
  href="Component.html">Wee::Component</a>).
91
91
  </p>
@@ -99,10 +99,10 @@ href="Component.html">Wee::Component</a>).
99
99
  <h3 class="section-bar">Methods</h3>
100
100
 
101
101
  <div class="name-list">
102
- <a href="#M000308">backtrack_state</a>&nbsp;&nbsp;
103
- <a href="#M000307">do_render</a>&nbsp;&nbsp;
104
- <a href="#M000305">new</a>&nbsp;&nbsp;
105
- <a href="#M000306">process_callbacks</a>&nbsp;&nbsp;
102
+ <a href="#M000399">backtrack_state</a>&nbsp;&nbsp;
103
+ <a href="#M000398">do_render</a>&nbsp;&nbsp;
104
+ <a href="#M000396">new</a>&nbsp;&nbsp;
105
+ <a href="#M000397">process_callbacks</a>&nbsp;&nbsp;
106
106
  </div>
107
107
  </div>
108
108
 
@@ -124,19 +124,19 @@ href="Component.html">Wee::Component</a>).
124
124
  <div id="methods">
125
125
  <h3 class="section-bar">Public Class methods</h3>
126
126
 
127
- <div id="method-M000305" class="method-detail">
128
- <a name="M000305"></a>
127
+ <div id="method-M000396" class="method-detail">
128
+ <a name="M000396"></a>
129
129
 
130
130
  <div class="method-heading">
131
- <a href="#M000305" class="method-signature">
131
+ <a href="#M000396" class="method-signature">
132
132
  <span class="method-name">new</span><span class="method-args">(delegate)</span>
133
133
  </a>
134
134
  </div>
135
135
 
136
136
  <div class="method-description">
137
137
  <p><a class="source-toggle" href="#"
138
- onclick="toggleCode('M000305-source');return false;">[Source]</a></p>
139
- <div class="method-source-code" id="M000305-source">
138
+ onclick="toggleCode('M000396-source');return false;">[Source]</a></p>
139
+ <div class="method-source-code" id="M000396-source">
140
140
  <pre>
141
141
  <span class="ruby-comment cmt"># File lib/wee/core/decoration.rb, line 89</span>
142
142
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">delegate</span>)
@@ -149,11 +149,11 @@ href="Component.html">Wee::Component</a>).
149
149
 
150
150
  <h3 class="section-bar">Public Instance methods</h3>
151
151
 
152
- <div id="method-M000308" class="method-detail">
153
- <a name="M000308"></a>
152
+ <div id="method-M000399" class="method-detail">
153
+ <a name="M000399"></a>
154
154
 
155
155
  <div class="method-heading">
156
- <a href="#M000308" class="method-signature">
156
+ <a href="#M000399" class="method-signature">
157
157
  <span class="method-name">backtrack_state</span><span class="method-args">(snapshot)</span>
158
158
  </a>
159
159
  </div>
@@ -165,8 +165,8 @@ Forwards method to the corresponding top-level <b>chain</b> method of the
165
165
  components, thus we follow the @owner (via super).
166
166
  </p>
167
167
  <p><a class="source-toggle" href="#"
168
- onclick="toggleCode('M000308-source');return false;">[Source]</a></p>
169
- <div class="method-source-code" id="M000308-source">
168
+ onclick="toggleCode('M000399-source');return false;">[Source]</a></p>
169
+ <div class="method-source-code" id="M000399-source">
170
170
  <pre>
171
171
  <span class="ruby-comment cmt"># File lib/wee/core/decoration.rb, line 111</span>
172
172
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">backtrack_state</span>(<span class="ruby-identifier">snapshot</span>)
@@ -178,11 +178,11 @@ components, thus we follow the @owner (via super).
178
178
  </div>
179
179
  </div>
180
180
 
181
- <div id="method-M000307" class="method-detail">
182
- <a name="M000307"></a>
181
+ <div id="method-M000398" class="method-detail">
182
+ <a name="M000398"></a>
183
183
 
184
184
  <div class="method-heading">
185
- <a href="#M000307" class="method-signature">
185
+ <a href="#M000398" class="method-signature">
186
186
  <span class="method-name">do_render</span><span class="method-args">(rendering_context)</span>
187
187
  </a>
188
188
  </div>
@@ -193,8 +193,8 @@ Forwards method to the corresponding top-level <b>chain</b> method of the
193
193
  <em>delegate</em> component.
194
194
  </p>
195
195
  <p><a class="source-toggle" href="#"
196
- onclick="toggleCode('M000307-source');return false;">[Source]</a></p>
197
- <div class="method-source-code" id="M000307-source">
196
+ onclick="toggleCode('M000398-source');return false;">[Source]</a></p>
197
+ <div class="method-source-code" id="M000398-source">
198
198
  <pre>
199
199
  <span class="ruby-comment cmt"># File lib/wee/core/decoration.rb, line 103</span>
200
200
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">do_render</span>(<span class="ruby-identifier">rendering_context</span>)
@@ -205,12 +205,12 @@ Forwards method to the corresponding top-level <b>chain</b> method of the
205
205
  </div>
206
206
  </div>
207
207
 
208
- <div id="method-M000306" class="method-detail">
209
- <a name="M000306"></a>
208
+ <div id="method-M000397" class="method-detail">
209
+ <a name="M000397"></a>
210
210
 
211
211
  <div class="method-heading">
212
- <a href="#M000306" class="method-signature">
213
- <span class="method-name">process_callbacks</span><span class="method-args">(callback_stream)</span>
212
+ <a href="#M000397" class="method-signature">
213
+ <span class="method-name">process_callbacks</span><span class="method-args">(&amp;block)</span>
214
214
  </a>
215
215
  </div>
216
216
 
@@ -220,12 +220,12 @@ Forwards method to the corresponding top-level <b>chain</b> method of the
220
220
  <em>delegate</em> component.
221
221
  </p>
222
222
  <p><a class="source-toggle" href="#"
223
- onclick="toggleCode('M000306-source');return false;">[Source]</a></p>
224
- <div class="method-source-code" id="M000306-source">
223
+ onclick="toggleCode('M000397-source');return false;">[Source]</a></p>
224
+ <div class="method-source-code" id="M000397-source">
225
225
  <pre>
226
226
  <span class="ruby-comment cmt"># File lib/wee/core/decoration.rb, line 96</span>
227
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_callbacks</span>(<span class="ruby-identifier">callback_stream</span>)
228
- <span class="ruby-ivar">@delegate</span>.<span class="ruby-identifier">process_callbacks_chain</span>(<span class="ruby-identifier">callback_stream</span>)
227
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_callbacks</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
228
+ <span class="ruby-ivar">@delegate</span>.<span class="ruby-identifier">process_callbacks_chain</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
229
229
  <span class="ruby-keyword kw">end</span>
230
230
  </pre>
231
231
  </div>
@@ -0,0 +1,164 @@
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>Module: Wee::DupReplaceSnapshotMixin</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>Module</strong></td>
53
+ <td class="class-name-in-header">Wee::DupReplaceSnapshotMixin</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/wee/snapshot_ext_rb.html">
59
+ lib/wee/snapshot_ext.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+
76
+
77
+ </div>
78
+
79
+ <div id="method-list">
80
+ <h3 class="section-bar">Methods</h3>
81
+
82
+ <div class="name-list">
83
+ <a href="#M000112">restore_snapshot</a>&nbsp;&nbsp;
84
+ <a href="#M000111">take_snapshot</a>&nbsp;&nbsp;
85
+ </div>
86
+ </div>
87
+
88
+ </div>
89
+
90
+
91
+ <!-- if includes -->
92
+
93
+ <div id="section">
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+ <!-- if method_list -->
103
+ <div id="methods">
104
+ <h3 class="section-bar">Public Instance methods</h3>
105
+
106
+ <div id="method-M000112" class="method-detail">
107
+ <a name="M000112"></a>
108
+
109
+ <div class="method-heading">
110
+ <a href="#M000112" class="method-signature">
111
+ <span class="method-name">restore_snapshot</span><span class="method-args">(snap)</span>
112
+ </a>
113
+ </div>
114
+
115
+ <div class="method-description">
116
+ <p><a class="source-toggle" href="#"
117
+ onclick="toggleCode('M000112-source');return false;">[Source]</a></p>
118
+ <div class="method-source-code" id="M000112-source">
119
+ <pre>
120
+ <span class="ruby-comment cmt"># File lib/wee/snapshot_ext.rb, line 22</span>
121
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restore_snapshot</span>(<span class="ruby-identifier">snap</span>)
122
+ <span class="ruby-identifier">replace</span>(<span class="ruby-identifier">snap</span>)
123
+ <span class="ruby-keyword kw">end</span>
124
+ </pre>
125
+ </div>
126
+ </div>
127
+ </div>
128
+
129
+ <div id="method-M000111" class="method-detail">
130
+ <a name="M000111"></a>
131
+
132
+ <div class="method-heading">
133
+ <a href="#M000111" class="method-signature">
134
+ <span class="method-name">take_snapshot</span><span class="method-args">()</span>
135
+ </a>
136
+ </div>
137
+
138
+ <div class="method-description">
139
+ <p><a class="source-toggle" href="#"
140
+ onclick="toggleCode('M000111-source');return false;">[Source]</a></p>
141
+ <div class="method-source-code" id="M000111-source">
142
+ <pre>
143
+ <span class="ruby-comment cmt"># File lib/wee/snapshot_ext.rb, line 18</span>
144
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">take_snapshot</span>
145
+ <span class="ruby-identifier">dup</span>
146
+ <span class="ruby-keyword kw">end</span>
147
+ </pre>
148
+ </div>
149
+ </div>
150
+ </div>
151
+
152
+
153
+ </div>
154
+
155
+
156
+ </div>
157
+
158
+
159
+ <div id="validator-badges">
160
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
161
+ </div>
162
+
163
+ </body>
164
+ </html>