compony 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/VERSION +1 -1
  4. data/compony.gemspec +3 -3
  5. data/doc/ComponentGenerator.html +1 -1
  6. data/doc/Components.html +1 -1
  7. data/doc/ComponentsGenerator.html +1 -1
  8. data/doc/Compony/Component.html +419 -159
  9. data/doc/Compony/ComponentMixins/Default/Labelling.html +1 -1
  10. data/doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html +1 -1
  11. data/doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html +1 -1
  12. data/doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html +1 -1
  13. data/doc/Compony/ComponentMixins/Default/Standalone.html +6 -6
  14. data/doc/Compony/ComponentMixins/Default.html +1 -1
  15. data/doc/Compony/ComponentMixins/Resourceful.html +5 -5
  16. data/doc/Compony/ComponentMixins.html +1 -1
  17. data/doc/Compony/Components/Button.html +6 -6
  18. data/doc/Compony/Components/Destroy.html +2 -2
  19. data/doc/Compony/Components/Edit.html +2 -2
  20. data/doc/Compony/Components/Form.html +2 -2
  21. data/doc/Compony/Components/New.html +2 -2
  22. data/doc/Compony/Components/WithForm.html +2 -2
  23. data/doc/Compony/Components.html +1 -1
  24. data/doc/Compony/ControllerMixin.html +1 -1
  25. data/doc/Compony/Engine.html +1 -1
  26. data/doc/Compony/MethodAccessibleHash.html +1 -1
  27. data/doc/Compony/ModelFields/Anchormodel.html +1 -1
  28. data/doc/Compony/ModelFields/Association.html +1 -1
  29. data/doc/Compony/ModelFields/Attachment.html +2 -2
  30. data/doc/Compony/ModelFields/Base.html +1 -1
  31. data/doc/Compony/ModelFields/Boolean.html +1 -1
  32. data/doc/Compony/ModelFields/Color.html +1 -1
  33. data/doc/Compony/ModelFields/Currency.html +1 -1
  34. data/doc/Compony/ModelFields/Date.html +1 -1
  35. data/doc/Compony/ModelFields/Datetime.html +1 -1
  36. data/doc/Compony/ModelFields/Decimal.html +1 -1
  37. data/doc/Compony/ModelFields/Email.html +1 -1
  38. data/doc/Compony/ModelFields/Float.html +1 -1
  39. data/doc/Compony/ModelFields/Integer.html +1 -1
  40. data/doc/Compony/ModelFields/Percentage.html +1 -1
  41. data/doc/Compony/ModelFields/Phone.html +1 -1
  42. data/doc/Compony/ModelFields/RichText.html +1 -1
  43. data/doc/Compony/ModelFields/String.html +1 -1
  44. data/doc/Compony/ModelFields/Text.html +1 -1
  45. data/doc/Compony/ModelFields/Time.html +1 -1
  46. data/doc/Compony/ModelFields/Url.html +1 -1
  47. data/doc/Compony/ModelFields.html +1 -1
  48. data/doc/Compony/ModelMixin.html +1 -1
  49. data/doc/Compony/NaturalOrdering.html +1 -1
  50. data/doc/Compony/RequestContext.html +1 -1
  51. data/doc/Compony/Version.html +1 -1
  52. data/doc/Compony/ViewHelpers.html +1 -1
  53. data/doc/Compony.html +152 -92
  54. data/doc/ComponyController.html +1 -1
  55. data/doc/_index.html +1 -1
  56. data/doc/file.README.html +1 -1
  57. data/doc/index.html +1 -1
  58. data/doc/method_list.html +32 -0
  59. data/doc/top-level-namespace.html +1 -1
  60. data/lib/compony/component.rb +24 -4
  61. data/lib/compony/component_mixins/default/standalone.rb +3 -3
  62. data/lib/compony/component_mixins/resourceful.rb +2 -2
  63. data/lib/compony/components/button.rb +2 -2
  64. data/lib/compony/model_fields/attachment.rb +1 -1
  65. data/lib/compony.rb +24 -11
  66. metadata +3 -3
@@ -218,6 +218,102 @@
218
218
  <li class="public ">
219
219
  <span class="summary_signature">
220
220
 
221
+ <a href="#comp_cst-class_method" title="comp_cst (class method)">.<strong>comp_cst</strong> &#x21d2; Object </a>
222
+
223
+
224
+
225
+ </span>
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+ <span class="summary_desc"><div class='inline'>
236
+ <p>Returns the name of the class constant of this component.</p>
237
+ </div></span>
238
+
239
+ </li>
240
+
241
+
242
+ <li class="public ">
243
+ <span class="summary_signature">
244
+
245
+ <a href="#comp_name-class_method" title="comp_name (class method)">.<strong>comp_name</strong> &#x21d2; Object </a>
246
+
247
+
248
+
249
+ </span>
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+ <span class="summary_desc"><div class='inline'>
260
+ <p>Returns the component name.</p>
261
+ </div></span>
262
+
263
+ </li>
264
+
265
+
266
+ <li class="public ">
267
+ <span class="summary_signature">
268
+
269
+ <a href="#family_cst-class_method" title="family_cst (class method)">.<strong>family_cst</strong> &#x21d2; Object </a>
270
+
271
+
272
+
273
+ </span>
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+ <span class="summary_desc"><div class='inline'>
284
+ <p>Returns the name of the module constant (=family) of this component.</p>
285
+ </div></span>
286
+
287
+ </li>
288
+
289
+
290
+ <li class="public ">
291
+ <span class="summary_signature">
292
+
293
+ <a href="#family_name-class_method" title="family_name (class method)">.<strong>family_name</strong> &#x21d2; Object </a>
294
+
295
+
296
+
297
+ </span>
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+ <span class="summary_desc"><div class='inline'>
308
+ <p>Returns the family name.</p>
309
+ </div></span>
310
+
311
+ </li>
312
+
313
+
314
+ <li class="public ">
315
+ <span class="summary_signature">
316
+
221
317
  <a href="#setup-class_method" title="setup (class method)">.<strong>setup</strong>(&amp;block) &#x21d2; Object </a>
222
318
 
223
319
 
@@ -808,28 +904,28 @@
808
904
  <pre class="lines">
809
905
 
810
906
 
811
- 23
812
- 24
813
- 25
814
- 26
815
- 27
816
- 28
817
- 29
818
- 30
819
- 31
820
- 32
821
- 33
822
- 34
823
- 35
824
- 36
825
- 37
826
- 38
827
- 39
828
- 40
829
- 41</pre>
907
+ 43
908
+ 44
909
+ 45
910
+ 46
911
+ 47
912
+ 48
913
+ 49
914
+ 50
915
+ 51
916
+ 52
917
+ 53
918
+ 54
919
+ 55
920
+ 56
921
+ 57
922
+ 58
923
+ 59
924
+ 60
925
+ 61</pre>
830
926
  </td>
831
927
  <td>
832
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 23</span>
928
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 43</span>
833
929
 
834
930
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_parent_comp'>parent_comp</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>index:</span> <span class='int'>0</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_comp_opts'>comp_opts</span><span class='rparen'>)</span>
835
931
  <span class='ivar'>@parent_comp</span> <span class='op'>=</span> <span class='id identifier rubyid_parent_comp'>parent_comp</span>
@@ -993,7 +1089,171 @@
993
1089
 
994
1090
 
995
1091
  <div class="method_details first">
996
- <h3 class="signature first" id="setup-class_method">
1092
+ <h3 class="signature first" id="comp_cst-class_method">
1093
+
1094
+ .<strong>comp_cst</strong> &#x21d2; <tt>Object</tt>
1095
+
1096
+
1097
+
1098
+
1099
+
1100
+ </h3><div class="docstring">
1101
+ <div class="discussion">
1102
+
1103
+ <p>Returns the name of the class constant of this component. Do not override.</p>
1104
+
1105
+
1106
+ </div>
1107
+ </div>
1108
+ <div class="tags">
1109
+
1110
+
1111
+ </div><table class="source_code">
1112
+ <tr>
1113
+ <td>
1114
+ <pre class="lines">
1115
+
1116
+
1117
+ 34
1118
+ 35
1119
+ 36</pre>
1120
+ </td>
1121
+ <td>
1122
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 34</span>
1123
+
1124
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_comp_cst'>comp_cst</span>
1125
+ <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_demodulize'>demodulize</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
1126
+ <span class='kw'>end</span></pre>
1127
+ </td>
1128
+ </tr>
1129
+ </table>
1130
+ </div>
1131
+
1132
+ <div class="method_details ">
1133
+ <h3 class="signature " id="comp_name-class_method">
1134
+
1135
+ .<strong>comp_name</strong> &#x21d2; <tt>Object</tt>
1136
+
1137
+
1138
+
1139
+
1140
+
1141
+ </h3><div class="docstring">
1142
+ <div class="discussion">
1143
+
1144
+ <p>Returns the component name</p>
1145
+
1146
+
1147
+ </div>
1148
+ </div>
1149
+ <div class="tags">
1150
+
1151
+
1152
+ </div><table class="source_code">
1153
+ <tr>
1154
+ <td>
1155
+ <pre class="lines">
1156
+
1157
+
1158
+ 39
1159
+ 40
1160
+ 41</pre>
1161
+ </td>
1162
+ <td>
1163
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 39</span>
1164
+
1165
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_comp_name'>comp_name</span>
1166
+ <span class='id identifier rubyid_comp_cst'>comp_cst</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_underscore'>underscore</span>
1167
+ <span class='kw'>end</span></pre>
1168
+ </td>
1169
+ </tr>
1170
+ </table>
1171
+ </div>
1172
+
1173
+ <div class="method_details ">
1174
+ <h3 class="signature " id="family_cst-class_method">
1175
+
1176
+ .<strong>family_cst</strong> &#x21d2; <tt>Object</tt>
1177
+
1178
+
1179
+
1180
+
1181
+
1182
+ </h3><div class="docstring">
1183
+ <div class="discussion">
1184
+
1185
+ <p>Returns the name of the module constant (=family) of this component. Do not override.</p>
1186
+
1187
+
1188
+ </div>
1189
+ </div>
1190
+ <div class="tags">
1191
+
1192
+
1193
+ </div><table class="source_code">
1194
+ <tr>
1195
+ <td>
1196
+ <pre class="lines">
1197
+
1198
+
1199
+ 24
1200
+ 25
1201
+ 26</pre>
1202
+ </td>
1203
+ <td>
1204
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 24</span>
1205
+
1206
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_family_cst'>family_cst</span>
1207
+ <span class='id identifier rubyid_module_parent'>module_parent</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_demodulize'>demodulize</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
1208
+ <span class='kw'>end</span></pre>
1209
+ </td>
1210
+ </tr>
1211
+ </table>
1212
+ </div>
1213
+
1214
+ <div class="method_details ">
1215
+ <h3 class="signature " id="family_name-class_method">
1216
+
1217
+ .<strong>family_name</strong> &#x21d2; <tt>Object</tt>
1218
+
1219
+
1220
+
1221
+
1222
+
1223
+ </h3><div class="docstring">
1224
+ <div class="discussion">
1225
+
1226
+ <p>Returns the family name</p>
1227
+
1228
+
1229
+ </div>
1230
+ </div>
1231
+ <div class="tags">
1232
+
1233
+
1234
+ </div><table class="source_code">
1235
+ <tr>
1236
+ <td>
1237
+ <pre class="lines">
1238
+
1239
+
1240
+ 29
1241
+ 30
1242
+ 31</pre>
1243
+ </td>
1244
+ <td>
1245
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 29</span>
1246
+
1247
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_family_name'>family_name</span>
1248
+ <span class='id identifier rubyid_family_cst'>family_cst</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_underscore'>underscore</span>
1249
+ <span class='kw'>end</span></pre>
1250
+ </td>
1251
+ </tr>
1252
+ </table>
1253
+ </div>
1254
+
1255
+ <div class="method_details ">
1256
+ <h3 class="signature " id="setup-class_method">
997
1257
 
998
1258
  .<strong>setup</strong>(&amp;block) &#x21d2; <tt>Object</tt>
999
1259
 
@@ -1071,12 +1331,12 @@
1071
1331
  <pre class="lines">
1072
1332
 
1073
1333
 
1074
- 198
1075
- 199
1076
- 200</pre>
1334
+ 218
1335
+ 219
1336
+ 220</pre>
1077
1337
  </td>
1078
1338
  <td>
1079
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 198</span>
1339
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 218</span>
1080
1340
 
1081
1341
  <span class='kw'>def</span> <span class='id identifier rubyid_action'>action</span><span class='lparen'>(</span><span class='id identifier rubyid_action_name'>action_name</span><span class='comma'>,</span> <span class='label'>before:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1082
1342
  <span class='ivar'>@actions</span><span class='period'>.</span><span class='id identifier rubyid_natural_push'>natural_push</span><span class='lparen'>(</span><span class='id identifier rubyid_action_name'>action_name</span><span class='comma'>,</span> <span class='id identifier rubyid_block'>block</span><span class='comma'>,</span> <span class='label'>before:</span><span class='rparen'>)</span>
@@ -1168,13 +1428,13 @@
1168
1428
  <pre class="lines">
1169
1429
 
1170
1430
 
1171
- 121
1172
- 122
1173
- 123
1174
- 124</pre>
1431
+ 141
1432
+ 142
1433
+ 143
1434
+ 144</pre>
1175
1435
  </td>
1176
1436
  <td>
1177
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 121</span>
1437
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 141</span>
1178
1438
 
1179
1439
  <span class='kw'>def</span> <span class='id identifier rubyid_before_render'>before_render</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='symbol'>:main</span><span class='comma'>,</span> <span class='label'>before:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>**</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1180
1440
  <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'>`before_render` expects a block in </span><span class='embexpr_beg'>#{</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> <span class='kw'>unless</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
@@ -1211,15 +1471,15 @@
1211
1471
  <pre class="lines">
1212
1472
 
1213
1473
 
1214
- 106
1215
- 107
1216
- 108</pre>
1474
+ 126
1475
+ 127
1476
+ 128</pre>
1217
1477
  </td>
1218
1478
  <td>
1219
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 106</span>
1479
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 126</span>
1220
1480
 
1221
1481
  <span class='kw'>def</span> <span class='id identifier rubyid_comp_cst'>comp_cst</span>
1222
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_demodulize'>demodulize</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
1482
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_comp_cst'>comp_cst</span>
1223
1483
  <span class='kw'>end</span></pre>
1224
1484
  </td>
1225
1485
  </tr>
@@ -1252,15 +1512,15 @@
1252
1512
  <pre class="lines">
1253
1513
 
1254
1514
 
1255
- 111
1256
- 112
1257
- 113</pre>
1515
+ 131
1516
+ 132
1517
+ 133</pre>
1258
1518
  </td>
1259
1519
  <td>
1260
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 111</span>
1520
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 131</span>
1261
1521
 
1262
1522
  <span class='kw'>def</span> <span class='id identifier rubyid_comp_name'>comp_name</span>
1263
- <span class='id identifier rubyid_comp_cst'>comp_cst</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_underscore'>underscore</span>
1523
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_comp_name'>comp_name</span>
1264
1524
  <span class='kw'>end</span></pre>
1265
1525
  </td>
1266
1526
  </tr>
@@ -1365,16 +1625,16 @@
1365
1625
  <pre class="lines">
1366
1626
 
1367
1627
 
1368
- 132
1369
- 133
1370
- 134
1371
- 135
1372
- 136
1373
- 137
1374
- 138</pre>
1628
+ 152
1629
+ 153
1630
+ 154
1631
+ 155
1632
+ 156
1633
+ 157
1634
+ 158</pre>
1375
1635
  </td>
1376
1636
  <td>
1377
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 132</span>
1637
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 152</span>
1378
1638
 
1379
1639
  <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='op'>=</span> <span class='symbol'>:main</span><span class='comma'>,</span> <span class='label'>before:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>**</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1380
1640
  <span class='comment'># A block is required here, but if this is an override (e.g. to hide another content block), we can tolerate the missing block.
@@ -1414,15 +1674,15 @@
1414
1674
  <pre class="lines">
1415
1675
 
1416
1676
 
1417
- 96
1418
- 97
1419
- 98</pre>
1677
+ 116
1678
+ 117
1679
+ 118</pre>
1420
1680
  </td>
1421
1681
  <td>
1422
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 96</span>
1682
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 116</span>
1423
1683
 
1424
1684
  <span class='kw'>def</span> <span class='id identifier rubyid_family_cst'>family_cst</span>
1425
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_module_parent'>module_parent</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_demodulize'>demodulize</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
1685
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_family_cst'>family_cst</span>
1426
1686
  <span class='kw'>end</span></pre>
1427
1687
  </td>
1428
1688
  </tr>
@@ -1455,15 +1715,15 @@
1455
1715
  <pre class="lines">
1456
1716
 
1457
1717
 
1458
- 101
1459
- 102
1460
- 103</pre>
1718
+ 121
1719
+ 122
1720
+ 123</pre>
1461
1721
  </td>
1462
1722
  <td>
1463
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 101</span>
1723
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 121</span>
1464
1724
 
1465
1725
  <span class='kw'>def</span> <span class='id identifier rubyid_family_name'>family_name</span>
1466
- <span class='id identifier rubyid_family_cst'>family_cst</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_underscore'>underscore</span>
1726
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_family_name'>family_name</span>
1467
1727
  <span class='kw'>end</span></pre>
1468
1728
  </td>
1469
1729
  </tr>
@@ -1496,12 +1756,12 @@
1496
1756
  <pre class="lines">
1497
1757
 
1498
1758
 
1499
- 62
1500
- 63
1501
- 64</pre>
1759
+ 82
1760
+ 83
1761
+ 84</pre>
1502
1762
  </td>
1503
1763
  <td>
1504
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 62</span>
1764
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 82</span>
1505
1765
 
1506
1766
  <span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span>
1507
1767
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_family_name'>family_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_comp_name'>comp_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>_</span><span class='embexpr_beg'>#{</span><span class='ivar'>@index</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
@@ -1535,12 +1795,12 @@
1535
1795
  <pre class="lines">
1536
1796
 
1537
1797
 
1538
- 43
1539
- 44
1540
- 45</pre>
1798
+ 63
1799
+ 64
1800
+ 65</pre>
1541
1801
  </td>
1542
1802
  <td>
1543
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 43</span>
1803
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 63</span>
1544
1804
 
1545
1805
  <span class='kw'>def</span> <span class='id identifier rubyid_inspect'>inspect</span>
1546
1806
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>#&lt;</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_hash'>hash</span><span class='embexpr_end'>}</span><span class='tstring_content'>&gt;</span><span class='tstring_end'>&quot;</span></span>
@@ -1576,12 +1836,12 @@
1576
1836
  <pre class="lines">
1577
1837
 
1578
1838
 
1579
- 84
1580
- 85
1581
- 86</pre>
1839
+ 104
1840
+ 105
1841
+ 106</pre>
1582
1842
  </td>
1583
1843
  <td>
1584
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 84</span>
1844
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 104</span>
1585
1845
 
1586
1846
  <span class='kw'>def</span> <span class='id identifier rubyid_param_name'>param_name</span><span class='lparen'>(</span><span class='id identifier rubyid_unprefixed_param_name'>unprefixed_param_name</span><span class='rparen'>)</span>
1587
1847
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_path_hash'>path_hash</span><span class='embexpr_end'>}</span><span class='tstring_content'>_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_unprefixed_param_name'>unprefixed_param_name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
@@ -1617,16 +1877,16 @@
1617
1877
  <pre class="lines">
1618
1878
 
1619
1879
 
1620
- 68
1621
- 69
1622
- 70
1623
- 71
1624
- 72
1625
- 73
1626
- 74</pre>
1880
+ 88
1881
+ 89
1882
+ 90
1883
+ 91
1884
+ 92
1885
+ 93
1886
+ 94</pre>
1627
1887
  </td>
1628
1888
  <td>
1629
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 68</span>
1889
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 88</span>
1630
1890
 
1631
1891
  <span class='kw'>def</span> <span class='id identifier rubyid_path'>path</span>
1632
1892
  <span class='kw'>if</span> <span class='id identifier rubyid_root_comp?'>root_comp?</span>
@@ -1666,12 +1926,12 @@
1666
1926
  <pre class="lines">
1667
1927
 
1668
1928
 
1669
- 78
1670
- 79
1671
- 80</pre>
1929
+ 98
1930
+ 99
1931
+ 100</pre>
1672
1932
  </td>
1673
1933
  <td>
1674
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 78</span>
1934
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 98</span>
1675
1935
 
1676
1936
  <span class='kw'>def</span> <span class='id identifier rubyid_path_hash'>path_hash</span>
1677
1937
  <span class='const'>Digest</span><span class='op'>::</span><span class='const'>SHA1</span><span class='period'>.</span><span class='id identifier rubyid_hexdigest'>hexdigest</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='op'>..</span><span class='int'>4</span><span class='rbracket'>]</span>
@@ -1727,18 +1987,18 @@
1727
1987
  <pre class="lines">
1728
1988
 
1729
1989
 
1730
- 143
1731
- 144
1732
- 145
1733
- 146
1734
- 147
1735
- 148
1736
- 149
1737
- 150
1738
- 151</pre>
1990
+ 163
1991
+ 164
1992
+ 165
1993
+ 166
1994
+ 167
1995
+ 168
1996
+ 169
1997
+ 170
1998
+ 171</pre>
1739
1999
  </td>
1740
2000
  <td>
1741
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 143</span>
2001
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 163</span>
1742
2002
 
1743
2003
  <span class='kw'>def</span> <span class='id identifier rubyid_remove_content'>remove_content</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
1744
2004
  <span class='id identifier rubyid_existing_index'>existing_index</span> <span class='op'>=</span> <span class='ivar'>@content_blocks</span><span class='period'>.</span><span class='id identifier rubyid_find_index'>find_index</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='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span> <span class='rbrace'>}</span>
@@ -1800,12 +2060,12 @@
1800
2060
  <pre class="lines">
1801
2061
 
1802
2062
 
1803
- 156
1804
- 157
1805
- 158</pre>
2063
+ 176
2064
+ 177
2065
+ 178</pre>
1806
2066
  </td>
1807
2067
  <td>
1808
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 156</span>
2068
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 176</span>
1809
2069
 
1810
2070
  <span class='kw'>def</span> <span class='id identifier rubyid_remove_content!'>remove_content!</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
1811
2071
  <span class='id identifier rubyid_remove_content'>remove_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 for removal in </span><span class='embexpr_beg'>#{</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>
@@ -1863,26 +2123,6 @@
1863
2123
  <pre class="lines">
1864
2124
 
1865
2125
 
1866
- 163
1867
- 164
1868
- 165
1869
- 166
1870
- 167
1871
- 168
1872
- 169
1873
- 170
1874
- 171
1875
- 172
1876
- 173
1877
- 174
1878
- 175
1879
- 176
1880
- 177
1881
- 178
1882
- 179
1883
- 180
1884
- 181
1885
- 182
1886
2126
  183
1887
2127
  184
1888
2128
  185
@@ -1893,10 +2133,30 @@
1893
2133
  190
1894
2134
  191
1895
2135
  192
1896
- 193</pre>
2136
+ 193
2137
+ 194
2138
+ 195
2139
+ 196
2140
+ 197
2141
+ 198
2142
+ 199
2143
+ 200
2144
+ 201
2145
+ 202
2146
+ 203
2147
+ 204
2148
+ 205
2149
+ 206
2150
+ 207
2151
+ 208
2152
+ 209
2153
+ 210
2154
+ 211
2155
+ 212
2156
+ 213</pre>
1897
2157
  </td>
1898
2158
  <td>
1899
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 163</span>
2159
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 183</span>
1900
2160
 
1901
2161
  <span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_controller'>controller</span><span class='comma'>,</span> <span class='label'>standalone:</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_locals'>locals</span><span class='rparen'>)</span>
1902
2162
  <span class='comment'># Call before_render hooks (if any) and backfire instance variables back to the component
@@ -1960,25 +2220,25 @@
1960
2220
  <pre class="lines">
1961
2221
 
1962
2222
 
1963
- 209
1964
- 210
1965
- 211
1966
- 212
1967
- 213
1968
- 214
1969
- 215
1970
- 216
1971
- 217
1972
- 218
1973
- 219
1974
- 220
1975
- 221
1976
- 222
1977
- 223
1978
- 224</pre>
2223
+ 229
2224
+ 230
2225
+ 231
2226
+ 232
2227
+ 233
2228
+ 234
2229
+ 235
2230
+ 236
2231
+ 237
2232
+ 238
2233
+ 239
2234
+ 240
2235
+ 241
2236
+ 242
2237
+ 243
2238
+ 244</pre>
1979
2239
  </td>
1980
2240
  <td>
1981
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 209</span>
2241
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 229</span>
1982
2242
 
1983
2243
  <span class='kw'>def</span> <span class='id identifier rubyid_render_actions'>render_actions</span><span class='lparen'>(</span><span class='id identifier rubyid_controller'>controller</span><span class='comma'>,</span> <span class='label'>wrapper_class:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='label'>action_class:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
1984
2244
  <span class='id identifier rubyid_h'>h</span> <span class='op'>=</span> <span class='id identifier rubyid_controller'>controller</span><span class='period'>.</span><span class='id identifier rubyid_helpers'>helpers</span>
@@ -2040,12 +2300,12 @@
2040
2300
  <pre class="lines">
2041
2301
 
2042
2302
 
2043
- 227
2044
- 228
2045
- 229</pre>
2303
+ 247
2304
+ 248
2305
+ 249</pre>
2046
2306
  </td>
2047
2307
  <td>
2048
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 227</span>
2308
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 247</span>
2049
2309
 
2050
2310
  <span class='kw'>def</span> <span class='id identifier rubyid_resourceful?'>resourceful?</span>
2051
2311
  <span class='kw'>return</span> <span class='kw'>false</span>
@@ -2081,13 +2341,13 @@
2081
2341
  <pre class="lines">
2082
2342
 
2083
2343
 
2084
- 49
2085
- 50
2086
- 51
2087
- 52</pre>
2344
+ 69
2345
+ 70
2346
+ 71
2347
+ 72</pre>
2088
2348
  </td>
2089
2349
  <td>
2090
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 49</span>
2350
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 69</span>
2091
2351
 
2092
2352
  <span class='kw'>def</span> <span class='id identifier rubyid_root_comp'>root_comp</span>
2093
2353
  <span class='kw'>return</span> <span class='kw'>self</span> <span class='kw'>unless</span> <span class='id identifier rubyid_parent_comp'>parent_comp</span>
@@ -2137,12 +2397,12 @@
2137
2397
  <pre class="lines">
2138
2398
 
2139
2399
 
2140
- 56
2141
- 57
2142
- 58</pre>
2400
+ 76
2401
+ 77
2402
+ 78</pre>
2143
2403
  </td>
2144
2404
  <td>
2145
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 56</span>
2405
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 76</span>
2146
2406
 
2147
2407
  <span class='kw'>def</span> <span class='id identifier rubyid_root_comp?'>root_comp?</span>
2148
2408
  <span class='id identifier rubyid_parent_comp'>parent_comp</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
@@ -2178,12 +2438,12 @@
2178
2438
  <pre class="lines">
2179
2439
 
2180
2440
 
2181
- 204
2182
- 205
2183
- 206</pre>
2441
+ 224
2442
+ 225
2443
+ 226</pre>
2184
2444
  </td>
2185
2445
  <td>
2186
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 204</span>
2446
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 224</span>
2187
2447
 
2188
2448
  <span class='kw'>def</span> <span class='id identifier rubyid_skip_action'>skip_action</span><span class='lparen'>(</span><span class='id identifier rubyid_action_name'>action_name</span><span class='rparen'>)</span>
2189
2449
  <span class='ivar'>@skipped_actions</span> <span class='op'>&lt;&lt;</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>
@@ -2219,14 +2479,14 @@
2219
2479
  <pre class="lines">
2220
2480
 
2221
2481
 
2222
- 89
2223
- 90
2224
- 91
2225
- 92
2226
- 93</pre>
2482
+ 109
2483
+ 110
2484
+ 111
2485
+ 112
2486
+ 113</pre>
2227
2487
  </td>
2228
2488
  <td>
2229
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 89</span>
2489
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 109</span>
2230
2490
 
2231
2491
  <span class='kw'>def</span> <span class='id identifier rubyid_sub_comp'>sub_comp</span><span class='lparen'>(</span><span class='id identifier rubyid_component_class'>component_class</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_comp_opts'>comp_opts</span><span class='rparen'>)</span>
2232
2492
  <span class='id identifier rubyid_sub'>sub</span> <span class='op'>=</span> <span class='id identifier rubyid_component_class'>component_class</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='label'>index:</span> <span class='ivar'>@sub_comps</span><span class='period'>.</span><span class='id identifier rubyid_count'>count</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_comp_opts'>comp_opts</span><span class='rparen'>)</span>
@@ -2243,7 +2503,7 @@
2243
2503
  </div>
2244
2504
 
2245
2505
  <div id="footer">
2246
- Generated on Tue Jun 11 11:15:54 2024 by
2506
+ Generated on Thu Sep 12 16:31:18 2024 by
2247
2507
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2248
2508
  0.9.36 (ruby-3.2.2).
2249
2509
  </div>