compony 0.3.2 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/Gemfile.lock +3 -3
  4. data/README.md +41 -0
  5. data/Rakefile +2 -2
  6. data/VERSION +1 -1
  7. data/compony.gemspec +6 -6
  8. data/doc/ComponentGenerator.html +3 -3
  9. data/doc/Components.html +3 -3
  10. data/doc/ComponentsGenerator.html +3 -3
  11. data/doc/Compony/Component.html +11 -11
  12. data/doc/Compony/ComponentMixins/Default/Labelling.html +3 -3
  13. data/doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html +3 -3
  14. data/doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html +8 -8
  15. data/doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html +3 -3
  16. data/doc/Compony/ComponentMixins/Default/Standalone.html +3 -3
  17. data/doc/Compony/ComponentMixins/Default.html +3 -3
  18. data/doc/Compony/ComponentMixins/Resourceful.html +3 -3
  19. data/doc/Compony/ComponentMixins.html +3 -3
  20. data/doc/Compony/Components/Button.html +3 -3
  21. data/doc/Compony/Components/Destroy.html +3 -3
  22. data/doc/Compony/Components/Edit.html +20 -20
  23. data/doc/Compony/Components/Form.html +318 -92
  24. data/doc/Compony/Components/New.html +20 -20
  25. data/doc/Compony/Components/WithForm.html +96 -21
  26. data/doc/Compony/Components.html +3 -3
  27. data/doc/Compony/ControllerMixin.html +3 -3
  28. data/doc/Compony/Engine.html +3 -3
  29. data/doc/Compony/MethodAccessibleHash.html +3 -3
  30. data/doc/Compony/ModelFields/Anchormodel.html +3 -3
  31. data/doc/Compony/ModelFields/Association.html +3 -3
  32. data/doc/Compony/ModelFields/Attachment.html +3 -3
  33. data/doc/Compony/ModelFields/Base.html +3 -3
  34. data/doc/Compony/ModelFields/Boolean.html +3 -3
  35. data/doc/Compony/ModelFields/Color.html +3 -3
  36. data/doc/Compony/ModelFields/Currency.html +3 -3
  37. data/doc/Compony/ModelFields/Date.html +3 -3
  38. data/doc/Compony/ModelFields/Datetime.html +3 -3
  39. data/doc/Compony/ModelFields/Decimal.html +3 -3
  40. data/doc/Compony/ModelFields/Email.html +3 -3
  41. data/doc/Compony/ModelFields/Float.html +3 -3
  42. data/doc/Compony/ModelFields/Integer.html +3 -3
  43. data/doc/Compony/ModelFields/Percentage.html +3 -3
  44. data/doc/Compony/ModelFields/Phone.html +3 -3
  45. data/doc/Compony/ModelFields/RichText.html +3 -3
  46. data/doc/Compony/ModelFields/String.html +3 -3
  47. data/doc/Compony/ModelFields/Text.html +3 -3
  48. data/doc/Compony/ModelFields/Time.html +3 -3
  49. data/doc/Compony/ModelFields/Url.html +3 -3
  50. data/doc/Compony/ModelFields.html +3 -3
  51. data/doc/Compony/ModelMixin.html +28 -28
  52. data/doc/Compony/NaturalOrdering.html +3 -3
  53. data/doc/Compony/RequestContext.html +72 -5
  54. data/doc/Compony/Version.html +3 -3
  55. data/doc/Compony/ViewHelpers.html +3 -3
  56. data/doc/Compony.html +4 -4
  57. data/doc/ComponyController.html +3 -3
  58. data/doc/_index.html +4 -4
  59. data/doc/file.README.html +44 -3
  60. data/doc/frames.html +10 -5
  61. data/doc/index.html +44 -3
  62. data/doc/method_list.html +74 -42
  63. data/doc/top-level-namespace.html +3 -3
  64. data/lib/compony/component.rb +4 -4
  65. data/lib/compony/component_mixins/default/standalone/standalone_dsl.rb +3 -3
  66. data/lib/compony/components/edit.rb +4 -1
  67. data/lib/compony/components/form.rb +74 -9
  68. data/lib/compony/components/new.rb +4 -1
  69. data/lib/compony/components/with_form.rb +12 -1
  70. data/lib/compony/model_mixin.rb +8 -1
  71. data/lib/compony/request_context.rb +8 -1
  72. data/lib/compony.rb +1 -1
  73. metadata +6 -6
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::ModelFields::Float
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -144,9 +144,9 @@
144
144
  </div>
145
145
 
146
146
  <div id="footer">
147
- Generated on Sat Jun 1 14:22:43 2024 by
147
+ Generated on Tue Jun 11 11:15:54 2024 by
148
148
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
149
- 0.9.34 (ruby-3.2.2).
149
+ 0.9.36 (ruby-3.2.2).
150
150
  </div>
151
151
 
152
152
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::ModelFields::Integer
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -144,9 +144,9 @@
144
144
  </div>
145
145
 
146
146
  <div id="footer">
147
- Generated on Sat Jun 1 14:22:43 2024 by
147
+ Generated on Tue Jun 11 11:15:54 2024 by
148
148
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
149
- 0.9.34 (ruby-3.2.2).
149
+ 0.9.36 (ruby-3.2.2).
150
150
  </div>
151
151
 
152
152
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::ModelFields::Percentage
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -222,9 +222,9 @@
222
222
  </div>
223
223
 
224
224
  <div id="footer">
225
- Generated on Sat Jun 1 14:22:43 2024 by
225
+ Generated on Tue Jun 11 11:15:54 2024 by
226
226
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
227
- 0.9.34 (ruby-3.2.2).
227
+ 0.9.36 (ruby-3.2.2).
228
228
  </div>
229
229
 
230
230
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::ModelFields::Phone
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -291,9 +291,9 @@
291
291
  </div>
292
292
 
293
293
  <div id="footer">
294
- Generated on Sat Jun 1 14:22:43 2024 by
294
+ Generated on Tue Jun 11 11:15:54 2024 by
295
295
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
296
- 0.9.34 (ruby-3.2.2).
296
+ 0.9.36 (ruby-3.2.2).
297
297
  </div>
298
298
 
299
299
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::ModelFields::RichText
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -222,9 +222,9 @@
222
222
  </div>
223
223
 
224
224
  <div id="footer">
225
- Generated on Sat Jun 1 14:22:43 2024 by
225
+ Generated on Tue Jun 11 11:15:54 2024 by
226
226
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
227
- 0.9.34 (ruby-3.2.2).
227
+ 0.9.36 (ruby-3.2.2).
228
228
  </div>
229
229
 
230
230
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::ModelFields::String
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -144,9 +144,9 @@
144
144
  </div>
145
145
 
146
146
  <div id="footer">
147
- Generated on Sat Jun 1 14:22:43 2024 by
147
+ Generated on Tue Jun 11 11:15:54 2024 by
148
148
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
149
- 0.9.34 (ruby-3.2.2).
149
+ 0.9.36 (ruby-3.2.2).
150
150
  </div>
151
151
 
152
152
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::ModelFields::Text
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -144,9 +144,9 @@
144
144
  </div>
145
145
 
146
146
  <div id="footer">
147
- Generated on Sat Jun 1 14:22:43 2024 by
147
+ Generated on Tue Jun 11 11:15:54 2024 by
148
148
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
149
- 0.9.34 (ruby-3.2.2).
149
+ 0.9.36 (ruby-3.2.2).
150
150
  </div>
151
151
 
152
152
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::ModelFields::Time
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -144,9 +144,9 @@
144
144
  </div>
145
145
 
146
146
  <div id="footer">
147
- Generated on Sat Jun 1 14:22:43 2024 by
147
+ Generated on Tue Jun 11 11:15:54 2024 by
148
148
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
149
- 0.9.34 (ruby-3.2.2).
149
+ 0.9.36 (ruby-3.2.2).
150
150
  </div>
151
151
 
152
152
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::ModelFields::Url
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -230,9 +230,9 @@
230
230
  </div>
231
231
 
232
232
  <div id="footer">
233
- Generated on Sat Jun 1 14:22:43 2024 by
233
+ Generated on Tue Jun 11 11:15:54 2024 by
234
234
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
235
- 0.9.34 (ruby-3.2.2).
235
+ 0.9.36 (ruby-3.2.2).
236
236
  </div>
237
237
 
238
238
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Compony::ModelFields
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -116,9 +116,9 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Sat Jun 1 14:22:42 2024 by
119
+ Generated on Tue Jun 11 11:15:54 2024 by
120
120
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
- 0.9.34 (ruby-3.2.2).
121
+ 0.9.36 (ruby-3.2.2).
122
122
  </div>
123
123
 
124
124
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Compony::ModelMixin
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -264,14 +264,14 @@
264
264
  <pre class="lines">
265
265
 
266
266
 
267
- 92
268
- 93
269
- 94
270
- 95
271
- 96</pre>
267
+ 99
268
+ 100
269
+ 101
270
+ 102
271
+ 103</pre>
272
272
  </td>
273
273
  <td>
274
- <pre class="code"><span class="info file"># File 'lib/compony/model_mixin.rb', line 92</span>
274
+ <pre class="code"><span class="info file"># File 'lib/compony/model_mixin.rb', line 99</span>
275
275
 
276
276
  <span class='kw'>def</span> <span class='id identifier rubyid_feasibility_messages'>feasibility_messages</span><span class='lparen'>(</span><span class='id identifier rubyid_action_name'>action_name</span><span class='rparen'>)</span>
277
277
  <span class='id identifier rubyid_action_name'>action_name</span> <span class='op'>=</span> <span class='id identifier rubyid_action_name'>action_name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
@@ -360,13 +360,6 @@
360
360
  <pre class="lines">
361
361
 
362
362
 
363
- 71
364
- 72
365
- 73
366
- 74
367
- 75
368
- 76
369
- 77
370
363
  78
371
364
  79
372
365
  80
@@ -376,10 +369,17 @@
376
369
  84
377
370
  85
378
371
  86
379
- 87</pre>
372
+ 87
373
+ 88
374
+ 89
375
+ 90
376
+ 91
377
+ 92
378
+ 93
379
+ 94</pre>
380
380
  </td>
381
381
  <td>
382
- <pre class="code"><span class="info file"># File 'lib/compony/model_mixin.rb', line 71</span>
382
+ <pre class="code"><span class="info file"># File 'lib/compony/model_mixin.rb', line 78</span>
383
383
 
384
384
  <span class='kw'>def</span> <span class='id identifier rubyid_feasible?'>feasible?</span><span class='lparen'>(</span><span class='id identifier rubyid_action_name'>action_name</span><span class='comma'>,</span> <span class='label'>recompute:</span> <span class='kw'>false</span><span class='rparen'>)</span>
385
385
  <span class='id identifier rubyid_action_name'>action_name</span> <span class='op'>=</span> <span class='id identifier rubyid_action_name'>action_name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
@@ -429,12 +429,12 @@
429
429
  <pre class="lines">
430
430
 
431
431
 
432
- 109
433
- 110
434
- 111</pre>
432
+ 116
433
+ 117
434
+ 118</pre>
435
435
  </td>
436
436
  <td>
437
- <pre class="code"><span class="info file"># File 'lib/compony/model_mixin.rb', line 109</span>
437
+ <pre class="code"><span class="info file"># File 'lib/compony/model_mixin.rb', line 116</span>
438
438
 
439
439
  <span class='kw'>def</span> <span class='id identifier rubyid_field'>field</span><span class='lparen'>(</span><span class='id identifier rubyid_field_name'>field_name</span><span class='comma'>,</span> <span class='id identifier rubyid_controller'>controller</span><span class='rparen'>)</span>
440
440
  <span class='id identifier rubyid_fields'>fields</span><span class='lbracket'>[</span><span class='id identifier rubyid_field_name'>field_name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_value_for'>value_for</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='label'>controller:</span><span class='rparen'>)</span>
@@ -490,14 +490,14 @@
490
490
  <pre class="lines">
491
491
 
492
492
 
493
- 102
494
- 103
495
- 104
496
- 105
497
- 106</pre>
493
+ 109
494
+ 110
495
+ 111
496
+ 112
497
+ 113</pre>
498
498
  </td>
499
499
  <td>
500
- <pre class="code"><span class="info file"># File 'lib/compony/model_mixin.rb', line 102</span>
500
+ <pre class="code"><span class="info file"># File 'lib/compony/model_mixin.rb', line 109</span>
501
501
 
502
502
  <span class='kw'>def</span> <span class='id identifier rubyid_full_feasibility_messages'>full_feasibility_messages</span><span class='lparen'>(</span><span class='id identifier rubyid_action_name'>action_name</span><span class='rparen'>)</span>
503
503
  <span class='id identifier rubyid_text'>text</span> <span class='op'>=</span> <span class='id identifier rubyid_feasibility_messages'>feasibility_messages</span><span class='lparen'>(</span><span class='id identifier rubyid_action_name'>action_name</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>, </span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_upcase_first'>upcase_first</span>
@@ -514,9 +514,9 @@
514
514
  </div>
515
515
 
516
516
  <div id="footer">
517
- Generated on Sat Jun 1 14:22:42 2024 by
517
+ Generated on Tue Jun 11 11:15:54 2024 by
518
518
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
519
- 0.9.34 (ruby-3.2.2).
519
+ 0.9.36 (ruby-3.2.2).
520
520
  </div>
521
521
 
522
522
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::NaturalOrdering
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -290,9 +290,9 @@
290
290
  </div>
291
291
 
292
292
  <div id="footer">
293
- Generated on Sat Jun 1 14:22:43 2024 by
293
+ Generated on Tue Jun 11 11:15:54 2024 by
294
294
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
295
- 0.9.34 (ruby-3.2.2).
295
+ 0.9.36 (ruby-3.2.2).
296
296
  </div>
297
297
 
298
298
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::RequestContext
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -258,6 +258,28 @@
258
258
  <p>Renders a content block from the current component.</p>
259
259
  </div></span>
260
260
 
261
+ </li>
262
+
263
+
264
+ <li class="public ">
265
+ <span class="summary_signature">
266
+
267
+ <a href="#content!-instance_method" title="#content! (instance method)">#<strong>content!</strong>(name) &#x21d2; Object </a>
268
+
269
+
270
+
271
+ </span>
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+ <span class="summary_desc"><div class='inline'></div></span>
282
+
261
283
  </li>
262
284
 
263
285
 
@@ -703,14 +725,19 @@
703
725
  54
704
726
  55
705
727
  56
706
- 57</pre>
728
+ 57
729
+ 58
730
+ 59
731
+ 60</pre>
707
732
  </td>
708
733
  <td>
709
734
  <pre class="code"><span class="info file"># File 'lib/compony/request_context.rb', line 46</span>
710
735
 
711
736
  <span class='kw'>def</span> <span class='id identifier rubyid_content'>content</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
712
737
  <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
713
- <span class='id identifier rubyid_content_block'>content_block</span> <span class='op'>=</span> <span class='id identifier rubyid_component'>component</span><span class='period'>.</span><span class='id identifier rubyid_content_blocks'>content_blocks</span><span class='period'>.</span><span class='id identifier rubyid_find'>find</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_el'>el</span><span class='op'>|</span> <span class='id identifier rubyid_el'>el</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='op'>==</span> <span class='id identifier rubyid_name'>name</span> <span class='rbrace'>}</span> <span class='op'>||</span> <span class='id identifier rubyid_fail'>fail</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Content block </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'> not found in </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_component'>component</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
738
+ <span class='id identifier rubyid_content_block'>content_block</span> <span class='op'>=</span> <span class='id identifier rubyid_component'>component</span><span class='period'>.</span><span class='id identifier rubyid_content_blocks'>content_blocks</span><span class='period'>.</span><span class='id identifier rubyid_find'>find</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_el'>el</span><span class='op'>|</span> <span class='id identifier rubyid_el'>el</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='op'>==</span> <span class='id identifier rubyid_name'>name</span> <span class='rbrace'>}</span>
739
+ <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>if</span> <span class='id identifier rubyid_content_block'>content_block</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
740
+
714
741
  <span class='comment'># We have to clear Rails&#39; output_buffer to prevent double rendering of blocks. To achieve this, a fresh render context is instanciated.
715
742
  </span> <span class='id identifier rubyid_concat'>concat</span> <span class='id identifier rubyid_controller'>controller</span><span class='period'>.</span><span class='id identifier rubyid_render_to_string'>render_to_string</span><span class='lparen'>(</span>
716
743
  <span class='label'>type:</span> <span class='symbol'>:dyny</span><span class='comma'>,</span>
@@ -719,6 +746,46 @@
719
746
  <span class='tstring_content'> Compony::RequestContext.new(render_component, render_controller, helpers: self, locals: local_assigns).evaluate_with_backfire(&amp;render_block.payload)
720
747
  </span><span class='heredoc_end'> RUBY
721
748
  </span> <span class='rparen'>)</span>
749
+ <span class='kw'>return</span> <span class='kw'>true</span>
750
+ <span class='kw'>end</span></pre>
751
+ </td>
752
+ </tr>
753
+ </table>
754
+ </div>
755
+
756
+ <div class="method_details ">
757
+ <h3 class="signature " id="content!-instance_method">
758
+
759
+ #<strong>content!</strong>(name) &#x21d2; <tt>Object</tt>
760
+
761
+
762
+
763
+
764
+
765
+ </h3><div class="docstring">
766
+ <div class="discussion">
767
+
768
+
769
+ </div>
770
+ </div>
771
+ <div class="tags">
772
+
773
+
774
+ </div><table class="source_code">
775
+ <tr>
776
+ <td>
777
+ <pre class="lines">
778
+
779
+
780
+ 62
781
+ 63
782
+ 64</pre>
783
+ </td>
784
+ <td>
785
+ <pre class="code"><span class="info file"># File 'lib/compony/request_context.rb', line 62</span>
786
+
787
+ <span class='kw'>def</span> <span class='id identifier rubyid_content!'>content!</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
788
+ <span class='id identifier rubyid_content'>content</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_fail'>fail</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Content block </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'> not found in </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_component'>component</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
722
789
  <span class='kw'>end</span></pre>
723
790
  </td>
724
791
  </tr>
@@ -864,9 +931,9 @@
864
931
  </div>
865
932
 
866
933
  <div id="footer">
867
- Generated on Sat Jun 1 14:22:43 2024 by
934
+ Generated on Tue Jun 11 11:15:54 2024 by
868
935
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
869
- 0.9.34 (ruby-3.2.2).
936
+ 0.9.36 (ruby-3.2.2).
870
937
  </div>
871
938
 
872
939
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Compony::Version
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -129,9 +129,9 @@
129
129
  </div>
130
130
 
131
131
  <div id="footer">
132
- Generated on Sat Jun 1 14:22:42 2024 by
132
+ Generated on Tue Jun 11 11:15:54 2024 by
133
133
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
134
- 0.9.34 (ruby-3.2.2).
134
+ 0.9.36 (ruby-3.2.2).
135
135
  </div>
136
136
 
137
137
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Compony::ViewHelpers
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -433,9 +433,9 @@
433
433
  </div>
434
434
 
435
435
  <div id="footer">
436
- Generated on Sat Jun 1 14:22:42 2024 by
436
+ Generated on Tue Jun 11 11:15:54 2024 by
437
437
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
438
- 0.9.34 (ruby-3.2.2).
438
+ 0.9.36 (ruby-3.2.2).
439
439
  </div>
440
440
 
441
441
  </div>
data/doc/Compony.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Compony
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -2129,7 +2129,7 @@
2129
2129
  <span class='kw'>end</span>
2130
2130
  <span class='id identifier rubyid_return_value'>return_value</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
2131
2131
  <span class='comment'># Restore previous value
2132
- </span> <span class='id identifier rubyid_keys_to_overwrite'>keys_to_overwrite</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid__new_value'>_new_value</span><span class='op'>|</span>
2132
+ </span> <span class='id identifier rubyid_keys_to_overwrite'>keys_to_overwrite</span><span class='period'>.</span><span class='id identifier rubyid_each_key'>each_key</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='op'>|</span>
2133
2133
  <span class='const'>RequestStore</span><span class='period'>.</span><span class='id identifier rubyid_store'>store</span><span class='lbracket'>[</span><span class='symbol'>:button_defaults</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_old_values'>old_values</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span>
2134
2134
  <span class='kw'>end</span>
2135
2135
  <span class='comment'># Undefine keys that were not there previously
@@ -2146,9 +2146,9 @@
2146
2146
  </div>
2147
2147
 
2148
2148
  <div id="footer">
2149
- Generated on Sat Jun 1 14:22:42 2024 by
2149
+ Generated on Tue Jun 11 11:15:54 2024 by
2150
2150
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2151
- 0.9.34 (ruby-3.2.2).
2151
+ 0.9.36 (ruby-3.2.2).
2152
2152
  </div>
2153
2153
 
2154
2154
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: ComponyController
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -114,9 +114,9 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Sat Jun 1 14:22:43 2024 by
117
+ Generated on Tue Jun 11 11:15:54 2024 by
118
118
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
- 0.9.34 (ruby-3.2.2).
119
+ 0.9.36 (ruby-3.2.2).
120
120
  </div>
121
121
 
122
122
  </div>
data/doc/_index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>
7
- Documentation by YARD 0.9.34
7
+ Documentation by YARD 0.9.36
8
8
 
9
9
  </title>
10
10
 
@@ -52,7 +52,7 @@
52
52
  <div class="clear"></div>
53
53
  </div>
54
54
 
55
- <div id="content"><h1 class="noborder title">Documentation by YARD 0.9.34</h1>
55
+ <div id="content"><h1 class="noborder title">Documentation by YARD 0.9.36</h1>
56
56
  <div id="listing">
57
57
  <h1 class="alphaindex">Alphabetic Index</h1>
58
58
 
@@ -566,9 +566,9 @@
566
566
  </div>
567
567
 
568
568
  <div id="footer">
569
- Generated on Sat Jun 1 14:22:40 2024 by
569
+ Generated on Tue Jun 11 11:15:52 2024 by
570
570
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
571
- 0.9.34 (ruby-3.2.2).
571
+ 0.9.36 (ruby-3.2.2).
572
572
  </div>
573
573
 
574
574
  </div>