wee 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. data/ChangeLog +18 -0
  2. data/doc/rdoc/classes/Enumerable.html +6 -6
  3. data/doc/rdoc/classes/Object.html +12 -12
  4. data/doc/rdoc/classes/OgScaffolder.html +53 -6
  5. data/doc/rdoc/classes/OgScaffolder/Editor.html +182 -107
  6. data/doc/rdoc/classes/String.html +12 -12
  7. data/doc/rdoc/classes/Wee/AnswerDecoration.html +9 -9
  8. data/doc/rdoc/classes/Wee/Application.html +42 -42
  9. data/doc/rdoc/classes/Wee/Brush.html +18 -18
  10. data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +7 -7
  11. data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +7 -7
  12. data/doc/rdoc/classes/Wee/Brush/FormTag.html +14 -14
  13. data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
  14. data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +6 -6
  15. data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +84 -84
  16. data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
  17. data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +15 -15
  18. data/doc/rdoc/classes/Wee/Brush/ImageTag.html +18 -18
  19. data/doc/rdoc/classes/Wee/Brush/InputTag.html +12 -12
  20. data/doc/rdoc/classes/Wee/Brush/JavascriptTag.html +6 -6
  21. data/doc/rdoc/classes/Wee/Brush/Page.html +14 -14
  22. data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +31 -23
  23. data/doc/rdoc/classes/Wee/Brush/SelectListTag/SelectListCallback.html +11 -7
  24. data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +6 -6
  25. data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +7 -7
  26. data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +14 -14
  27. data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +7 -7
  28. data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +36 -36
  29. data/doc/rdoc/classes/Wee/Brush/TableTag.html +6 -6
  30. data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +12 -12
  31. data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +7 -7
  32. data/doc/rdoc/classes/Wee/CallbackRegistry.html +36 -36
  33. data/doc/rdoc/classes/Wee/CallbackStream.html +18 -18
  34. data/doc/rdoc/classes/Wee/Canvas.html +24 -24
  35. data/doc/rdoc/classes/Wee/Component.html +124 -124
  36. data/doc/rdoc/classes/Wee/Component/OnAnswer.html +6 -6
  37. data/doc/rdoc/classes/Wee/Decoration.html +40 -40
  38. data/doc/rdoc/classes/Wee/Delegate.html +27 -27
  39. data/doc/rdoc/classes/Wee/ErrorResponse.html +12 -12
  40. data/doc/rdoc/classes/Wee/FormDecoration.html +6 -6
  41. data/doc/rdoc/classes/Wee/GenericResponse.html +6 -6
  42. data/doc/rdoc/classes/Wee/HtmlCanvas.html +214 -214
  43. data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
  44. data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +12 -12
  45. data/doc/rdoc/classes/Wee/Md5IdGenerator.html +12 -12
  46. data/doc/rdoc/classes/Wee/MessageBox.html +12 -12
  47. data/doc/rdoc/classes/Wee/PageDecoration.html +18 -18
  48. data/doc/rdoc/classes/Wee/PagelessApplication.html +6 -6
  49. data/doc/rdoc/classes/Wee/PagelessRequest.html +12 -12
  50. data/doc/rdoc/classes/Wee/PagelessSession.html +24 -24
  51. data/doc/rdoc/classes/Wee/Presenter.html +85 -85
  52. data/doc/rdoc/classes/Wee/RedirectResponse.html +6 -6
  53. data/doc/rdoc/classes/Wee/RefreshResponse.html +6 -6
  54. data/doc/rdoc/classes/Wee/Request.html +30 -30
  55. data/doc/rdoc/classes/Wee/RequestHandler.html +31 -31
  56. data/doc/rdoc/classes/Wee/Response.html +36 -36
  57. data/doc/rdoc/classes/Wee/Session.html +104 -104
  58. data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +12 -12
  59. data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
  60. data/doc/rdoc/classes/Wee/Utils.html +19 -19
  61. data/doc/rdoc/classes/Wee/Utils/LRUCache.html +6 -6
  62. data/doc/rdoc/classes/Wee/ValueHolder.html +18 -18
  63. data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +46 -46
  64. data/doc/rdoc/classes/Wee/WrapperDecoration.html +6 -6
  65. data/doc/rdoc/created.rid +1 -1
  66. data/doc/rdoc/files/README.html +5 -5
  67. data/doc/rdoc/files/lib/wee/core_rb.html +3 -3
  68. data/doc/rdoc/files/lib/wee/databases/og/scaffolder_rb.html +8 -1
  69. data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
  70. data/doc/rdoc/fr_method_index.html +268 -264
  71. data/lib/wee.rb +1 -1
  72. data/lib/wee/databases/og/scaffolder.rb +62 -17
  73. data/lib/wee/renderer/html/brushes.rb +17 -5
  74. metadata +21 -21
data/ChangeLog CHANGED
@@ -1,3 +1,21 @@
1
+ --------------------------------------------------------------------
2
+ TAGGED 0.7.0
3
+ --------------------------------------------------------------------
4
+
5
+ Tue Feb 1 19:58:08 CET 2005 Michael Neumann <mneumann@ntecs.de>
6
+
7
+ * SelectListTag (r.select_list): NON-backwards-compatible change!!!
8
+ If it's NOT a multiple select list, then the callback is called
9
+ with the choosen value (instead of an array of one element). Method
10
+ #selected requires a single value in the same way. No changes if it's
11
+ a multiple-select list!
12
+
13
+ * minor refactoring of OgScaffolder (added support for Date type).
14
+
15
+ --------------------------------------------------------------------
16
+ TAGGED 0.6.0
17
+ --------------------------------------------------------------------
18
+
1
19
  Sat Jan 29 19:06:12 CET 2005 Michael Neumann <mneumann@ntecs.de>
2
20
 
3
21
  * Added ERB-templating. Example:
@@ -86,7 +86,7 @@ for Ruby 1.8
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000314">min_by</a>&nbsp;&nbsp;
89
+ <a href="#M000318">min_by</a>&nbsp;&nbsp;
90
90
  </div>
91
91
  </div>
92
92
 
@@ -108,19 +108,19 @@ for Ruby 1.8
108
108
  <div id="methods">
109
109
  <h3 class="section-bar">Public Instance methods</h3>
110
110
 
111
- <div id="method-M000314" class="method-detail">
112
- <a name="M000314"></a>
111
+ <div id="method-M000318" class="method-detail">
112
+ <a name="M000318"></a>
113
113
 
114
114
  <div class="method-heading">
115
- <a href="#M000314" class="method-signature">
115
+ <a href="#M000318" class="method-signature">
116
116
  <span class="method-name">min_by</span><span class="method-args">(&amp;block)</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('M000314-source');return false;">[Source]</a></p>
123
- <div class="method-source-code" id="M000314-source">
122
+ onclick="toggleCode('M000318-source');return false;">[Source]</a></p>
123
+ <div class="method-source-code" id="M000318-source">
124
124
  <pre>
125
125
  <span class="ruby-comment cmt"># File lib/cache/cache.rb, line 4</span>
126
126
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">min_by</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -88,8 +88,8 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000074">restore_snapshot</a>&nbsp;&nbsp;
92
- <a href="#M000073">take_snapshot</a>&nbsp;&nbsp;
91
+ <a href="#M000078">restore_snapshot</a>&nbsp;&nbsp;
92
+ <a href="#M000077">take_snapshot</a>&nbsp;&nbsp;
93
93
  </div>
94
94
  </div>
95
95
 
@@ -111,19 +111,19 @@
111
111
  <div id="methods">
112
112
  <h3 class="section-bar">Public Instance methods</h3>
113
113
 
114
- <div id="method-M000074" class="method-detail">
115
- <a name="M000074"></a>
114
+ <div id="method-M000078" class="method-detail">
115
+ <a name="M000078"></a>
116
116
 
117
117
  <div class="method-heading">
118
- <a href="#M000074" class="method-signature">
118
+ <a href="#M000078" class="method-signature">
119
119
  <span class="method-name">restore_snapshot</span><span class="method-args">(snap)</span>
120
120
  </a>
121
121
  </div>
122
122
 
123
123
  <div class="method-description">
124
124
  <p><a class="source-toggle" href="#"
125
- onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
126
- <div class="method-source-code" id="M000074-source">
125
+ onclick="toggleCode('M000078-source');return false;">[Source]</a></p>
126
+ <div class="method-source-code" id="M000078-source">
127
127
  <pre>
128
128
  <span class="ruby-comment cmt"># File lib/wee/snapshot_ext.rb, line 10</span>
129
129
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restore_snapshot</span>(<span class="ruby-identifier">snap</span>)
@@ -136,19 +136,19 @@
136
136
  </div>
137
137
  </div>
138
138
 
139
- <div id="method-M000073" class="method-detail">
140
- <a name="M000073"></a>
139
+ <div id="method-M000077" class="method-detail">
140
+ <a name="M000077"></a>
141
141
 
142
142
  <div class="method-heading">
143
- <a href="#M000073" class="method-signature">
143
+ <a href="#M000077" class="method-signature">
144
144
  <span class="method-name">take_snapshot</span><span class="method-args">()</span>
145
145
  </a>
146
146
  </div>
147
147
 
148
148
  <div class="method-description">
149
149
  <p><a class="source-toggle" href="#"
150
- onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
151
- <div class="method-source-code" id="M000073-source">
150
+ onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
151
+ <div class="method-source-code" id="M000077-source">
152
152
  <pre>
153
153
  <span class="ruby-comment cmt"># File lib/wee/snapshot_ext.rb, line 2</span>
154
154
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">take_snapshot</span>
@@ -109,6 +109,8 @@ href="http://navel.gr/nitro">navel.gr/nitro</a>) domain objects.
109
109
  <a href="#M000058">domain_objects</a>&nbsp;&nbsp;
110
110
  <a href="#M000039">edit</a>&nbsp;&nbsp;
111
111
  <a href="#M000054">edit</a>&nbsp;&nbsp;
112
+ <a href="#M000059">editor_class</a>&nbsp;&nbsp;
113
+ <a href="#M000060">editor_for</a>&nbsp;&nbsp;
112
114
  <a href="#M000045">new</a>&nbsp;&nbsp;
113
115
  <a href="#M000036">new</a>&nbsp;&nbsp;
114
116
  <a href="#M000042">refresh</a>&nbsp;&nbsp;
@@ -218,8 +220,7 @@ href="http://navel.gr/nitro">navel.gr/nitro</a>) domain objects.
218
220
  <pre>
219
221
  <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 70</span>
220
222
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>
221
- <span class="ruby-identifier">call</span> <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@domain_class</span>.<span class="ruby-identifier">new</span>, <span class="ruby-value str">&quot;Create&quot;</span>).
222
- <span class="ruby-identifier">add_decoration</span>(<span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">FormDecoration</span>.<span class="ruby-identifier">new</span>)
223
+ <span class="ruby-identifier">call</span> <span class="ruby-identifier">editor_for</span>(<span class="ruby-ivar">@domain_class</span>.<span class="ruby-identifier">new</span>)
223
224
  <span class="ruby-keyword kw">end</span>
224
225
  </pre>
225
226
  </div>
@@ -290,7 +291,7 @@ href="http://navel.gr/nitro">navel.gr/nitro</a>) domain objects.
290
291
  onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
291
292
  <div class="method-source-code" id="M000057-source">
292
293
  <pre>
293
- <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 80</span>
294
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 79</span>
294
295
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">confirm_destroy</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-identifier">confirmed</span>)
295
296
  <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">delete!</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">confirmed</span>
296
297
  <span class="ruby-keyword kw">end</span>
@@ -359,7 +360,7 @@ href="http://navel.gr/nitro">navel.gr/nitro</a>) domain objects.
359
360
  onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
360
361
  <div class="method-source-code" id="M000056-source">
361
362
  <pre>
362
- <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 75</span>
363
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 74</span>
363
364
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">destroy</span>(<span class="ruby-identifier">obj</span>)
364
365
  <span class="ruby-identifier">call</span> <span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">MessageBox</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'Do you really want to destroy the object?'</span>),
365
366
  <span class="ruby-identifier">:confirm_destroy</span>, <span class="ruby-identifier">obj</span>
@@ -383,7 +384,7 @@ href="http://navel.gr/nitro">navel.gr/nitro</a>) domain objects.
383
384
  onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
384
385
  <div class="method-source-code" id="M000058-source">
385
386
  <pre>
386
- <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 84</span>
387
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 83</span>
387
388
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">domain_objects</span>
388
389
  <span class="ruby-ivar">@domain_class</span>.<span class="ruby-identifier">all</span> <span class="ruby-operator">||</span> []
389
390
  <span class="ruby-keyword kw">end</span>
@@ -431,7 +432,53 @@ href="http://navel.gr/nitro">navel.gr/nitro</a>) domain objects.
431
432
  <pre>
432
433
  <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 66</span>
433
434
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">edit</span>(<span class="ruby-identifier">obj</span>)
434
- <span class="ruby-identifier">call</span> <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">obj</span>).<span class="ruby-identifier">add_decoration</span>(<span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">FormDecoration</span>.<span class="ruby-identifier">new</span>)
435
+ <span class="ruby-identifier">call</span> <span class="ruby-identifier">editor_for</span>(<span class="ruby-identifier">obj</span>)
436
+ <span class="ruby-keyword kw">end</span>
437
+ </pre>
438
+ </div>
439
+ </div>
440
+ </div>
441
+
442
+ <div id="method-M000059" class="method-detail">
443
+ <a name="M000059"></a>
444
+
445
+ <div class="method-heading">
446
+ <a href="#M000059" class="method-signature">
447
+ <span class="method-name">editor_class</span><span class="method-args">()</span>
448
+ </a>
449
+ </div>
450
+
451
+ <div class="method-description">
452
+ <p><a class="source-toggle" href="#"
453
+ onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
454
+ <div class="method-source-code" id="M000059-source">
455
+ <pre>
456
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 87</span>
457
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">editor_class</span>
458
+ <span class="ruby-constant">Editor</span>
459
+ <span class="ruby-keyword kw">end</span>
460
+ </pre>
461
+ </div>
462
+ </div>
463
+ </div>
464
+
465
+ <div id="method-M000060" class="method-detail">
466
+ <a name="M000060"></a>
467
+
468
+ <div class="method-heading">
469
+ <a href="#M000060" class="method-signature">
470
+ <span class="method-name">editor_for</span><span class="method-args">(obj)</span>
471
+ </a>
472
+ </div>
473
+
474
+ <div class="method-description">
475
+ <p><a class="source-toggle" href="#"
476
+ onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
477
+ <div class="method-source-code" id="M000060-source">
478
+ <pre>
479
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 91</span>
480
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">editor_for</span>(<span class="ruby-identifier">obj</span>)
481
+ <span class="ruby-identifier">editor_class</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">obj</span>).<span class="ruby-identifier">add_decoration</span>(<span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">FormDecoration</span>.<span class="ruby-identifier">new</span>)
435
482
  <span class="ruby-keyword kw">end</span>
436
483
  </pre>
437
484
  </div>
@@ -88,20 +88,22 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000072">cancel</a>&nbsp;&nbsp;
92
- <a href="#M000068">each_property</a>&nbsp;&nbsp;
93
- <a href="#M000069">get_value_of</a>&nbsp;&nbsp;
94
- <a href="#M000059">new</a>&nbsp;&nbsp;
95
- <a href="#M000060">render</a>&nbsp;&nbsp;
96
- <a href="#M000065">render_bool</a>&nbsp;&nbsp;
97
- <a href="#M000066">render_buttons</a>&nbsp;&nbsp;
98
- <a href="#M000061">render_header</a>&nbsp;&nbsp;
99
- <a href="#M000067">render_label</a>&nbsp;&nbsp;
100
- <a href="#M000063">render_numeric</a>&nbsp;&nbsp;
101
- <a href="#M000062">render_property</a>&nbsp;&nbsp;
102
- <a href="#M000064">render_string</a>&nbsp;&nbsp;
103
- <a href="#M000071">save</a>&nbsp;&nbsp;
104
- <a href="#M000070">set_value_of</a>&nbsp;&nbsp;
91
+ <a href="#M000073">cancel</a>&nbsp;&nbsp;
92
+ <a href="#M000071">each_property</a>&nbsp;&nbsp;
93
+ <a href="#M000074">get_value_of</a>&nbsp;&nbsp;
94
+ <a href="#M000061">new</a>&nbsp;&nbsp;
95
+ <a href="#M000062">render</a>&nbsp;&nbsp;
96
+ <a href="#M000067">render_bool</a>&nbsp;&nbsp;
97
+ <a href="#M000069">render_buttons</a>&nbsp;&nbsp;
98
+ <a href="#M000068">render_date</a>&nbsp;&nbsp;
99
+ <a href="#M000063">render_header</a>&nbsp;&nbsp;
100
+ <a href="#M000070">render_label</a>&nbsp;&nbsp;
101
+ <a href="#M000065">render_numeric</a>&nbsp;&nbsp;
102
+ <a href="#M000064">render_property</a>&nbsp;&nbsp;
103
+ <a href="#M000066">render_string</a>&nbsp;&nbsp;
104
+ <a href="#M000072">save</a>&nbsp;&nbsp;
105
+ <a href="#M000076">set_date_of</a>&nbsp;&nbsp;
106
+ <a href="#M000075">set_value_of</a>&nbsp;&nbsp;
105
107
  </div>
106
108
  </div>
107
109
 
@@ -123,25 +125,24 @@
123
125
  <div id="methods">
124
126
  <h3 class="section-bar">Public Class methods</h3>
125
127
 
126
- <div id="method-M000059" class="method-detail">
127
- <a name="M000059"></a>
128
+ <div id="method-M000061" class="method-detail">
129
+ <a name="M000061"></a>
128
130
 
129
131
  <div class="method-heading">
130
- <a href="#M000059" class="method-signature">
131
- <span class="method-name">new</span><span class="method-args">(domain_object, action=&quot;Edit&quot;)</span>
132
+ <a href="#M000061" class="method-signature">
133
+ <span class="method-name">new</span><span class="method-args">(domain_object)</span>
132
134
  </a>
133
135
  </div>
134
136
 
135
137
  <div class="method-description">
136
138
  <p><a class="source-toggle" href="#"
137
- onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
138
- <div class="method-source-code" id="M000059-source">
139
+ onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
140
+ <div class="method-source-code" id="M000061-source">
139
141
  <pre>
140
- <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 91</span>
141
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">domain_object</span>, <span class="ruby-identifier">action</span>=<span class="ruby-value str">&quot;Edit&quot;</span>)
142
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 98</span>
143
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">domain_object</span>)
142
144
  <span class="ruby-keyword kw">super</span>()
143
145
  <span class="ruby-ivar">@domain_object</span> = <span class="ruby-identifier">domain_object</span>
144
- <span class="ruby-ivar">@action</span> = <span class="ruby-identifier">action</span>
145
146
  <span class="ruby-keyword kw">end</span>
146
147
  </pre>
147
148
  </div>
@@ -150,25 +151,28 @@
150
151
 
151
152
  <h3 class="section-bar">Public Instance methods</h3>
152
153
 
153
- <div id="method-M000060" class="method-detail">
154
- <a name="M000060"></a>
154
+ <div id="method-M000062" class="method-detail">
155
+ <a name="M000062"></a>
155
156
 
156
157
  <div class="method-heading">
157
- <a href="#M000060" class="method-signature">
158
+ <a href="#M000062" class="method-signature">
158
159
  <span class="method-name">render</span><span class="method-args">()</span>
159
160
  </a>
160
161
  </div>
161
162
 
162
163
  <div class="method-description">
163
164
  <p><a class="source-toggle" href="#"
164
- onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
165
- <div class="method-source-code" id="M000060-source">
165
+ onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
166
+ <div class="method-source-code" id="M000062-source">
166
167
  <pre>
167
- <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 97</span>
168
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 103</span>
168
169
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>
169
170
  <span class="ruby-identifier">render_header</span>
170
171
  <span class="ruby-identifier">each_property</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">prop</span><span class="ruby-operator">|</span>
171
- <span class="ruby-identifier">render_property</span>(<span class="ruby-identifier">prop</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">prop</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'oid'</span>
172
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">prop</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'oid'</span>
173
+ <span class="ruby-identifier">render_label</span>(<span class="ruby-identifier">prop</span>)
174
+ <span class="ruby-identifier">render_property</span>(<span class="ruby-identifier">prop</span>)
175
+ <span class="ruby-keyword kw">end</span>
172
176
  }
173
177
  <span class="ruby-identifier">render_buttons</span>
174
178
  <span class="ruby-keyword kw">end</span>
@@ -177,46 +181,46 @@
177
181
  </div>
178
182
  </div>
179
183
 
180
- <div id="method-M000065" class="method-detail">
181
- <a name="M000065"></a>
184
+ <div id="method-M000067" class="method-detail">
185
+ <a name="M000067"></a>
182
186
 
183
187
  <div class="method-heading">
184
- <a href="#M000065" class="method-signature">
188
+ <a href="#M000067" class="method-signature">
185
189
  <span class="method-name">render_bool</span><span class="method-args">(prop)</span>
186
190
  </a>
187
191
  </div>
188
192
 
189
193
  <div class="method-description">
190
194
  <p><a class="source-toggle" href="#"
191
- onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
192
- <div class="method-source-code" id="M000065-source">
195
+ onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
196
+ <div class="method-source-code" id="M000067-source">
193
197
  <pre>
194
- <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 133</span>
198
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 149</span>
195
199
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render_bool</span>(<span class="ruby-identifier">prop</span>)
196
- <span class="ruby-identifier">selected</span> = [ <span class="ruby-identifier">get_value_of</span>(<span class="ruby-identifier">prop</span>) <span class="ruby-operator">?</span> <span class="ruby-keyword kw">true</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">false</span> ]
200
+ <span class="ruby-identifier">selected</span> = <span class="ruby-identifier">get_value_of</span>(<span class="ruby-identifier">prop</span>) <span class="ruby-operator">?</span> <span class="ruby-keyword kw">true</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">false</span>
197
201
  <span class="ruby-identifier">r</span>.<span class="ruby-identifier">select_list</span>([<span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">false</span>]).<span class="ruby-identifier">labels</span>([<span class="ruby-value str">&quot;Yes&quot;</span>, <span class="ruby-value str">&quot;No&quot;</span>]).<span class="ruby-identifier">selected</span>(<span class="ruby-identifier">selected</span>).
198
- <span class="ruby-identifier">callback</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">choosen</span><span class="ruby-operator">|</span> <span class="ruby-identifier">set_value_of</span>(<span class="ruby-identifier">prop</span>, <span class="ruby-identifier">choosen</span>.<span class="ruby-identifier">first</span>) }
202
+ <span class="ruby-identifier">callback</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">choosen</span><span class="ruby-operator">|</span> <span class="ruby-identifier">set_value_of</span>(<span class="ruby-identifier">prop</span>, <span class="ruby-identifier">choosen</span>) }
199
203
  <span class="ruby-keyword kw">end</span>
200
204
  </pre>
201
205
  </div>
202
206
  </div>
203
207
  </div>
204
208
 
205
- <div id="method-M000066" class="method-detail">
206
- <a name="M000066"></a>
209
+ <div id="method-M000069" class="method-detail">
210
+ <a name="M000069"></a>
207
211
 
208
212
  <div class="method-heading">
209
- <a href="#M000066" class="method-signature">
213
+ <a href="#M000069" class="method-signature">
210
214
  <span class="method-name">render_buttons</span><span class="method-args">()</span>
211
215
  </a>
212
216
  </div>
213
217
 
214
218
  <div class="method-description">
215
219
  <p><a class="source-toggle" href="#"
216
- onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
217
- <div class="method-source-code" id="M000066-source">
220
+ onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
221
+ <div class="method-source-code" id="M000069-source">
218
222
  <pre>
219
- <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 139</span>
223
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 169</span>
220
224
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render_buttons</span>
221
225
  <span class="ruby-identifier">r</span>.<span class="ruby-identifier">paragraph</span>
222
226
  <span class="ruby-identifier">r</span>.<span class="ruby-identifier">submit_button</span>.<span class="ruby-identifier">value</span>(<span class="ruby-value str">'Save'</span>).<span class="ruby-identifier">callback</span>(<span class="ruby-identifier">:save</span>)
@@ -228,44 +232,82 @@
228
232
  </div>
229
233
  </div>
230
234
 
231
- <div id="method-M000061" class="method-detail">
232
- <a name="M000061"></a>
235
+ <div id="method-M000068" class="method-detail">
236
+ <a name="M000068"></a>
233
237
 
234
238
  <div class="method-heading">
235
- <a href="#M000061" class="method-signature">
239
+ <a href="#M000068" class="method-signature">
240
+ <span class="method-name">render_date</span><span class="method-args">(prop)</span>
241
+ </a>
242
+ </div>
243
+
244
+ <div class="method-description">
245
+ <p><a class="source-toggle" href="#"
246
+ onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
247
+ <div class="method-source-code" id="M000068-source">
248
+ <pre>
249
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 156</span>
250
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render_date</span>(<span class="ruby-identifier">prop</span>)
251
+ <span class="ruby-identifier">t</span> = <span class="ruby-identifier">get_value_of</span>(<span class="ruby-identifier">prop</span>) <span class="ruby-operator">||</span> <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>
252
+
253
+ <span class="ruby-identifier">m</span> = <span class="ruby-constant">Date</span><span class="ruby-operator">::</span><span class="ruby-constant">MONTHS</span>.<span class="ruby-identifier">invert</span>
254
+ <span class="ruby-identifier">months</span> = (<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">12</span>).<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-identifier">m</span>[<span class="ruby-identifier">i</span>].<span class="ruby-identifier">capitalize</span>}
255
+ <span class="ruby-identifier">r</span>.<span class="ruby-identifier">select_list</span>((<span class="ruby-identifier">t</span>.<span class="ruby-identifier">year</span><span class="ruby-operator">-</span><span class="ruby-value">10</span> <span class="ruby-operator">..</span> <span class="ruby-identifier">t</span>.<span class="ruby-identifier">year</span><span class="ruby-operator">+</span><span class="ruby-value">10</span>).<span class="ruby-identifier">to_a</span>).<span class="ruby-identifier">selected</span>(<span class="ruby-identifier">t</span>.<span class="ruby-identifier">year</span>).<span class="ruby-identifier">callback</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">year</span><span class="ruby-operator">|</span> <span class="ruby-identifier">set_date_of</span>(<span class="ruby-identifier">prop</span>, <span class="ruby-identifier">year</span>, <span class="ruby-identifier">:year</span>) }
256
+ <span class="ruby-identifier">r</span>.<span class="ruby-identifier">space</span>
257
+ <span class="ruby-identifier">r</span>.<span class="ruby-identifier">select_list</span>((<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">12</span>).<span class="ruby-identifier">to_a</span>).<span class="ruby-identifier">labels</span>(<span class="ruby-identifier">months</span>).<span class="ruby-identifier">selected</span>(<span class="ruby-identifier">t</span>.<span class="ruby-identifier">month</span>).<span class="ruby-identifier">callback</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">month</span><span class="ruby-operator">|</span> <span class="ruby-identifier">set_date_of</span>(<span class="ruby-identifier">prop</span>, <span class="ruby-identifier">month</span>, <span class="ruby-identifier">:month</span>) }
258
+ <span class="ruby-identifier">r</span>.<span class="ruby-identifier">space</span>
259
+ <span class="ruby-identifier">r</span>.<span class="ruby-identifier">select_list</span>((<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">31</span>).<span class="ruby-identifier">to_a</span>).<span class="ruby-identifier">selected</span>(<span class="ruby-identifier">t</span>.<span class="ruby-identifier">day</span>).<span class="ruby-identifier">callback</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">day</span><span class="ruby-operator">|</span> <span class="ruby-identifier">set_date_of</span>(<span class="ruby-identifier">prop</span>, <span class="ruby-identifier">day</span>, <span class="ruby-identifier">:day</span>) }
260
+ <span class="ruby-keyword kw">end</span>
261
+ </pre>
262
+ </div>
263
+ </div>
264
+ </div>
265
+
266
+ <div id="method-M000063" class="method-detail">
267
+ <a name="M000063"></a>
268
+
269
+ <div class="method-heading">
270
+ <a href="#M000063" class="method-signature">
236
271
  <span class="method-name">render_header</span><span class="method-args">()</span>
237
272
  </a>
238
273
  </div>
239
274
 
240
275
  <div class="method-description">
241
276
  <p><a class="source-toggle" href="#"
242
- onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
243
- <div class="method-source-code" id="M000061-source">
277
+ onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
278
+ <div class="method-source-code" id="M000063-source">
244
279
  <pre>
245
- <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 105</span>
280
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 114</span>
246
281
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render_header</span>
247
- <span class="ruby-identifier">r</span>.<span class="ruby-identifier">h1</span> <span class="ruby-node">&quot;#{ @action } #{ @domain_object.class }&quot;</span>
282
+ <span class="ruby-identifier">action</span> =
283
+ <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@domain_object</span>.<span class="ruby-identifier">oid</span>.<span class="ruby-identifier">nil?</span>
284
+ <span class="ruby-value str">&quot;Create&quot;</span>
285
+ <span class="ruby-keyword kw">else</span>
286
+ <span class="ruby-value str">&quot;Edit&quot;</span>
287
+ <span class="ruby-keyword kw">end</span>
288
+
289
+ <span class="ruby-identifier">r</span>.<span class="ruby-identifier">h1</span> <span class="ruby-node">&quot;#{ action } #{ @domain_object.class }&quot;</span>
248
290
  <span class="ruby-keyword kw">end</span>
249
291
  </pre>
250
292
  </div>
251
293
  </div>
252
294
  </div>
253
295
 
254
- <div id="method-M000067" class="method-detail">
255
- <a name="M000067"></a>
296
+ <div id="method-M000070" class="method-detail">
297
+ <a name="M000070"></a>
256
298
 
257
299
  <div class="method-heading">
258
- <a href="#M000067" class="method-signature">
300
+ <a href="#M000070" class="method-signature">
259
301
  <span class="method-name">render_label</span><span class="method-args">(prop)</span>
260
302
  </a>
261
303
  </div>
262
304
 
263
305
  <div class="method-description">
264
306
  <p><a class="source-toggle" href="#"
265
- onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
266
- <div class="method-source-code" id="M000067-source">
307
+ onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
308
+ <div class="method-source-code" id="M000070-source">
267
309
  <pre>
268
- <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 146</span>
310
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 176</span>
269
311
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render_label</span>(<span class="ruby-identifier">prop</span>)
270
312
  <span class="ruby-identifier">r</span>.<span class="ruby-identifier">paragraph</span>
271
313
  <span class="ruby-identifier">r</span>.<span class="ruby-identifier">text</span> <span class="ruby-identifier">prop</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">capitalize</span>
@@ -276,21 +318,21 @@
276
318
  </div>
277
319
  </div>
278
320
 
279
- <div id="method-M000063" class="method-detail">
280
- <a name="M000063"></a>
321
+ <div id="method-M000065" class="method-detail">
322
+ <a name="M000065"></a>
281
323
 
282
324
  <div class="method-heading">
283
- <a href="#M000063" class="method-signature">
325
+ <a href="#M000065" class="method-signature">
284
326
  <span class="method-name">render_numeric</span><span class="method-args">(prop)</span>
285
327
  </a>
286
328
  </div>
287
329
 
288
330
  <div class="method-description">
289
331
  <p><a class="source-toggle" href="#"
290
- onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
291
- <div class="method-source-code" id="M000063-source">
332
+ onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
333
+ <div class="method-source-code" id="M000065-source">
292
334
  <pre>
293
- <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 121</span>
335
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 137</span>
294
336
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render_numeric</span>(<span class="ruby-identifier">prop</span>)
295
337
  <span class="ruby-identifier">r</span>.<span class="ruby-identifier">text_input</span>.<span class="ruby-identifier">value</span>(<span class="ruby-identifier">get_value_of</span>(<span class="ruby-identifier">prop</span>)).<span class="ruby-identifier">callback</span>(<span class="ruby-identifier">:set_value_of</span>, <span class="ruby-identifier">prop</span>)
296
338
  <span class="ruby-keyword kw">end</span>
@@ -299,30 +341,30 @@
299
341
  </div>
300
342
  </div>
301
343
 
302
- <div id="method-M000062" class="method-detail">
303
- <a name="M000062"></a>
344
+ <div id="method-M000064" class="method-detail">
345
+ <a name="M000064"></a>
304
346
 
305
347
  <div class="method-heading">
306
- <a href="#M000062" class="method-signature">
348
+ <a href="#M000064" class="method-signature">
307
349
  <span class="method-name">render_property</span><span class="method-args">(prop)</span>
308
350
  </a>
309
351
  </div>
310
352
 
311
353
  <div class="method-description">
312
354
  <p><a class="source-toggle" href="#"
313
- onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
314
- <div class="method-source-code" id="M000062-source">
355
+ onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
356
+ <div class="method-source-code" id="M000064-source">
315
357
  <pre>
316
- <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 109</span>
358
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 125</span>
317
359
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render_property</span>(<span class="ruby-identifier">prop</span>)
318
- <span class="ruby-identifier">render_label</span>(<span class="ruby-identifier">prop</span>)
319
-
320
360
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">prop</span>.<span class="ruby-identifier">klass</span>.<span class="ruby-identifier">ancestors</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-constant">Numeric</span>)
321
361
  <span class="ruby-identifier">render_numeric</span>(<span class="ruby-identifier">prop</span>)
322
362
  <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">prop</span>.<span class="ruby-identifier">klass</span>.<span class="ruby-identifier">ancestors</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-constant">String</span>)
323
363
  <span class="ruby-identifier">render_string</span>(<span class="ruby-identifier">prop</span>)
324
364
  <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">prop</span>.<span class="ruby-identifier">klass</span>.<span class="ruby-identifier">ancestors</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-constant">TrueClass</span>)
325
365
  <span class="ruby-identifier">render_bool</span>(<span class="ruby-identifier">prop</span>)
366
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">prop</span>.<span class="ruby-identifier">klass</span>.<span class="ruby-identifier">ancestors</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-constant">Date</span>)
367
+ <span class="ruby-identifier">render_date</span>(<span class="ruby-identifier">prop</span>)
326
368
  <span class="ruby-keyword kw">end</span>
327
369
  <span class="ruby-keyword kw">end</span>
328
370
  </pre>
@@ -330,21 +372,21 @@
330
372
  </div>
331
373
  </div>
332
374
 
333
- <div id="method-M000064" class="method-detail">
334
- <a name="M000064"></a>
375
+ <div id="method-M000066" class="method-detail">
376
+ <a name="M000066"></a>
335
377
 
336
378
  <div class="method-heading">
337
- <a href="#M000064" class="method-signature">
379
+ <a href="#M000066" class="method-signature">
338
380
  <span class="method-name">render_string</span><span class="method-args">(prop)</span>
339
381
  </a>
340
382
  </div>
341
383
 
342
384
  <div class="method-description">
343
385
  <p><a class="source-toggle" href="#"
344
- onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
345
- <div class="method-source-code" id="M000064-source">
386
+ onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
387
+ <div class="method-source-code" id="M000066-source">
346
388
  <pre>
347
- <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 125</span>
389
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 141</span>
348
390
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render_string</span>(<span class="ruby-identifier">prop</span>)
349
391
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">prop</span>.<span class="ruby-identifier">meta</span>[<span class="ruby-identifier">:ui</span>] <span class="ruby-operator">==</span> <span class="ruby-identifier">:textarea</span>
350
392
  <span class="ruby-identifier">r</span>.<span class="ruby-identifier">text_area</span>.<span class="ruby-identifier">callback</span>(<span class="ruby-identifier">:set_value_of</span>, <span class="ruby-identifier">prop</span>).<span class="ruby-identifier">with</span>(<span class="ruby-identifier">get_value_of</span>(<span class="ruby-identifier">prop</span>))
@@ -359,21 +401,21 @@
359
401
 
360
402
  <h3 class="section-bar">Private Instance methods</h3>
361
403
 
362
- <div id="method-M000072" class="method-detail">
363
- <a name="M000072"></a>
404
+ <div id="method-M000073" class="method-detail">
405
+ <a name="M000073"></a>
364
406
 
365
407
  <div class="method-heading">
366
- <a href="#M000072" class="method-signature">
408
+ <a href="#M000073" class="method-signature">
367
409
  <span class="method-name">cancel</span><span class="method-args">()</span>
368
410
  </a>
369
411
  </div>
370
412
 
371
413
  <div class="method-description">
372
414
  <p><a class="source-toggle" href="#"
373
- onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
374
- <div class="method-source-code" id="M000072-source">
415
+ onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
416
+ <div class="method-source-code" id="M000073-source">
375
417
  <pre>
376
- <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 171</span>
418
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 193</span>
377
419
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cancel</span>
378
420
  <span class="ruby-identifier">answer</span> <span class="ruby-keyword kw">nil</span>
379
421
  <span class="ruby-keyword kw">end</span>
@@ -382,21 +424,21 @@
382
424
  </div>
383
425
  </div>
384
426
 
385
- <div id="method-M000068" class="method-detail">
386
- <a name="M000068"></a>
427
+ <div id="method-M000071" class="method-detail">
428
+ <a name="M000071"></a>
387
429
 
388
430
  <div class="method-heading">
389
- <a href="#M000068" class="method-signature">
431
+ <a href="#M000071" class="method-signature">
390
432
  <span class="method-name">each_property</span><span class="method-args">(&amp;block)</span>
391
433
  </a>
392
434
  </div>
393
435
 
394
436
  <div class="method-description">
395
437
  <p><a class="source-toggle" href="#"
396
- onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
397
- <div class="method-source-code" id="M000068-source">
438
+ onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
439
+ <div class="method-source-code" id="M000071-source">
398
440
  <pre>
399
- <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 154</span>
441
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 184</span>
400
442
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_property</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
401
443
  <span class="ruby-ivar">@domain_object</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">__props</span>.<span class="ruby-identifier">each</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
402
444
  <span class="ruby-keyword kw">end</span>
@@ -405,21 +447,21 @@
405
447
  </div>
406
448
  </div>
407
449
 
408
- <div id="method-M000069" class="method-detail">
409
- <a name="M000069"></a>
450
+ <div id="method-M000074" class="method-detail">
451
+ <a name="M000074"></a>
410
452
 
411
453
  <div class="method-heading">
412
- <a href="#M000069" class="method-signature">
454
+ <a href="#M000074" class="method-signature">
413
455
  <span class="method-name">get_value_of</span><span class="method-args">(prop)</span>
414
456
  </a>
415
457
  </div>
416
458
 
417
459
  <div class="method-description">
418
460
  <p><a class="source-toggle" href="#"
419
- onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
420
- <div class="method-source-code" id="M000069-source">
461
+ onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
462
+ <div class="method-source-code" id="M000074-source">
421
463
  <pre>
422
- <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 158</span>
464
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 197</span>
423
465
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_value_of</span>(<span class="ruby-identifier">prop</span>)
424
466
  <span class="ruby-ivar">@domain_object</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">prop</span>.<span class="ruby-identifier">symbol</span>)
425
467
  <span class="ruby-keyword kw">end</span>
@@ -428,21 +470,21 @@
428
470
  </div>
429
471
  </div>
430
472
 
431
- <div id="method-M000071" class="method-detail">
432
- <a name="M000071"></a>
473
+ <div id="method-M000072" class="method-detail">
474
+ <a name="M000072"></a>
433
475
 
434
476
  <div class="method-heading">
435
- <a href="#M000071" class="method-signature">
477
+ <a href="#M000072" class="method-signature">
436
478
  <span class="method-name">save</span><span class="method-args">()</span>
437
479
  </a>
438
480
  </div>
439
481
 
440
482
  <div class="method-description">
441
483
  <p><a class="source-toggle" href="#"
442
- onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
443
- <div class="method-source-code" id="M000071-source">
484
+ onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
485
+ <div class="method-source-code" id="M000072-source">
444
486
  <pre>
445
- <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 166</span>
487
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 188</span>
446
488
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">save</span>
447
489
  <span class="ruby-ivar">@domain_object</span>.<span class="ruby-identifier">save!</span>
448
490
  <span class="ruby-identifier">answer</span> <span class="ruby-ivar">@domain_object</span>
@@ -452,21 +494,54 @@
452
494
  </div>
453
495
  </div>
454
496
 
455
- <div id="method-M000070" class="method-detail">
456
- <a name="M000070"></a>
497
+ <div id="method-M000076" class="method-detail">
498
+ <a name="M000076"></a>
457
499
 
458
500
  <div class="method-heading">
459
- <a href="#M000070" class="method-signature">
501
+ <a href="#M000076" class="method-signature">
502
+ <span class="method-name">set_date_of</span><span class="method-args">(prop, val, pos)</span>
503
+ </a>
504
+ </div>
505
+
506
+ <div class="method-description">
507
+ <p><a class="source-toggle" href="#"
508
+ onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
509
+ <div class="method-source-code" id="M000076-source">
510
+ <pre>
511
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 205</span>
512
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_date_of</span>(<span class="ruby-identifier">prop</span>, <span class="ruby-identifier">val</span>, <span class="ruby-identifier">pos</span>)
513
+ <span class="ruby-identifier">v</span> = <span class="ruby-identifier">get_value_of</span>(<span class="ruby-identifier">prop</span>) <span class="ruby-operator">||</span> <span class="ruby-constant">Date</span>.<span class="ruby-identifier">new</span>
514
+ <span class="ruby-identifier">new_date</span> = [<span class="ruby-identifier">v</span>.<span class="ruby-identifier">year</span>, <span class="ruby-identifier">v</span>.<span class="ruby-identifier">month</span>, <span class="ruby-identifier">v</span>.<span class="ruby-identifier">day</span>]
515
+ <span class="ruby-identifier">pos</span> =
516
+ <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">pos</span>
517
+ <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:year</span> <span class="ruby-keyword kw">then</span> <span class="ruby-value">0</span>
518
+ <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:month</span> <span class="ruby-keyword kw">then</span> <span class="ruby-value">1</span>
519
+ <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:day</span> <span class="ruby-keyword kw">then</span> <span class="ruby-value">2</span>
520
+ <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">raise</span>
521
+ <span class="ruby-keyword kw">end</span>
522
+ <span class="ruby-identifier">new_date</span>[<span class="ruby-identifier">pos</span>] = <span class="ruby-identifier">val</span>
523
+ <span class="ruby-identifier">set_value_of</span>(<span class="ruby-identifier">prop</span>, <span class="ruby-constant">Date</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">new_date</span>))
524
+ <span class="ruby-keyword kw">end</span>
525
+ </pre>
526
+ </div>
527
+ </div>
528
+ </div>
529
+
530
+ <div id="method-M000075" class="method-detail">
531
+ <a name="M000075"></a>
532
+
533
+ <div class="method-heading">
534
+ <a href="#M000075" class="method-signature">
460
535
  <span class="method-name">set_value_of</span><span class="method-args">(prop, value)</span>
461
536
  </a>
462
537
  </div>
463
538
 
464
539
  <div class="method-description">
465
540
  <p><a class="source-toggle" href="#"
466
- onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
467
- <div class="method-source-code" id="M000070-source">
541
+ onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
542
+ <div class="method-source-code" id="M000075-source">
468
543
  <pre>
469
- <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 162</span>
544
+ <span class="ruby-comment cmt"># File lib/wee/databases/og/scaffolder.rb, line 201</span>
470
545
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_value_of</span>(<span class="ruby-identifier">prop</span>, <span class="ruby-identifier">value</span>)
471
546
  <span class="ruby-ivar">@domain_object</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">prop</span>.<span class="ruby-identifier">symbol</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;=&quot;</span>, <span class="ruby-identifier">value</span>)
472
547
  <span class="ruby-keyword kw">end</span>