compony 0.8.1 → 0.10.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +33 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/VERSION +1 -1
- data/compony.gemspec +4 -4
- data/doc/ComponentGenerator.html +1 -1
- data/doc/Components.html +1 -1
- data/doc/ComponentsGenerator.html +1 -1
- data/doc/Compony/Component.html +2 -2
- data/doc/Compony/ComponentMixins/Default/Labelling.html +120 -39
- data/doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Standalone.html +1 -1
- data/doc/Compony/ComponentMixins/Default.html +1 -1
- data/doc/Compony/ComponentMixins/Resourceful.html +1 -1
- data/doc/Compony/ComponentMixins.html +1 -1
- data/doc/Compony/Components/Buttons/CssButton.html +1 -1
- data/doc/Compony/Components/Buttons/Link.html +1 -1
- data/doc/Compony/Components/Buttons.html +1 -1
- data/doc/Compony/Components/Destroy.html +1 -1
- data/doc/Compony/Components/Edit.html +13 -13
- data/doc/Compony/Components/Form.html +49 -49
- data/doc/Compony/Components/Index.html +1 -1
- data/doc/Compony/Components/List.html +346 -473
- data/doc/Compony/Components/New.html +13 -13
- data/doc/Compony/Components/Show.html +25 -25
- data/doc/Compony/Components/WithForm.html +1 -1
- data/doc/Compony/Components.html +1 -1
- data/doc/Compony/ControllerMixin.html +1 -1
- data/doc/Compony/Engine.html +1 -1
- data/doc/Compony/ExposedIntentsDsl.html +1 -1
- data/doc/Compony/Intent.html +157 -103
- data/doc/Compony/MethodAccessibleHash.html +1 -1
- data/doc/Compony/ModelFields/Anchormodel.html +1 -1
- data/doc/Compony/ModelFields/Association.html +2 -2
- data/doc/Compony/ModelFields/Attachment.html +1 -1
- data/doc/Compony/ModelFields/Base.html +1 -1
- data/doc/Compony/ModelFields/Boolean.html +1 -1
- data/doc/Compony/ModelFields/Color.html +1 -1
- data/doc/Compony/ModelFields/Currency.html +1 -1
- data/doc/Compony/ModelFields/Date.html +1 -1
- data/doc/Compony/ModelFields/Datetime.html +1 -1
- data/doc/Compony/ModelFields/Decimal.html +1 -1
- data/doc/Compony/ModelFields/Email.html +1 -1
- data/doc/Compony/ModelFields/Float.html +1 -1
- data/doc/Compony/ModelFields/Integer.html +1 -1
- data/doc/Compony/ModelFields/Percentage.html +1 -1
- data/doc/Compony/ModelFields/Phone.html +1 -1
- data/doc/Compony/ModelFields/RichText.html +1 -1
- data/doc/Compony/ModelFields/String.html +1 -1
- data/doc/Compony/ModelFields/Text.html +1 -1
- data/doc/Compony/ModelFields/Time.html +1 -1
- data/doc/Compony/ModelFields/Url.html +1 -1
- data/doc/Compony/ModelFields.html +1 -1
- data/doc/Compony/ModelMixin.html +1 -1
- data/doc/Compony/NaturalOrdering.html +1 -1
- data/doc/Compony/RequestContext.html +26 -36
- data/doc/Compony/Version.html +1 -1
- data/doc/Compony/ViewHelpers.html +1 -1
- data/doc/Compony/VirtualModel.html +1 -1
- data/doc/Compony.html +10 -10
- data/doc/ComponyController.html +1 -1
- data/doc/_index.html +8 -8
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +2 -2
- data/doc/guide/intents.md +3 -3
- data/doc/guide/nesting.md +26 -4
- data/doc/index.html +2 -2
- data/doc/method_list.html +174 -182
- data/doc/top-level-namespace.html +1 -1
- data/lib/compony/component.rb +1 -1
- data/lib/compony/component_mixins/default/labelling.rb +28 -17
- data/lib/compony/components/destroy.rb +3 -3
- data/lib/compony/components/edit.rb +3 -2
- data/lib/compony/components/form.rb +0 -1
- data/lib/compony/components/index.rb +1 -1
- data/lib/compony/components/list.rb +57 -62
- data/lib/compony/components/new.rb +0 -1
- data/lib/compony/components/show.rb +5 -9
- data/lib/compony/intent.rb +30 -19
- data/lib/compony/{exposed_intents_dsl.rb → manage_intents_dsl.rb} +6 -3
- data/lib/compony/model_fields/association.rb +1 -1
- data/lib/compony/model_mixin.rb +1 -1
- data/lib/compony/request_context.rb +12 -6
- data/lib/compony.rb +6 -6
- metadata +3 -3
data/doc/Compony/Intent.html
CHANGED
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
<h2>Overview</h2><div class="docstring">
|
|
103
103
|
<div class="discussion">
|
|
104
104
|
|
|
105
|
-
<p>An Intent is a a gateway to a component, along with relevant context, such as the comp and family, perhaps a resource, standalone name, feasibility etc. The class provides tooling used by various Compony helpers used to point to other components in some way.</p>
|
|
105
|
+
<p>An Intent is a a gateway to a component, along with relevant context, such as the comp and family, perhaps a resource, standalone name, feasibility etc. The class provides tooling used by various Compony helpers used to point to other components in some way. Note: The arguments <code>label</code> and <code>style</code> are not part of the <code>button:</code> hash, because they are processed by the Intent before affecting the button.</p>
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
</div>
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
<li class="public ">
|
|
188
188
|
<span class="summary_signature">
|
|
189
189
|
|
|
190
|
-
<a href="#button_comp_opts-instance_method" title="#button_comp_opts (instance method)">#<strong>button_comp_opts</strong>
|
|
190
|
+
<a href="#button_comp_opts-instance_method" title="#button_comp_opts (instance method)">#<strong>button_comp_opts</strong> ⇒ Object </a>
|
|
191
191
|
|
|
192
192
|
|
|
193
193
|
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
<li class="public ">
|
|
304
304
|
<span class="summary_signature">
|
|
305
305
|
|
|
306
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(comp_name_or_cst_or_class, model_or_family_name_or_cst = nil, standalone_name: nil, name: nil, label: nil, path: nil, method: nil, data: nil, data_class: nil, feasibility_target: nil, feasibility_action: nil
|
|
306
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(comp_name_or_cst_or_class = nil, model_or_family_name_or_cst = nil, standalone_name: nil, name: nil, label: nil, style: nil, button: {}, path: nil, method: nil, data: nil, data_class: nil, feasibility_target: nil, feasibility_action: nil) ⇒ Intent </a>
|
|
307
307
|
|
|
308
308
|
|
|
309
309
|
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
<li class="public ">
|
|
448
448
|
<span class="summary_signature">
|
|
449
449
|
|
|
450
|
-
<a href="#render-instance_method" title="#render (instance method)">#<strong>render</strong>(controller, parent_comp = nil, style: nil,
|
|
450
|
+
<a href="#render-instance_method" title="#render (instance method)">#<strong>render</strong>(controller, parent_comp = nil, style: nil, **button_arg_overrides) ⇒ Object </a>
|
|
451
451
|
|
|
452
452
|
|
|
453
453
|
|
|
@@ -477,7 +477,7 @@
|
|
|
477
477
|
<div class="method_details first">
|
|
478
478
|
<h3 class="signature first" id="initialize-instance_method">
|
|
479
479
|
|
|
480
|
-
#<strong>initialize</strong>(comp_name_or_cst_or_class, model_or_family_name_or_cst = nil, standalone_name: nil, name: nil, label: nil, path: nil, method: nil, data: nil, data_class: nil, feasibility_target: nil, feasibility_action: nil
|
|
480
|
+
#<strong>initialize</strong>(comp_name_or_cst_or_class = nil, model_or_family_name_or_cst = nil, standalone_name: nil, name: nil, label: nil, style: nil, button: {}, path: nil, method: nil, data: nil, data_class: nil, feasibility_target: nil, feasibility_action: nil) ⇒ <tt><span class='object_link'><a href="" title="Compony::Intent (class)">Intent</a></span></tt>
|
|
481
481
|
|
|
482
482
|
|
|
483
483
|
|
|
@@ -503,6 +503,8 @@
|
|
|
503
503
|
<span class='type'>(<tt>String</tt>, <tt>Symbol</tt>, <tt>Class</tt>)</span>
|
|
504
504
|
|
|
505
505
|
|
|
506
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
507
|
+
|
|
506
508
|
|
|
507
509
|
—
|
|
508
510
|
<div class='inline'>
|
|
@@ -583,6 +585,42 @@
|
|
|
583
585
|
|
|
584
586
|
</li>
|
|
585
587
|
|
|
588
|
+
<li>
|
|
589
|
+
|
|
590
|
+
<span class='name'>style</span>
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
—
|
|
600
|
+
<div class='inline'>
|
|
601
|
+
<p>If given, sets the button style to use and uses the default one otherwise.</p>
|
|
602
|
+
</div>
|
|
603
|
+
|
|
604
|
+
</li>
|
|
605
|
+
|
|
606
|
+
<li>
|
|
607
|
+
|
|
608
|
+
<span class='name'>button</span>
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
—
|
|
618
|
+
<div class='inline'>
|
|
619
|
+
<p>Parameters that will be given as-is to the button component initializer.</p>
|
|
620
|
+
</div>
|
|
621
|
+
|
|
622
|
+
</li>
|
|
623
|
+
|
|
586
624
|
<li>
|
|
587
625
|
|
|
588
626
|
<span class='name'>path</span>
|
|
@@ -682,9 +720,6 @@
|
|
|
682
720
|
<pre class="lines">
|
|
683
721
|
|
|
684
722
|
|
|
685
|
-
23
|
|
686
|
-
24
|
|
687
|
-
25
|
|
688
723
|
26
|
|
689
724
|
27
|
|
690
725
|
28
|
|
@@ -721,30 +756,44 @@
|
|
|
721
756
|
59
|
|
722
757
|
60
|
|
723
758
|
61
|
|
724
|
-
62
|
|
759
|
+
62
|
|
760
|
+
63
|
|
761
|
+
64
|
|
762
|
+
65
|
|
763
|
+
66
|
|
764
|
+
67
|
|
765
|
+
68
|
|
766
|
+
69
|
|
767
|
+
70
|
|
768
|
+
71</pre>
|
|
725
769
|
</td>
|
|
726
770
|
<td>
|
|
727
|
-
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line
|
|
771
|
+
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line 26</span>
|
|
728
772
|
|
|
729
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_comp_name_or_cst_or_class'>comp_name_or_cst_or_class</span><span class='comma'>,</span>
|
|
773
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_comp_name_or_cst_or_class'>comp_name_or_cst_or_class</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
730
774
|
<span class='id identifier rubyid_model_or_family_name_or_cst'>model_or_family_name_or_cst</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
731
775
|
<span class='label'>standalone_name:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
732
776
|
<span class='label'>name:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
733
777
|
<span class='label'>label:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
778
|
+
<span class='label'>style:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
779
|
+
<span class='label'>button:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span>
|
|
734
780
|
<span class='label'>path:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
735
781
|
<span class='label'>method:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
736
782
|
<span class='label'>data:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
737
783
|
<span class='label'>data_class:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
738
784
|
<span class='label'>feasibility_target:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
739
|
-
<span class='label'>feasibility_action:</span> <span class='kw'>nil</span><span class='
|
|
740
|
-
<span class='op'>**</span><span class='id identifier rubyid_custom_args'>custom_args</span><span class='rparen'>)</span>
|
|
785
|
+
<span class='label'>feasibility_action:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
741
786
|
<span class='comment'># Check for model / data
|
|
742
787
|
</span> <span class='ivar'>@data</span> <span class='op'>=</span> <span class='id identifier rubyid_data'>data</span>
|
|
743
788
|
<span class='ivar'>@data</span> <span class='op'>||=</span> <span class='id identifier rubyid_model_or_family_name_or_cst'>model_or_family_name_or_cst</span> <span class='kw'>if</span> <span class='id identifier rubyid_model_or_family_name_or_cst'>model_or_family_name_or_cst</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:model_name</span><span class='rparen'>)</span>
|
|
744
789
|
<span class='ivar'>@data_class</span> <span class='op'>=</span> <span class='id identifier rubyid_data_class'>data_class</span>
|
|
745
790
|
|
|
746
791
|
<span class='comment'># Figure out comp_class
|
|
747
|
-
</span> <span class='kw'>if</span> <span class='id identifier rubyid_comp_name_or_cst_or_class'>comp_name_or_cst_or_class</span><span class='period'>.</span><span class='id identifier
|
|
792
|
+
</span> <span class='kw'>if</span> <span class='id identifier rubyid_comp_name_or_cst_or_class'>comp_name_or_cst_or_class</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
793
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span> <span class='op'>||</span> <span class='op'>!</span><span class='id identifier rubyid_label'>label</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>String</span><span class='rparen'>)</span>
|
|
794
|
+
<span class='id identifier rubyid_fail'>fail</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>An intent created without positional arguments must be given the kwargs `name:`, `label` (String).</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
795
|
+
<span class='kw'>end</span>
|
|
796
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_comp_name_or_cst_or_class'>comp_name_or_cst_or_class</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Class</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='lparen'>(</span><span class='id identifier rubyid_comp_name_or_cst_or_class'>comp_name_or_cst_or_class</span> <span class='op'><=</span> <span class='const'><span class='object_link'><a href="../Compony.html" title="Compony (module)">Compony</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Component.html" title="Compony::Component (class)">Component</a></span></span><span class='rparen'>)</span>
|
|
748
797
|
<span class='comment'># A class was given as the first argument
|
|
749
798
|
</span> <span class='ivar'>@comp_class</span> <span class='op'>=</span> <span class='id identifier rubyid_comp_name_or_cst_or_class'>comp_name_or_cst_or_class</span>
|
|
750
799
|
<span class='kw'>else</span>
|
|
@@ -759,12 +808,13 @@
|
|
|
759
808
|
<span class='ivar'>@standalone_name</span> <span class='op'>=</span> <span class='id identifier rubyid_standalone_name'>standalone_name</span>
|
|
760
809
|
<span class='ivar'>@label</span> <span class='op'>=</span> <span class='id identifier rubyid_label'>label</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>String</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_label'>label</span> <span class='op'>:</span> <span class='kw'>nil</span>
|
|
761
810
|
<span class='ivar'>@label_opts</span> <span class='op'>=</span> <span class='id identifier rubyid_label'>label</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_label'>label</span> <span class='op'>:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
811
|
+
<span class='ivar'>@style</span> <span class='op'>=</span> <span class='id identifier rubyid_style'>style</span><span class='op'>&.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
|
812
|
+
<span class='ivar'>@button_opts</span> <span class='op'>=</span> <span class='id identifier rubyid_button'>button</span>
|
|
762
813
|
<span class='ivar'>@path</span> <span class='op'>=</span> <span class='id identifier rubyid_path'>path</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>String</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_path'>path</span> <span class='op'>:</span> <span class='kw'>nil</span>
|
|
763
814
|
<span class='ivar'>@path_opts</span> <span class='op'>=</span> <span class='id identifier rubyid_path'>path</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_path'>path</span> <span class='op'>:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
764
815
|
<span class='ivar'>@method</span> <span class='op'>=</span> <span class='id identifier rubyid_method'>method</span><span class='op'>&.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
|
765
816
|
<span class='ivar'>@feasibility_target</span> <span class='op'>=</span> <span class='id identifier rubyid_feasibility_target'>feasibility_target</span>
|
|
766
817
|
<span class='ivar'>@feasibility_action</span> <span class='op'>=</span> <span class='id identifier rubyid_feasibility_action'>feasibility_action</span>
|
|
767
|
-
<span class='ivar'>@custom_args</span> <span class='op'>=</span> <span class='id identifier rubyid_custom_args'>custom_args</span>
|
|
768
818
|
<span class='kw'>end</span></pre>
|
|
769
819
|
</td>
|
|
770
820
|
</tr>
|
|
@@ -802,12 +852,12 @@
|
|
|
802
852
|
<pre class="lines">
|
|
803
853
|
|
|
804
854
|
|
|
805
|
-
6
|
|
806
855
|
7
|
|
807
|
-
8
|
|
856
|
+
8
|
|
857
|
+
9</pre>
|
|
808
858
|
</td>
|
|
809
859
|
<td>
|
|
810
|
-
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line
|
|
860
|
+
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line 7</span>
|
|
811
861
|
|
|
812
862
|
<span class='kw'>def</span> <span class='id identifier rubyid_comp_class'>comp_class</span>
|
|
813
863
|
<span class='ivar'>@comp_class</span>
|
|
@@ -843,12 +893,12 @@
|
|
|
843
893
|
<pre class="lines">
|
|
844
894
|
|
|
845
895
|
|
|
846
|
-
7
|
|
847
896
|
8
|
|
848
|
-
9
|
|
897
|
+
9
|
|
898
|
+
10</pre>
|
|
849
899
|
</td>
|
|
850
900
|
<td>
|
|
851
|
-
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line
|
|
901
|
+
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line 8</span>
|
|
852
902
|
|
|
853
903
|
<span class='kw'>def</span> <span class='id identifier rubyid_data'>data</span>
|
|
854
904
|
<span class='ivar'>@data</span>
|
|
@@ -868,7 +918,7 @@
|
|
|
868
918
|
<div class="method_details first">
|
|
869
919
|
<h3 class="signature first" id="button_comp_opts-instance_method">
|
|
870
920
|
|
|
871
|
-
#<strong>button_comp_opts</strong>
|
|
921
|
+
#<strong>button_comp_opts</strong> ⇒ <tt>Object</tt>
|
|
872
922
|
|
|
873
923
|
|
|
874
924
|
|
|
@@ -891,27 +941,27 @@
|
|
|
891
941
|
<pre class="lines">
|
|
892
942
|
|
|
893
943
|
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
944
|
+
127
|
|
945
|
+
128
|
|
946
|
+
129
|
|
947
|
+
130
|
|
948
|
+
131
|
|
949
|
+
132
|
|
950
|
+
133
|
|
951
|
+
134
|
|
952
|
+
135</pre>
|
|
903
953
|
</td>
|
|
904
954
|
<td>
|
|
905
|
-
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line
|
|
906
|
-
|
|
907
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_button_comp_opts'>button_comp_opts</span
|
|
908
|
-
<span class='kw'>return</span> <span class='
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
955
|
+
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line 127</span>
|
|
956
|
+
|
|
957
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_button_comp_opts'>button_comp_opts</span>
|
|
958
|
+
<span class='kw'>return</span> <span class='lbrace'>{</span>
|
|
959
|
+
<span class='label'>label:</span><span class='comma'>,</span>
|
|
960
|
+
<span class='label'>href:</span> <span class='id identifier rubyid_feasible?'>feasible?</span> <span class='op'>?</span> <span class='id identifier rubyid_path'>path</span> <span class='op'>:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
961
|
+
<span class='label'>method:</span><span class='comma'>,</span>
|
|
962
|
+
<span class='label'>class:</span> <span class='id identifier rubyid_feasible?'>feasible?</span> <span class='op'>?</span> <span class='kw'>nil</span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>disabled</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
|
963
|
+
<span class='label'>title:</span> <span class='id identifier rubyid_feasible?'>feasible?</span> <span class='op'>?</span> <span class='kw'>nil</span> <span class='op'>:</span> <span class='id identifier rubyid_feasibility_target'>feasibility_target</span><span class='period'>.</span><span class='id identifier rubyid_full_feasibility_messages'>full_feasibility_messages</span><span class='lparen'>(</span><span class='id identifier rubyid_feasibility_action'>feasibility_action</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_presence'>presence</span>
|
|
964
|
+
<span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_deep_merge'>deep_merge</span><span class='lparen'>(</span><span class='ivar'>@button_opts</span><span class='rparen'>)</span>
|
|
915
965
|
<span class='kw'>end</span></pre>
|
|
916
966
|
</td>
|
|
917
967
|
</tr>
|
|
@@ -944,14 +994,16 @@
|
|
|
944
994
|
<pre class="lines">
|
|
945
995
|
|
|
946
996
|
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
997
|
+
81
|
|
998
|
+
82
|
|
999
|
+
83
|
|
1000
|
+
84</pre>
|
|
950
1001
|
</td>
|
|
951
1002
|
<td>
|
|
952
|
-
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line
|
|
1003
|
+
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line 81</span>
|
|
953
1004
|
|
|
954
1005
|
<span class='kw'>def</span> <span class='id identifier rubyid_comp'>comp</span><span class='lparen'>(</span><span class='op'>*</span><span class='comma'>,</span> <span class='op'>**</span><span class='rparen'>)</span>
|
|
1006
|
+
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='ivar'>@comp_class</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
955
1007
|
<span class='kw'>return</span> <span class='ivar'>@comp</span> <span class='op'>||=</span> <span class='ivar'>@comp_class</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>*</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='ivar'>@data</span><span class='comma'>,</span> <span class='label'>data_class:</span> <span class='ivar'>@data_class</span><span class='comma'>,</span> <span class='op'>**</span><span class='rparen'>)</span>
|
|
956
1008
|
<span class='kw'>end</span></pre>
|
|
957
1009
|
</td>
|
|
@@ -983,12 +1035,12 @@
|
|
|
983
1035
|
<pre class="lines">
|
|
984
1036
|
|
|
985
1037
|
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
1038
|
+
116
|
|
1039
|
+
117
|
|
1040
|
+
118</pre>
|
|
989
1041
|
</td>
|
|
990
1042
|
<td>
|
|
991
|
-
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line
|
|
1043
|
+
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line 116</span>
|
|
992
1044
|
|
|
993
1045
|
<span class='kw'>def</span> <span class='id identifier rubyid_feasibility_action'>feasibility_action</span>
|
|
994
1046
|
<span class='ivar'>@feasibility_action</span><span class='period'>.</span><span class='id identifier rubyid_presence'>presence</span> <span class='op'>||</span> <span class='id identifier rubyid_comp_class'>comp_class</span><span class='period'>.</span><span class='id identifier rubyid_comp_name'>comp_name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
|
@@ -1022,12 +1074,12 @@
|
|
|
1022
1074
|
<pre class="lines">
|
|
1023
1075
|
|
|
1024
1076
|
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1077
|
+
112
|
|
1078
|
+
113
|
|
1079
|
+
114</pre>
|
|
1028
1080
|
</td>
|
|
1029
1081
|
<td>
|
|
1030
|
-
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line
|
|
1082
|
+
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line 112</span>
|
|
1031
1083
|
|
|
1032
1084
|
<span class='kw'>def</span> <span class='id identifier rubyid_feasibility_target'>feasibility_target</span>
|
|
1033
1085
|
<span class='ivar'>@feasibility_target</span><span class='period'>.</span><span class='id identifier rubyid_presence'>presence</span> <span class='op'>||</span> <span class='id identifier rubyid_model?'>model?</span> <span class='op'>?</span> <span class='ivar'>@data</span> <span class='op'>:</span> <span class='kw'>nil</span>
|
|
@@ -1076,13 +1128,13 @@
|
|
|
1076
1128
|
<pre class="lines">
|
|
1077
1129
|
|
|
1078
1130
|
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1131
|
+
121
|
|
1132
|
+
122
|
|
1133
|
+
123
|
|
1134
|
+
124</pre>
|
|
1083
1135
|
</td>
|
|
1084
1136
|
<td>
|
|
1085
|
-
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line
|
|
1137
|
+
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line 121</span>
|
|
1086
1138
|
|
|
1087
1139
|
<span class='kw'>def</span> <span class='id identifier rubyid_feasible?'>feasible?</span>
|
|
1088
1140
|
<span class='kw'>return</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='id identifier rubyid_feasibility_target'>feasibility_target</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span> <span class='op'>||</span> <span class='id identifier rubyid_feasibility_action'>feasibility_action</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span>
|
|
@@ -1119,13 +1171,13 @@
|
|
|
1119
1171
|
<pre class="lines">
|
|
1120
1172
|
|
|
1121
1173
|
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1174
|
+
103
|
|
1175
|
+
104
|
|
1176
|
+
105
|
|
1177
|
+
106</pre>
|
|
1126
1178
|
</td>
|
|
1127
1179
|
<td>
|
|
1128
|
-
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line
|
|
1180
|
+
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line 103</span>
|
|
1129
1181
|
|
|
1130
1182
|
<span class='kw'>def</span> <span class='id identifier rubyid_label'>label</span><span class='lparen'>(</span><span class='id identifier rubyid_model'>model</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>*</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_label_opt_overrides'>label_opt_overrides</span><span class='rparen'>)</span>
|
|
1131
1183
|
<span class='id identifier rubyid_label_opts'>label_opts</span> <span class='op'>=</span> <span class='ivar'>@label_opts</span><span class='period'>.</span><span class='id identifier rubyid_deep_merge'>deep_merge</span><span class='lparen'>(</span><span class='id identifier rubyid_label_opt_overrides'>label_opt_overrides</span><span class='rparen'>)</span>
|
|
@@ -1160,12 +1212,12 @@
|
|
|
1160
1212
|
<pre class="lines">
|
|
1161
1213
|
|
|
1162
1214
|
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1215
|
+
108
|
|
1216
|
+
109
|
|
1217
|
+
110</pre>
|
|
1166
1218
|
</td>
|
|
1167
1219
|
<td>
|
|
1168
|
-
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line
|
|
1220
|
+
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line 108</span>
|
|
1169
1221
|
|
|
1170
1222
|
<span class='kw'>def</span> <span class='id identifier rubyid_method'>method</span>
|
|
1171
1223
|
<span class='ivar'>@method</span> <span class='op'>||</span> <span class='symbol'>:get</span>
|
|
@@ -1214,13 +1266,13 @@
|
|
|
1214
1266
|
<pre class="lines">
|
|
1215
1267
|
|
|
1216
1268
|
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1269
|
+
74
|
|
1270
|
+
75
|
|
1271
|
+
76
|
|
1272
|
+
77</pre>
|
|
1221
1273
|
</td>
|
|
1222
1274
|
<td>
|
|
1223
|
-
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line
|
|
1275
|
+
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line 74</span>
|
|
1224
1276
|
|
|
1225
1277
|
<span class='kw'>def</span> <span class='id identifier rubyid_model?'>model?</span>
|
|
1226
1278
|
<span class='ivar'>@model</span> <span class='op'>=</span> <span class='ivar'>@data</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:model_name</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='op'>!</span><span class='ivar'>@data</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Class</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='ivar'>@model</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
@@ -1257,12 +1309,12 @@
|
|
|
1257
1309
|
<pre class="lines">
|
|
1258
1310
|
|
|
1259
1311
|
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1312
|
+
98
|
|
1313
|
+
99
|
|
1314
|
+
100</pre>
|
|
1263
1315
|
</td>
|
|
1264
1316
|
<td>
|
|
1265
|
-
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line
|
|
1317
|
+
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line 98</span>
|
|
1266
1318
|
|
|
1267
1319
|
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
|
1268
1320
|
<span class='ivar'>@name</span><span class='period'>.</span><span class='id identifier rubyid_presence'>presence</span> <span class='op'>||</span> <span class='symbol'>:"#{</span><span class='id identifier rubyid_comp_class'>comp_class</span><span class='period'>.</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='id identifier rubyid_comp_class'>comp_class</span><span class='period'>.</span><span class='id identifier rubyid_family_name'>family_name</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
|
@@ -1338,15 +1390,17 @@
|
|
|
1338
1390
|
<pre class="lines">
|
|
1339
1391
|
|
|
1340
1392
|
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1393
|
+
90
|
|
1394
|
+
91
|
|
1395
|
+
92
|
|
1396
|
+
93
|
|
1397
|
+
94</pre>
|
|
1345
1398
|
</td>
|
|
1346
1399
|
<td>
|
|
1347
|
-
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line
|
|
1400
|
+
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line 90</span>
|
|
1348
1401
|
|
|
1349
1402
|
<span class='kw'>def</span> <span class='id identifier rubyid_path'>path</span><span class='lparen'>(</span><span class='id identifier rubyid_model'>model</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>*</span><span class='comma'>,</span> <span class='label'>standalone_name:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_path_opt_overrides'>path_opt_overrides</span><span class='rparen'>)</span>
|
|
1403
|
+
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='ivar'>@comp_class</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
1350
1404
|
<span class='id identifier rubyid_path_opts'>path_opts</span> <span class='op'>=</span> <span class='ivar'>@path_opts</span><span class='period'>.</span><span class='id identifier rubyid_deep_merge'>deep_merge</span><span class='lparen'>(</span><span class='id identifier rubyid_path_opt_overrides'>path_opt_overrides</span><span class='rparen'>)</span>
|
|
1351
1405
|
<span class='id identifier rubyid_comp'>comp</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span><span class='lparen'>(</span><span class='id identifier rubyid_model'>model</span> <span class='op'>||</span> <span class='lparen'>(</span><span class='id identifier rubyid_model?'>model?</span> <span class='op'>?</span> <span class='ivar'>@data</span> <span class='op'>:</span> <span class='kw'>nil</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='label'>standalone_name:</span> <span class='id identifier rubyid_standalone_name'>standalone_name</span> <span class='op'>||</span> <span class='ivar'>@standalone_name</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_path_opts'>path_opts</span><span class='rparen'>)</span>
|
|
1352
1406
|
<span class='kw'>end</span></pre>
|
|
@@ -1358,7 +1412,7 @@
|
|
|
1358
1412
|
<div class="method_details ">
|
|
1359
1413
|
<h3 class="signature " id="render-instance_method">
|
|
1360
1414
|
|
|
1361
|
-
#<strong>render</strong>(controller, parent_comp = nil, style: nil,
|
|
1415
|
+
#<strong>render</strong>(controller, parent_comp = nil, style: nil, **button_arg_overrides) ⇒ <tt>Object</tt>
|
|
1362
1416
|
|
|
1363
1417
|
|
|
1364
1418
|
|
|
@@ -1430,7 +1484,7 @@
|
|
|
1430
1484
|
|
|
1431
1485
|
<li>
|
|
1432
1486
|
|
|
1433
|
-
<span class='name'>
|
|
1487
|
+
<span class='name'>button_arg_overrides</span>
|
|
1434
1488
|
|
|
1435
1489
|
|
|
1436
1490
|
<span class='type'>(<tt>Hash</tt>)</span>
|
|
@@ -1453,30 +1507,30 @@
|
|
|
1453
1507
|
<pre class="lines">
|
|
1454
1508
|
|
|
1455
1509
|
|
|
1456
|
-
131
|
|
1457
|
-
132
|
|
1458
|
-
133
|
|
1459
|
-
134
|
|
1460
|
-
135
|
|
1461
|
-
136
|
|
1462
|
-
137
|
|
1463
|
-
138
|
|
1464
|
-
139
|
|
1465
|
-
140
|
|
1466
|
-
141
|
|
1467
1510
|
142
|
|
1468
|
-
143
|
|
1511
|
+
143
|
|
1512
|
+
144
|
|
1513
|
+
145
|
|
1514
|
+
146
|
|
1515
|
+
147
|
|
1516
|
+
148
|
|
1517
|
+
149
|
|
1518
|
+
150
|
|
1519
|
+
151
|
|
1520
|
+
152
|
|
1521
|
+
153
|
|
1522
|
+
154</pre>
|
|
1469
1523
|
</td>
|
|
1470
1524
|
<td>
|
|
1471
|
-
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line
|
|
1525
|
+
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line 142</span>
|
|
1472
1526
|
|
|
1473
|
-
<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='id identifier rubyid_parent_comp'>parent_comp</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>style:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='
|
|
1474
|
-
<span class='comment'>#
|
|
1475
|
-
</span> <span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>
|
|
1527
|
+
<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='id identifier rubyid_parent_comp'>parent_comp</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>style:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_button_arg_overrides'>button_arg_overrides</span><span class='rparen'>)</span>
|
|
1528
|
+
<span class='comment'># Abort if not authorized
|
|
1529
|
+
</span> <span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='id identifier rubyid_comp'>comp</span> <span class='op'>&&</span> <span class='op'>!</span><span class='id identifier rubyid_comp'>comp</span><span class='period'>.</span><span class='id identifier rubyid_standalone_access_permitted_for?'>standalone_access_permitted_for?</span><span class='lparen'>(</span><span class='id identifier rubyid_controller'>controller</span><span class='comma'>,</span> <span class='label'>standalone_name:</span> <span class='ivar'>@standalone_name</span><span class='comma'>,</span> <span class='label'>verb:</span> <span class='id identifier rubyid_method'>method</span><span class='rparen'>)</span>
|
|
1476
1530
|
<span class='comment'># Prepare opts
|
|
1477
|
-
</span> <span class='id identifier rubyid_button_comp_class'>button_comp_class</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="../Compony.html" title="Compony (module)">Compony</a></span></span><span class='period'>.</span><span class='id identifier rubyid_button_component_class'><span class='object_link'><a href="../Compony.html#button_component_class-class_method" title="Compony.button_component_class (method)">button_component_class</a></span></span><span class='lparen'>(</span><span class='op'>*</span><span class='lbracket'>[</span><span class='id identifier rubyid_style'>style</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span><span class='rparen'>)</span>
|
|
1478
|
-
<span class='id identifier rubyid_button_opts'>button_opts</span> <span class='op'>=</span> <span class='id identifier
|
|
1479
|
-
<span class='comment'># Perform render
|
|
1531
|
+
</span> <span class='id identifier rubyid_button_comp_class'>button_comp_class</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="../Compony.html" title="Compony (module)">Compony</a></span></span><span class='period'>.</span><span class='id identifier rubyid_button_component_class'><span class='object_link'><a href="../Compony.html#button_component_class-class_method" title="Compony.button_component_class (method)">button_component_class</a></span></span><span class='lparen'>(</span><span class='op'>*</span><span class='lbracket'>[</span><span class='id identifier rubyid_style'>style</span> <span class='op'>||</span> <span class='ivar'>@style</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span><span class='rparen'>)</span>
|
|
1532
|
+
<span class='id identifier rubyid_button_opts'>button_opts</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_comp'>comp</span><span class='op'>&.</span><span class='id identifier rubyid_button_defaults'>button_defaults</span> <span class='op'>||</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_button_comp_opts'>button_comp_opts</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_button_arg_overrides'>button_arg_overrides</span><span class='rparen'>)</span> <span class='comment'># overrides go right to left
|
|
1533
|
+
</span> <span class='comment'># Perform render
|
|
1480
1534
|
</span> <span class='kw'>if</span> <span class='id identifier rubyid_parent_comp'>parent_comp</span>
|
|
1481
1535
|
<span class='kw'>return</span> <span class='id identifier rubyid_parent_comp'>parent_comp</span><span class='period'>.</span><span class='id identifier rubyid_sub_comp'>sub_comp</span><span class='lparen'>(</span><span class='id identifier rubyid_button_comp_class'>button_comp_class</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_button_opts'>button_opts</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_controller'>controller</span><span class='rparen'>)</span>
|
|
1482
1536
|
<span class='kw'>else</span>
|
|
@@ -1493,7 +1547,7 @@
|
|
|
1493
1547
|
</div>
|
|
1494
1548
|
|
|
1495
1549
|
<div id="footer">
|
|
1496
|
-
Generated on
|
|
1550
|
+
Generated on Mon Dec 8 15:19:20 2025 by
|
|
1497
1551
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1498
1552
|
0.9.34 (ruby-3.3.5).
|
|
1499
1553
|
</div>
|
|
@@ -443,7 +443,7 @@ instance_of_a_hash.roo --> nil
|
|
|
443
443
|
</div>
|
|
444
444
|
|
|
445
445
|
<div id="footer">
|
|
446
|
-
Generated on
|
|
446
|
+
Generated on Mon Dec 8 15:19:21 2025 by
|
|
447
447
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
448
448
|
0.9.34 (ruby-3.3.5).
|
|
449
449
|
</div>
|
|
@@ -509,7 +509,7 @@
|
|
|
509
509
|
</div>
|
|
510
510
|
|
|
511
511
|
<div id="footer">
|
|
512
|
-
Generated on
|
|
512
|
+
Generated on Mon Dec 8 15:19:21 2025 by
|
|
513
513
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
514
514
|
0.9.34 (ruby-3.3.5).
|
|
515
515
|
</div>
|
|
@@ -584,7 +584,7 @@
|
|
|
584
584
|
<span class='kw'>return</span> <span class='id identifier rubyid_transform_and_join'>transform_and_join</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='ivar'>@name</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='label'>controller:</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_el'>el</span><span class='op'>|</span>
|
|
585
585
|
<span class='kw'>next</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='id identifier rubyid_el'>el</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
586
586
|
<span class='kw'>if</span> <span class='const'><span class='object_link'><a href="../../Compony.html" title="Compony (module)">Compony</a></span></span><span class='period'>.</span><span class='id identifier rubyid_comp_class_for'><span class='object_link'><a href="../../Compony.html#comp_class_for-class_method" title="Compony.comp_class_for (method)">comp_class_for</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_link_to_component'>link_to_component</span><span class='comma'>,</span> <span class='id identifier rubyid_el'>el</span><span class='rparen'>)</span>
|
|
587
|
-
<span class='kw'>next</span> <span class='id identifier rubyid_controller'>controller</span><span class='period'>.</span><span class='id identifier rubyid_helpers'>helpers</span><span class='period'>.</span><span class='id identifier rubyid_render_intent'>render_intent</span><span class='lparen'>(</span><span class='id identifier rubyid_link_to_component'>link_to_component</span><span class='comma'>,</span> <span class='id identifier rubyid_el'>el</span><span class='comma'>,</span> <span class='op'>**</span><span class='lbrace'>{</span> <span class='label'>
|
|
587
|
+
<span class='kw'>next</span> <span class='id identifier rubyid_controller'>controller</span><span class='period'>.</span><span class='id identifier rubyid_helpers'>helpers</span><span class='period'>.</span><span class='id identifier rubyid_render_intent'>render_intent</span><span class='lparen'>(</span><span class='id identifier rubyid_link_to_component'>link_to_component</span><span class='comma'>,</span> <span class='id identifier rubyid_el'>el</span><span class='comma'>,</span> <span class='op'>**</span><span class='lbrace'>{</span> <span class='label'>style:</span> <span class='symbol'>:link</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_deep_merge'>deep_merge</span><span class='lparen'>(</span><span class='id identifier rubyid_link_opts'>link_opts</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
588
588
|
<span class='kw'>else</span>
|
|
589
589
|
<span class='kw'>next</span> <span class='id identifier rubyid_el'>el</span><span class='period'>.</span><span class='id identifier rubyid_label'>label</span>
|
|
590
590
|
<span class='kw'>end</span>
|
|
@@ -603,7 +603,7 @@
|
|
|
603
603
|
</div>
|
|
604
604
|
|
|
605
605
|
<div id="footer">
|
|
606
|
-
Generated on
|
|
606
|
+
Generated on Mon Dec 8 15:19:21 2025 by
|
|
607
607
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
608
608
|
0.9.34 (ruby-3.3.5).
|
|
609
609
|
</div>
|
|
@@ -489,7 +489,7 @@
|
|
|
489
489
|
</div>
|
|
490
490
|
|
|
491
491
|
<div id="footer">
|
|
492
|
-
Generated on
|
|
492
|
+
Generated on Mon Dec 8 15:19:21 2025 by
|
|
493
493
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
494
494
|
0.9.34 (ruby-3.3.5).
|
|
495
495
|
</div>
|
|
@@ -1186,7 +1186,7 @@
|
|
|
1186
1186
|
</div>
|
|
1187
1187
|
|
|
1188
1188
|
<div id="footer">
|
|
1189
|
-
Generated on
|
|
1189
|
+
Generated on Mon Dec 8 15:19:21 2025 by
|
|
1190
1190
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1191
1191
|
0.9.34 (ruby-3.3.5).
|
|
1192
1192
|
</div>
|