simple-service 0.1.5 → 0.2.1
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/.rubocop.yml +10 -2
- data/Gemfile +3 -1
- data/Makefile +5 -2
- data/TODO.txt +3 -0
- data/VERSION +1 -1
- data/doc/Simple/Service/Action/Comment/Extractor.html +1 -1
- data/doc/Simple/Service/Action/Comment.html +1 -1
- data/doc/Simple/Service/Action/MethodReflection.html +1 -1
- data/doc/Simple/Service/Action/Parameter.html +2 -2
- data/doc/Simple/Service/Action.html +59 -150
- data/doc/Simple/Service/ArgumentError.html +1 -1
- data/doc/Simple/Service/ClassMethods.html +5 -5
- data/doc/Simple/Service/Context.html +5 -5
- data/doc/Simple/Service/ContextMissingError.html +1 -1
- data/doc/Simple/Service/ContextReadOnlyError.html +1 -1
- data/doc/Simple/Service/ExtraArguments.html +1 -1
- data/doc/Simple/Service/GemHelper.html +1 -1
- data/doc/Simple/Service/MissingArguments.html +1 -1
- data/doc/Simple/Service/NoSuchAction.html +1 -1
- data/doc/Simple/Service.html +89 -87
- data/doc/Simple.html +1 -1
- data/doc/_index.html +7 -19
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +3 -3
- data/doc/file.TODO.html +70 -0
- data/doc/file_list.html +5 -0
- data/doc/index.html +3 -3
- data/doc/method_list.html +59 -115
- data/doc/top-level-namespace.html +1 -1
- data/lib/simple/service/action/comment.rb +1 -1
- data/lib/simple/service/action.rb +10 -3
- data/lib/simple/service/errors.rb +4 -3
- data/lib/simple/service.rb +33 -28
- data/lib/simple/workflow/context.rb +105 -0
- data/lib/simple/workflow/current_context.rb +33 -0
- data/lib/simple/workflow/reloader.rb +84 -0
- data/lib/simple/workflow/rspec_helper.rb +15 -0
- data/lib/simple/workflow.rb +96 -0
- data/lib/simple-workflow.rb +3 -0
- data/scripts/test +2 -0
- data/simple-service.gemspec +1 -0
- data/spec/simple/service/action_invoke3_spec.rb +0 -8
- data/spec/simple/service/action_invoke_spec.rb +82 -20
- data/spec/simple/service/service_spec.rb +13 -56
- data/spec/simple/workflow/context_spec.rb +90 -0
- data/spec/simple/workflow/current_context_spec.rb +41 -0
- data/spec/simple/workflow/reloader_spec/example1.rb +10 -0
- data/spec/simple/workflow/reloader_spec/example2.rb +7 -0
- data/spec/simple/workflow/reloader_spec.rb +48 -0
- data/spec/spec_helper.rb +2 -1
- data/spec/support/spec_services.rb +1 -3
- metadata +42 -7
- data/doc/Simple/Service/Action/IndieHash.html +0 -506
- data/lib/simple/service/context.rb +0 -94
- data/spec/simple/service/context_spec.rb +0 -69
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d65e66415fb2f397d259653690c278d2322d196433617694df746fabc31a3e13
|
4
|
+
data.tar.gz: 1c37a1564e0cfd743eba8ff453b6659e4bd4cc6d82b240c095931b3b6eb5ec26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32271afe6c145349999b772d8d9981cd09895e78228a01fa8d22a3103fd4a8ea1e198f7e24a69681a6068b00c7f81b7944a613efc5fb7f9bdbb5d7221fa42f0b
|
7
|
+
data.tar.gz: 8ed02caac30787e6e9dc62491374f1bd75a9116c29b4091bb4027336b28e53f0499918b95d45d5961d3e52f405e5a099f448c2461180e8f170b35f1f33032a41
|
data/.rubocop.yml
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
AllCops:
|
2
|
-
|
2
|
+
NewCops: enable
|
3
|
+
TargetRubyVersion: 2.7
|
3
4
|
Exclude:
|
4
5
|
- 'spec/**/*'
|
5
6
|
- 'test/**/*'
|
@@ -14,7 +15,7 @@ Metrics/BlockLength:
|
|
14
15
|
Exclude:
|
15
16
|
- 'spec/**/*'
|
16
17
|
|
17
|
-
|
18
|
+
Layout/LineLength:
|
18
19
|
Max: 140
|
19
20
|
|
20
21
|
Metrics/MethodLength:
|
@@ -98,3 +99,10 @@ Style/DoubleNegation:
|
|
98
99
|
|
99
100
|
Style/ParallelAssignment:
|
100
101
|
Enabled: false
|
102
|
+
|
103
|
+
Style/CommentedKeyword:
|
104
|
+
Enabled: false
|
105
|
+
|
106
|
+
Style/AccessorGrouping:
|
107
|
+
Enabled: false
|
108
|
+
|
data/Gemfile
CHANGED
data/Makefile
CHANGED
data/TODO.txt
ADDED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1
|
1
|
+
0.2.1
|
@@ -337,7 +337,7 @@
|
|
337
337
|
</div>
|
338
338
|
|
339
339
|
<div id="footer">
|
340
|
-
Generated on
|
340
|
+
Generated on Wed Dec 4 22:57:13 2019 by
|
341
341
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
342
342
|
0.9.20 (ruby-2.5.1).
|
343
343
|
</div>
|
@@ -441,7 +441,7 @@
|
|
441
441
|
</div>
|
442
442
|
|
443
443
|
<div id="footer">
|
444
|
-
Generated on
|
444
|
+
Generated on Wed Dec 4 22:57:13 2019 by
|
445
445
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
446
446
|
0.9.20 (ruby-2.5.1).
|
447
447
|
</div>
|
@@ -275,7 +275,7 @@
|
|
275
275
|
</div>
|
276
276
|
|
277
277
|
<div id="footer">
|
278
|
-
Generated on
|
278
|
+
Generated on Wed Dec 4 22:57:13 2019 by
|
279
279
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
280
280
|
0.9.20 (ruby-2.5.1).
|
281
281
|
</div>
|
@@ -406,7 +406,7 @@
|
|
406
406
|
<span class='id identifier rubyid_expect!'>expect!</span> <span class='id identifier rubyid_default_value'>default_value</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>=></span> <span class='lbracket'>[</span><span class='int'>0</span><span class='comma'>,</span> <span class='int'>1</span><span class='rbracket'>]</span>
|
407
407
|
|
408
408
|
<span class='ivar'>@kind</span> <span class='op'>=</span> <span class='id identifier rubyid_kind'>kind</span>
|
409
|
-
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span>
|
409
|
+
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
410
410
|
<span class='ivar'>@default_value</span> <span class='op'>=</span> <span class='id identifier rubyid_default_value'>default_value</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
411
411
|
<span class='kw'>end</span></pre>
|
412
412
|
</td>
|
@@ -806,7 +806,7 @@
|
|
806
806
|
</div>
|
807
807
|
|
808
808
|
<div id="footer">
|
809
|
-
Generated on
|
809
|
+
Generated on Wed Dec 4 22:57:13 2019 by
|
810
810
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
811
811
|
0.9.20 (ruby-2.5.1).
|
812
812
|
</div>
|
@@ -95,7 +95,7 @@
|
|
95
95
|
<dl>
|
96
96
|
<dt>Defined in:</dt>
|
97
97
|
<dd>lib/simple/service/action.rb<span class="defines">,<br />
|
98
|
-
lib/simple/service/action.rb
|
98
|
+
lib/simple/service/action.rb</span>
|
99
99
|
</dd>
|
100
100
|
</dl>
|
101
101
|
|
@@ -104,7 +104,7 @@
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
105
105
|
<div class="discussion">
|
106
106
|
|
107
|
-
<p>rubocop:disable Metrics/AbcSize rubocop:disable Metrics/PerceivedComplexity rubocop:disable Metrics/CyclomaticComplexity rubocop:disable
|
107
|
+
<p>rubocop:disable Metrics/AbcSize rubocop:disable Metrics/PerceivedComplexity rubocop:disable Metrics/CyclomaticComplexity rubocop:disable Metrics/ClassLength</p>
|
108
108
|
|
109
109
|
|
110
110
|
</div>
|
@@ -120,7 +120,7 @@
|
|
120
120
|
|
121
121
|
|
122
122
|
|
123
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Action/Comment.html" title="Simple::Service::Action::Comment (class)">Comment</a></span>, <span class='object_link'><a href="Action/
|
123
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Action/Comment.html" title="Simple::Service::Action::Comment (class)">Comment</a></span>, <span class='object_link'><a href="Action/Parameter.html" title="Simple::Service::Action::Parameter (class)">Parameter</a></span>
|
124
124
|
|
125
125
|
|
126
126
|
</p>
|
@@ -329,31 +329,7 @@
|
|
329
329
|
<li class="public ">
|
330
330
|
<span class="summary_signature">
|
331
331
|
|
332
|
-
<a href="#invoke-instance_method" title="#invoke (instance method)">#<strong>invoke</strong>(
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
</span>
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
<span class="summary_desc"><div class='inline'>
|
347
|
-
<p>build a service_instance and run the action, with arguments constructed from args_hsh and params_hsh.</p>
|
348
|
-
</div></span>
|
349
|
-
|
350
|
-
</li>
|
351
|
-
|
352
|
-
|
353
|
-
<li class="public ">
|
354
|
-
<span class="summary_signature">
|
355
|
-
|
356
|
-
<a href="#invoke2-instance_method" title="#invoke2 (instance method)">#<strong>invoke2</strong>(args:, flags:) ⇒ Object </a>
|
332
|
+
<a href="#invoke-instance_method" title="#invoke (instance method)">#<strong>invoke</strong>(args:, flags:) ⇒ Object </a>
|
357
333
|
|
358
334
|
|
359
335
|
|
@@ -496,15 +472,15 @@
|
|
496
472
|
<pre class="lines">
|
497
473
|
|
498
474
|
|
475
|
+
42
|
476
|
+
43
|
499
477
|
44
|
500
478
|
45
|
501
479
|
46
|
502
|
-
47
|
503
|
-
48
|
504
|
-
49</pre>
|
480
|
+
47</pre>
|
505
481
|
</td>
|
506
482
|
<td>
|
507
|
-
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line
|
483
|
+
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line 42</span>
|
508
484
|
|
509
485
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_service'>service</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='comment'># @private
|
510
486
|
</span> <span class='ivar'>@service</span> <span class='op'>=</span> <span class='id identifier rubyid_service'>service</span>
|
@@ -550,12 +526,12 @@
|
|
550
526
|
<pre class="lines">
|
551
527
|
|
552
528
|
|
553
|
-
|
554
|
-
|
555
|
-
|
529
|
+
27
|
530
|
+
28
|
531
|
+
29</pre>
|
556
532
|
</td>
|
557
533
|
<td>
|
558
|
-
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line
|
534
|
+
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line 27</span>
|
559
535
|
|
560
536
|
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
561
537
|
<span class='ivar'>@name</span>
|
@@ -593,12 +569,12 @@
|
|
593
569
|
<pre class="lines">
|
594
570
|
|
595
571
|
|
596
|
-
|
597
|
-
|
598
|
-
|
572
|
+
26
|
573
|
+
27
|
574
|
+
28</pre>
|
599
575
|
</td>
|
600
576
|
<td>
|
601
|
-
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line
|
577
|
+
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line 26</span>
|
602
578
|
|
603
579
|
<span class='kw'>def</span> <span class='id identifier rubyid_service'>service</span>
|
604
580
|
<span class='ivar'>@service</span>
|
@@ -641,14 +617,14 @@
|
|
641
617
|
<pre class="lines">
|
642
618
|
|
643
619
|
|
620
|
+
20
|
621
|
+
21
|
644
622
|
22
|
645
623
|
23
|
646
|
-
24
|
647
|
-
25
|
648
|
-
26</pre>
|
624
|
+
24</pre>
|
649
625
|
</td>
|
650
626
|
<td>
|
651
|
-
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line
|
627
|
+
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line 20</span>
|
652
628
|
|
653
629
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_enumerate'>enumerate</span><span class='lparen'>(</span><span class='label'>service:</span><span class='rparen'>)</span> <span class='comment'># @private
|
654
630
|
</span> <span class='id identifier rubyid_service'>service</span><span class='period'>.</span><span class='id identifier rubyid_public_instance_methods'>public_instance_methods</span><span class='lparen'>(</span><span class='kw'>false</span><span class='rparen'>)</span>
|
@@ -681,12 +657,12 @@
|
|
681
657
|
<pre class="lines">
|
682
658
|
|
683
659
|
|
684
|
-
|
685
|
-
|
686
|
-
|
660
|
+
53
|
661
|
+
54
|
662
|
+
55</pre>
|
687
663
|
</td>
|
688
664
|
<td>
|
689
|
-
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line
|
665
|
+
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line 53</span>
|
690
666
|
|
691
667
|
<span class='kw'>def</span> <span class='id identifier rubyid_full_description'>full_description</span>
|
692
668
|
<span class='id identifier rubyid_comment'>comment</span><span class='period'>.</span><span class='id identifier rubyid_full'>full</span>
|
@@ -711,12 +687,12 @@
|
|
711
687
|
<pre class="lines">
|
712
688
|
|
713
689
|
|
714
|
-
|
715
|
-
|
716
|
-
|
690
|
+
29
|
691
|
+
30
|
692
|
+
31</pre>
|
717
693
|
</td>
|
718
694
|
<td>
|
719
|
-
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line
|
695
|
+
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line 29</span>
|
720
696
|
|
721
697
|
<span class='kw'>def</span> <span class='id identifier rubyid_full_name'>full_name</span>
|
722
698
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_service'>service</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_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
@@ -729,7 +705,7 @@
|
|
729
705
|
<div class="method_details ">
|
730
706
|
<h3 class="signature " id="invoke-instance_method">
|
731
707
|
|
732
|
-
#<strong>invoke</strong>(
|
708
|
+
#<strong>invoke</strong>(args:, flags:) ⇒ <tt>Object</tt>
|
733
709
|
|
734
710
|
|
735
711
|
|
@@ -738,7 +714,9 @@
|
|
738
714
|
</h3><div class="docstring">
|
739
715
|
<div class="discussion">
|
740
716
|
|
741
|
-
<p>
|
717
|
+
<p>invokes an action with a given <code>name</code> in a service with a Hash of arguments.</p>
|
718
|
+
|
719
|
+
<p>You cannot call this method if the context is not set.</p>
|
742
720
|
|
743
721
|
|
744
722
|
</div>
|
@@ -752,6 +730,7 @@
|
|
752
730
|
<pre class="lines">
|
753
731
|
|
754
732
|
|
733
|
+
75
|
755
734
|
76
|
756
735
|
77
|
757
736
|
78
|
@@ -763,89 +742,19 @@
|
|
763
742
|
84
|
764
743
|
85
|
765
744
|
86
|
766
|
-
87
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_invoke'>invoke</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_named_args'>named_args</span><span class='rparen'>)</span>
|
772
|
-
<span class='comment'># convert Array arguments into a Hash of named arguments. This is strictly
|
773
|
-
</span> <span class='comment'># necessary to be able to apply default value-based type conversions. (On
|
774
|
-
</span> <span class='comment'># the downside this also means we convert an array to a hash and then back
|
775
|
-
</span> <span class='comment'># into an array. This, however, should only be an issue for CLI based action
|
776
|
-
</span> <span class='comment'># invocations, because any other use case (that I can think of) should allow
|
777
|
-
</span> <span class='comment'># us to provide arguments as a Hash.
|
778
|
-
</span> <span class='id identifier rubyid_args'>args</span> <span class='op'>=</span> <span class='id identifier rubyid_convert_argument_array_to_hash'>convert_argument_array_to_hash</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
779
|
-
<span class='id identifier rubyid_named_args'>named_args</span> <span class='op'>=</span> <span class='id identifier rubyid_named_args'>named_args</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
780
|
-
|
781
|
-
<span class='id identifier rubyid_invoke2'>invoke2</span><span class='lparen'>(</span><span class='label'>args:</span> <span class='id identifier rubyid_named_args'>named_args</span><span class='comma'>,</span> <span class='label'>flags:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
782
|
-
<span class='kw'>end</span></pre>
|
783
|
-
</td>
|
784
|
-
</tr>
|
785
|
-
</table>
|
786
|
-
</div>
|
787
|
-
|
788
|
-
<div class="method_details ">
|
789
|
-
<h3 class="signature " id="invoke2-instance_method">
|
790
|
-
|
791
|
-
#<strong>invoke2</strong>(args:, flags:) ⇒ <tt>Object</tt>
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
</h3><div class="docstring">
|
798
|
-
<div class="discussion">
|
799
|
-
|
800
|
-
<p>invokes an action with a given <code>name</code> in a service with a Hash of arguments.</p>
|
801
|
-
|
802
|
-
<p>You cannot call this method if the context is not set.</p>
|
803
|
-
|
804
|
-
|
805
|
-
</div>
|
806
|
-
</div>
|
807
|
-
<div class="tags">
|
808
|
-
|
809
|
-
|
810
|
-
</div><table class="source_code">
|
811
|
-
<tr>
|
812
|
-
<td>
|
813
|
-
<pre class="lines">
|
814
|
-
|
815
|
-
|
745
|
+
87
|
746
|
+
88
|
747
|
+
89
|
748
|
+
90
|
749
|
+
91
|
816
750
|
92
|
817
|
-
93
|
818
|
-
94
|
819
|
-
95
|
820
|
-
96
|
821
|
-
97
|
822
|
-
98
|
823
|
-
99
|
824
|
-
100
|
825
|
-
101
|
826
|
-
102
|
827
|
-
103
|
828
|
-
104
|
829
|
-
105
|
830
|
-
106
|
831
|
-
107
|
832
|
-
108
|
833
|
-
109
|
834
|
-
110
|
835
|
-
111
|
836
|
-
112
|
837
|
-
113
|
838
|
-
114</pre>
|
751
|
+
93</pre>
|
839
752
|
</td>
|
840
753
|
<td>
|
841
|
-
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line
|
754
|
+
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line 75</span>
|
842
755
|
|
843
|
-
<span class='kw'>def</span> <span class='id identifier
|
844
|
-
<span class='
|
845
|
-
</span> <span class='comment'># unchecked input to DOS this process by just providing always changing
|
846
|
-
</span> <span class='comment'># key values.
|
847
|
-
</span> <span class='id identifier rubyid_args'>args</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Action/IndieHash.html" title="Simple::Service::Action::IndieHash (class)">IndieHash</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Action/IndieHash.html#initialize-instance_method" title="Simple::Service::Action::IndieHash#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
848
|
-
<span class='id identifier rubyid_flags'>flags</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Action/IndieHash.html" title="Simple::Service::Action::IndieHash (class)">IndieHash</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Action/IndieHash.html#initialize-instance_method" title="Simple::Service::Action::IndieHash#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_flags'>flags</span><span class='rparen'>)</span>
|
756
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_invoke'>invoke</span><span class='lparen'>(</span><span class='label'>args:</span><span class='comma'>,</span> <span class='label'>flags:</span><span class='rparen'>)</span>
|
757
|
+
<span class='id identifier rubyid_args'>args</span> <span class='op'>=</span> <span class='id identifier rubyid_convert_argument_array_to_hash'>convert_argument_array_to_hash</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Array</span><span class='rparen'>)</span>
|
849
758
|
|
850
759
|
<span class='id identifier rubyid_verify_required_args!'>verify_required_args!</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='id identifier rubyid_flags'>flags</span><span class='rparen'>)</span>
|
851
760
|
|
@@ -894,12 +803,12 @@
|
|
894
803
|
<pre class="lines">
|
895
804
|
|
896
805
|
|
897
|
-
|
898
|
-
|
899
|
-
|
806
|
+
38
|
807
|
+
39
|
808
|
+
40</pre>
|
900
809
|
</td>
|
901
810
|
<td>
|
902
|
-
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line
|
811
|
+
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line 38</span>
|
903
812
|
|
904
813
|
<span class='kw'>def</span> <span class='id identifier rubyid_parameters'>parameters</span>
|
905
814
|
<span class='ivar'>@parameters</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="Action/Parameter.html" title="Simple::Service::Action::Parameter (class)">Parameter</a></span></span><span class='period'>.</span><span class='id identifier rubyid_reflect_on_method'><span class='object_link'><a href="Action/Parameter.html#reflect_on_method-class_method" title="Simple::Service::Action::Parameter.reflect_on_method (method)">reflect_on_method</a></span></span><span class='lparen'>(</span><span class='label'>service:</span> <span class='id identifier rubyid_service'>service</span><span class='comma'>,</span> <span class='label'>name:</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
@@ -924,12 +833,12 @@
|
|
924
833
|
<pre class="lines">
|
925
834
|
|
926
835
|
|
927
|
-
|
928
|
-
|
929
|
-
|
836
|
+
49
|
837
|
+
50
|
838
|
+
51</pre>
|
930
839
|
</td>
|
931
840
|
<td>
|
932
|
-
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line
|
841
|
+
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line 49</span>
|
933
842
|
|
934
843
|
<span class='kw'>def</span> <span class='id identifier rubyid_short_description'>short_description</span>
|
935
844
|
<span class='id identifier rubyid_comment'>comment</span><span class='period'>.</span><span class='id identifier rubyid_short'>short</span>
|
@@ -954,12 +863,12 @@
|
|
954
863
|
<pre class="lines">
|
955
864
|
|
956
865
|
|
957
|
-
|
958
|
-
|
959
|
-
|
866
|
+
68
|
867
|
+
69
|
868
|
+
70</pre>
|
960
869
|
</td>
|
961
870
|
<td>
|
962
|
-
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line
|
871
|
+
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line 68</span>
|
963
872
|
|
964
873
|
<span class='kw'>def</span> <span class='id identifier rubyid_source_location'>source_location</span>
|
965
874
|
<span class='ivar'>@service</span><span class='period'>.</span><span class='id identifier rubyid_instance_method'>instance_method</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_source_location'>source_location</span>
|
@@ -984,12 +893,12 @@
|
|
984
893
|
<pre class="lines">
|
985
894
|
|
986
895
|
|
987
|
-
|
988
|
-
|
989
|
-
|
896
|
+
33
|
897
|
+
34
|
898
|
+
35</pre>
|
990
899
|
</td>
|
991
900
|
<td>
|
992
|
-
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line
|
901
|
+
<pre class="code"><span class="info file"># File 'lib/simple/service/action.rb', line 33</span>
|
993
902
|
|
994
903
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span> <span class='comment'># @private
|
995
904
|
</span> <span class='id identifier rubyid_full_name'>full_name</span>
|
@@ -1004,7 +913,7 @@
|
|
1004
913
|
</div>
|
1005
914
|
|
1006
915
|
<div id="footer">
|
1007
|
-
Generated on
|
916
|
+
Generated on Wed Dec 4 22:57:13 2019 by
|
1008
917
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1009
918
|
0.9.20 (ruby-2.5.1).
|
1010
919
|
</div>
|
@@ -118,7 +118,7 @@
|
|
118
118
|
</div>
|
119
119
|
|
120
120
|
<div id="footer">
|
121
|
-
Generated on
|
121
|
+
Generated on Wed Dec 4 22:57:13 2019 by
|
122
122
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
123
123
|
0.9.20 (ruby-2.5.1).
|
124
124
|
</div>
|
@@ -157,12 +157,12 @@
|
|
157
157
|
<pre class="lines">
|
158
158
|
|
159
159
|
|
160
|
-
|
161
|
-
|
162
|
-
|
160
|
+
153
|
161
|
+
154
|
162
|
+
155</pre>
|
163
163
|
</td>
|
164
164
|
<td>
|
165
|
-
<pre class="code"><span class="info file"># File 'lib/simple/service.rb', line
|
165
|
+
<pre class="code"><span class="info file"># File 'lib/simple/service.rb', line 153</span>
|
166
166
|
|
167
167
|
<span class='kw'>def</span> <span class='id identifier rubyid___simple_service_actions__'>__simple_service_actions__</span>
|
168
168
|
<span class='ivar'>@__simple_service_actions__</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="Action.html" title="Simple::Service::Action (class)">Action</a></span></span><span class='period'>.</span><span class='id identifier rubyid_enumerate'><span class='object_link'><a href="Action.html#enumerate-class_method" title="Simple::Service::Action.enumerate (method)">enumerate</a></span></span><span class='lparen'>(</span><span class='label'>service:</span> <span class='kw'>self</span><span class='rparen'>)</span>
|
@@ -177,7 +177,7 @@
|
|
177
177
|
</div>
|
178
178
|
|
179
179
|
<div id="footer">
|
180
|
-
Generated on
|
180
|
+
Generated on Wed Dec 4 22:57:13 2019 by
|
181
181
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
182
182
|
0.9.20 (ruby-2.5.1).
|
183
183
|
</div>
|
@@ -134,7 +134,7 @@
|
|
134
134
|
<li class="public ">
|
135
135
|
<span class="summary_signature">
|
136
136
|
|
137
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(hsh =
|
137
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(hsh = nil) ⇒ Context </a>
|
138
138
|
|
139
139
|
|
140
140
|
|
@@ -190,7 +190,7 @@
|
|
190
190
|
<div class="method_details first">
|
191
191
|
<h3 class="signature first" id="initialize-instance_method">
|
192
192
|
|
193
|
-
#<strong>initialize</strong>(hsh =
|
193
|
+
#<strong>initialize</strong>(hsh = nil) ⇒ <tt><span class='object_link'><a href="" title="Simple::Service::Context (class)">Context</a></span></tt>
|
194
194
|
|
195
195
|
|
196
196
|
|
@@ -220,8 +220,8 @@
|
|
220
220
|
<td>
|
221
221
|
<pre class="code"><span class="info file"># File 'lib/simple/service/context.rb', line 35</span>
|
222
222
|
|
223
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_hsh'>hsh</span> <span class='op'>=</span> <span class='
|
224
|
-
</span> <span class='ivar'>@hsh</span> <span class='op'>=</span> <span class='id identifier rubyid_hsh'>hsh</span>
|
223
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_hsh'>hsh</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span> <span class='comment'># @private
|
224
|
+
</span> <span class='ivar'>@hsh</span> <span class='op'>=</span> <span class='id identifier rubyid_hsh'>hsh</span> <span class='op'>||</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
225
225
|
<span class='kw'>end</span></pre>
|
226
226
|
</td>
|
227
227
|
</tr>
|
@@ -369,7 +369,7 @@
|
|
369
369
|
</div>
|
370
370
|
|
371
371
|
<div id="footer">
|
372
|
-
Generated on
|
372
|
+
Generated on Wed Dec 4 22:57:13 2019 by
|
373
373
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
374
374
|
0.9.20 (ruby-2.5.1).
|
375
375
|
</div>
|
@@ -114,7 +114,7 @@
|
|
114
114
|
</div>
|
115
115
|
|
116
116
|
<div id="footer">
|
117
|
-
Generated on
|
117
|
+
Generated on Wed Dec 4 22:57:13 2019 by
|
118
118
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
119
119
|
0.9.20 (ruby-2.5.1).
|
120
120
|
</div>
|
@@ -196,7 +196,7 @@
|
|
196
196
|
</div>
|
197
197
|
|
198
198
|
<div id="footer">
|
199
|
-
Generated on
|
199
|
+
Generated on Wed Dec 4 22:57:13 2019 by
|
200
200
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
201
201
|
0.9.20 (ruby-2.5.1).
|
202
202
|
</div>
|
@@ -418,7 +418,7 @@
|
|
418
418
|
</div>
|
419
419
|
|
420
420
|
<div id="footer">
|
421
|
-
Generated on
|
421
|
+
Generated on Wed Dec 4 22:57:13 2019 by
|
422
422
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
423
423
|
0.9.20 (ruby-2.5.1).
|
424
424
|
</div>
|
@@ -180,7 +180,7 @@
|
|
180
180
|
</div>
|
181
181
|
|
182
182
|
<div id="footer">
|
183
|
-
Generated on
|
183
|
+
Generated on Wed Dec 4 22:57:13 2019 by
|
184
184
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
185
185
|
0.9.20 (ruby-2.5.1).
|
186
186
|
</div>
|
@@ -416,7 +416,7 @@
|
|
416
416
|
</div>
|
417
417
|
|
418
418
|
<div id="footer">
|
419
|
-
Generated on
|
419
|
+
Generated on Wed Dec 4 22:57:13 2019 by
|
420
420
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
421
421
|
0.9.20 (ruby-2.5.1).
|
422
422
|
</div>
|
@@ -423,7 +423,7 @@
|
|
423
423
|
</div>
|
424
424
|
|
425
425
|
<div id="footer">
|
426
|
-
Generated on
|
426
|
+
Generated on Wed Dec 4 22:57:13 2019 by
|
427
427
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
428
428
|
0.9.20 (ruby-2.5.1).
|
429
429
|
</div>
|