simple-service 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -2
- data/.rubocop.yml +10 -2
- data/Gemfile +3 -1
- data/Makefile +7 -11
- data/README.md +67 -2
- data/TODO.txt +3 -0
- data/VERSION +1 -1
- data/doc/Simple/Service/Action/Comment/Extractor.html +347 -0
- data/doc/Simple/Service/Action/Comment.html +451 -0
- data/doc/Simple/Service/Action/MethodReflection.html +285 -0
- data/doc/Simple/Service/Action/Parameter.html +816 -0
- data/doc/Simple/Service/Action.html +923 -0
- data/doc/Simple/Service/ArgumentError.html +128 -0
- data/doc/Simple/Service/ClassMethods.html +187 -0
- data/doc/Simple/Service/Context.html +379 -0
- data/doc/Simple/Service/ContextMissingError.html +124 -0
- data/doc/Simple/Service/ContextReadOnlyError.html +206 -0
- data/doc/Simple/Service/ExtraArguments.html +428 -0
- data/doc/Simple/Service/GemHelper.html +190 -0
- data/doc/Simple/Service/MissingArguments.html +426 -0
- data/doc/Simple/Service/NoSuchAction.html +433 -0
- data/doc/Simple/Service.html +865 -0
- data/doc/Simple.html +117 -0
- data/doc/_index.html +274 -0
- data/doc/class_list.html +51 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +58 -0
- data/doc/css/style.css +496 -0
- data/doc/file.README.html +146 -0
- data/doc/file.TODO.html +70 -0
- data/doc/file_list.html +61 -0
- data/doc/frames.html +17 -0
- data/doc/index.html +146 -0
- data/doc/js/app.js +303 -0
- data/doc/js/full_list.js +216 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +483 -0
- data/doc/top-level-namespace.html +110 -0
- data/lib/simple/service/action/comment.rb +2 -2
- data/lib/simple/service/action/method_reflection.rb +1 -1
- data/lib/simple/service/action/parameter.rb +1 -1
- data/lib/simple/service/action.rb +34 -46
- data/lib/simple/service/errors.rb +4 -3
- data/lib/simple/service/version.rb +2 -2
- data/lib/simple/service.rb +109 -34
- 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 +258 -0
- data/spec/simple/service/action_invoke_spec.rb +49 -87
- data/spec/simple/service/service_spec.rb +40 -32
- 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 +8 -2
- metadata +74 -9
- data/lib/simple/service/action/indie_hash.rb +0 -37
- data/lib/simple/service/context.rb +0 -94
- data/spec/simple/service/action_invoke2_spec.rb +0 -166
- data/spec/simple/service/context_spec.rb +0 -69
@@ -0,0 +1,483 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
5
|
+
<meta charset="utf-8" />
|
6
|
+
|
7
|
+
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
16
|
+
|
17
|
+
|
18
|
+
<title>Method List</title>
|
19
|
+
<base id="base_target" target="_parent" />
|
20
|
+
</head>
|
21
|
+
<body>
|
22
|
+
<div id="content">
|
23
|
+
<div class="fixed_header">
|
24
|
+
<h1 id="full_list_header">Method List</h1>
|
25
|
+
<div id="full_list_nav">
|
26
|
+
|
27
|
+
<span><a target="_self" href="class_list.html">
|
28
|
+
Classes
|
29
|
+
</a></span>
|
30
|
+
|
31
|
+
<span><a target="_self" href="method_list.html">
|
32
|
+
Methods
|
33
|
+
</a></span>
|
34
|
+
|
35
|
+
<span><a target="_self" href="file_list.html">
|
36
|
+
Files
|
37
|
+
</a></span>
|
38
|
+
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div id="search">Search: <input type="text" /></div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
<ul id="full_list" class="method">
|
45
|
+
|
46
|
+
|
47
|
+
<li class="odd ">
|
48
|
+
<div class="item">
|
49
|
+
<span class='object_link'><a href="Simple/Service/ClassMethods.html#__simple_service_actions__-instance_method" title="Simple::Service::ClassMethods#__simple_service_actions__ (method)">#__simple_service_actions__</a></span>
|
50
|
+
<small>Simple::Service::ClassMethods</small>
|
51
|
+
</div>
|
52
|
+
</li>
|
53
|
+
|
54
|
+
|
55
|
+
<li class="even ">
|
56
|
+
<div class="item">
|
57
|
+
<span class='object_link'><a href="Simple/Service/Action/Comment/Extractor.html#_parse_source-instance_method" title="Simple::Service::Action::Comment::Extractor#_parse_source (method)">#_parse_source</a></span>
|
58
|
+
<small>Simple::Service::Action::Comment::Extractor</small>
|
59
|
+
</div>
|
60
|
+
</li>
|
61
|
+
|
62
|
+
|
63
|
+
<li class="odd ">
|
64
|
+
<div class="item">
|
65
|
+
<span class='object_link'><a href="Simple/Service/ExtraArguments.html#action-instance_method" title="Simple::Service::ExtraArguments#action (method)">#action</a></span>
|
66
|
+
<small>Simple::Service::ExtraArguments</small>
|
67
|
+
</div>
|
68
|
+
</li>
|
69
|
+
|
70
|
+
|
71
|
+
<li class="even ">
|
72
|
+
<div class="item">
|
73
|
+
<span class='object_link'><a href="Simple/Service.html#action-class_method" title="Simple::Service.action (method)">action</a></span>
|
74
|
+
<small>Simple::Service</small>
|
75
|
+
</div>
|
76
|
+
</li>
|
77
|
+
|
78
|
+
|
79
|
+
<li class="odd ">
|
80
|
+
<div class="item">
|
81
|
+
<span class='object_link'><a href="Simple/Service/MissingArguments.html#action-instance_method" title="Simple::Service::MissingArguments#action (method)">#action</a></span>
|
82
|
+
<small>Simple::Service::MissingArguments</small>
|
83
|
+
</div>
|
84
|
+
</li>
|
85
|
+
|
86
|
+
|
87
|
+
<li class="even ">
|
88
|
+
<div class="item">
|
89
|
+
<span class='object_link'><a href="Simple/Service.html#actions-class_method" title="Simple::Service.actions (method)">actions</a></span>
|
90
|
+
<small>Simple::Service</small>
|
91
|
+
</div>
|
92
|
+
</li>
|
93
|
+
|
94
|
+
|
95
|
+
<li class="odd ">
|
96
|
+
<div class="item">
|
97
|
+
<span class='object_link'><a href="Simple/Service/ExtraArguments.html#arguments-instance_method" title="Simple::Service::ExtraArguments#arguments (method)">#arguments</a></span>
|
98
|
+
<small>Simple::Service::ExtraArguments</small>
|
99
|
+
</div>
|
100
|
+
</li>
|
101
|
+
|
102
|
+
|
103
|
+
<li class="even ">
|
104
|
+
<div class="item">
|
105
|
+
<span class='object_link'><a href="Simple/Service.html#context-class_method" title="Simple::Service.context (method)">context</a></span>
|
106
|
+
<small>Simple::Service</small>
|
107
|
+
</div>
|
108
|
+
</li>
|
109
|
+
|
110
|
+
|
111
|
+
<li class="odd ">
|
112
|
+
<div class="item">
|
113
|
+
<span class='object_link'><a href="Simple/Service/Action/Parameter.html#default_value-instance_method" title="Simple::Service::Action::Parameter#default_value (method)">#default_value</a></span>
|
114
|
+
<small>Simple::Service::Action::Parameter</small>
|
115
|
+
</div>
|
116
|
+
</li>
|
117
|
+
|
118
|
+
|
119
|
+
<li class="even ">
|
120
|
+
<div class="item">
|
121
|
+
<span class='object_link'><a href="Simple/Service/Action.html#enumerate-class_method" title="Simple::Service::Action.enumerate (method)">enumerate</a></span>
|
122
|
+
<small>Simple::Service::Action</small>
|
123
|
+
</div>
|
124
|
+
</li>
|
125
|
+
|
126
|
+
|
127
|
+
<li class="odd ">
|
128
|
+
<div class="item">
|
129
|
+
<span class='object_link'><a href="Simple/Service/Action/Comment.html#extract-class_method" title="Simple::Service::Action::Comment.extract (method)">extract</a></span>
|
130
|
+
<small>Simple::Service::Action::Comment</small>
|
131
|
+
</div>
|
132
|
+
</li>
|
133
|
+
|
134
|
+
|
135
|
+
<li class="even ">
|
136
|
+
<div class="item">
|
137
|
+
<span class='object_link'><a href="Simple/Service/Action/Comment/Extractor.html#extract_comment_lines-instance_method" title="Simple::Service::Action::Comment::Extractor#extract_comment_lines (method)">#extract_comment_lines</a></span>
|
138
|
+
<small>Simple::Service::Action::Comment::Extractor</small>
|
139
|
+
</div>
|
140
|
+
</li>
|
141
|
+
|
142
|
+
|
143
|
+
<li class="odd ">
|
144
|
+
<div class="item">
|
145
|
+
<span class='object_link'><a href="Simple/Service/Action/Comment.html#full-instance_method" title="Simple::Service::Action::Comment#full (method)">#full</a></span>
|
146
|
+
<small>Simple::Service::Action::Comment</small>
|
147
|
+
</div>
|
148
|
+
</li>
|
149
|
+
|
150
|
+
|
151
|
+
<li class="even ">
|
152
|
+
<div class="item">
|
153
|
+
<span class='object_link'><a href="Simple/Service/Action.html#full_description-instance_method" title="Simple::Service::Action#full_description (method)">#full_description</a></span>
|
154
|
+
<small>Simple::Service::Action</small>
|
155
|
+
</div>
|
156
|
+
</li>
|
157
|
+
|
158
|
+
|
159
|
+
<li class="odd ">
|
160
|
+
<div class="item">
|
161
|
+
<span class='object_link'><a href="Simple/Service/Action.html#full_name-instance_method" title="Simple::Service::Action#full_name (method)">#full_name</a></span>
|
162
|
+
<small>Simple::Service::Action</small>
|
163
|
+
</div>
|
164
|
+
</li>
|
165
|
+
|
166
|
+
|
167
|
+
<li class="even ">
|
168
|
+
<div class="item">
|
169
|
+
<span class='object_link'><a href="Simple/Service.html#included-class_method" title="Simple::Service.included (method)">included</a></span>
|
170
|
+
<small>Simple::Service</small>
|
171
|
+
</div>
|
172
|
+
</li>
|
173
|
+
|
174
|
+
|
175
|
+
<li class="odd ">
|
176
|
+
<div class="item">
|
177
|
+
<span class='object_link'><a href="Simple/Service/Action.html#initialize-instance_method" title="Simple::Service::Action#initialize (method)">#initialize</a></span>
|
178
|
+
<small>Simple::Service::Action</small>
|
179
|
+
</div>
|
180
|
+
</li>
|
181
|
+
|
182
|
+
|
183
|
+
<li class="even ">
|
184
|
+
<div class="item">
|
185
|
+
<span class='object_link'><a href="Simple/Service/Action/Comment.html#initialize-instance_method" title="Simple::Service::Action::Comment#initialize (method)">#initialize</a></span>
|
186
|
+
<small>Simple::Service::Action::Comment</small>
|
187
|
+
</div>
|
188
|
+
</li>
|
189
|
+
|
190
|
+
|
191
|
+
<li class="odd ">
|
192
|
+
<div class="item">
|
193
|
+
<span class='object_link'><a href="Simple/Service/Action/Parameter.html#initialize-instance_method" title="Simple::Service::Action::Parameter#initialize (method)">#initialize</a></span>
|
194
|
+
<small>Simple::Service::Action::Parameter</small>
|
195
|
+
</div>
|
196
|
+
</li>
|
197
|
+
|
198
|
+
|
199
|
+
<li class="even ">
|
200
|
+
<div class="item">
|
201
|
+
<span class='object_link'><a href="Simple/Service/ContextReadOnlyError.html#initialize-instance_method" title="Simple::Service::ContextReadOnlyError#initialize (method)">#initialize</a></span>
|
202
|
+
<small>Simple::Service::ContextReadOnlyError</small>
|
203
|
+
</div>
|
204
|
+
</li>
|
205
|
+
|
206
|
+
|
207
|
+
<li class="odd ">
|
208
|
+
<div class="item">
|
209
|
+
<span class='object_link'><a href="Simple/Service/ExtraArguments.html#initialize-instance_method" title="Simple::Service::ExtraArguments#initialize (method)">#initialize</a></span>
|
210
|
+
<small>Simple::Service::ExtraArguments</small>
|
211
|
+
</div>
|
212
|
+
</li>
|
213
|
+
|
214
|
+
|
215
|
+
<li class="even ">
|
216
|
+
<div class="item">
|
217
|
+
<span class='object_link'><a href="Simple/Service/NoSuchAction.html#initialize-instance_method" title="Simple::Service::NoSuchAction#initialize (method)">#initialize</a></span>
|
218
|
+
<small>Simple::Service::NoSuchAction</small>
|
219
|
+
</div>
|
220
|
+
</li>
|
221
|
+
|
222
|
+
|
223
|
+
<li class="odd ">
|
224
|
+
<div class="item">
|
225
|
+
<span class='object_link'><a href="Simple/Service/MissingArguments.html#initialize-instance_method" title="Simple::Service::MissingArguments#initialize (method)">#initialize</a></span>
|
226
|
+
<small>Simple::Service::MissingArguments</small>
|
227
|
+
</div>
|
228
|
+
</li>
|
229
|
+
|
230
|
+
|
231
|
+
<li class="even ">
|
232
|
+
<div class="item">
|
233
|
+
<span class='object_link'><a href="Simple/Service/Context.html#initialize-instance_method" title="Simple::Service::Context#initialize (method)">#initialize</a></span>
|
234
|
+
<small>Simple::Service::Context</small>
|
235
|
+
</div>
|
236
|
+
</li>
|
237
|
+
|
238
|
+
|
239
|
+
<li class="odd ">
|
240
|
+
<div class="item">
|
241
|
+
<span class='object_link'><a href="Simple/Service.html#invoke-class_method" title="Simple::Service.invoke (method)">invoke</a></span>
|
242
|
+
<small>Simple::Service</small>
|
243
|
+
</div>
|
244
|
+
</li>
|
245
|
+
|
246
|
+
|
247
|
+
<li class="even ">
|
248
|
+
<div class="item">
|
249
|
+
<span class='object_link'><a href="Simple/Service/Action.html#invoke-instance_method" title="Simple::Service::Action#invoke (method)">#invoke</a></span>
|
250
|
+
<small>Simple::Service::Action</small>
|
251
|
+
</div>
|
252
|
+
</li>
|
253
|
+
|
254
|
+
|
255
|
+
<li class="odd ">
|
256
|
+
<div class="item">
|
257
|
+
<span class='object_link'><a href="Simple/Service.html#invoke3-class_method" title="Simple::Service.invoke3 (method)">invoke3</a></span>
|
258
|
+
<small>Simple::Service</small>
|
259
|
+
</div>
|
260
|
+
</li>
|
261
|
+
|
262
|
+
|
263
|
+
<li class="even ">
|
264
|
+
<div class="item">
|
265
|
+
<span class='object_link'><a href="Simple/Service/Action/Parameter.html#keyword%3F-instance_method" title="Simple::Service::Action::Parameter#keyword? (method)">#keyword?</a></span>
|
266
|
+
<small>Simple::Service::Action::Parameter</small>
|
267
|
+
</div>
|
268
|
+
</li>
|
269
|
+
|
270
|
+
|
271
|
+
<li class="odd ">
|
272
|
+
<div class="item">
|
273
|
+
<span class='object_link'><a href="Simple/Service/Action/Parameter.html#kind-instance_method" title="Simple::Service::Action::Parameter#kind (method)">#kind</a></span>
|
274
|
+
<small>Simple::Service::Action::Parameter</small>
|
275
|
+
</div>
|
276
|
+
</li>
|
277
|
+
|
278
|
+
|
279
|
+
<li class="even ">
|
280
|
+
<div class="item">
|
281
|
+
<span class='object_link'><a href="Simple/Service/Context.html#merge-instance_method" title="Simple::Service::Context#merge (method)">#merge</a></span>
|
282
|
+
<small>Simple::Service::Context</small>
|
283
|
+
</div>
|
284
|
+
</li>
|
285
|
+
|
286
|
+
|
287
|
+
<li class="odd ">
|
288
|
+
<div class="item">
|
289
|
+
<span class='object_link'><a href="Simple/Service/Action.html#name-instance_method" title="Simple::Service::Action#name (method)">#name</a></span>
|
290
|
+
<small>Simple::Service::Action</small>
|
291
|
+
</div>
|
292
|
+
</li>
|
293
|
+
|
294
|
+
|
295
|
+
<li class="even ">
|
296
|
+
<div class="item">
|
297
|
+
<span class='object_link'><a href="Simple/Service/NoSuchAction.html#name-instance_method" title="Simple::Service::NoSuchAction#name (method)">#name</a></span>
|
298
|
+
<small>Simple::Service::NoSuchAction</small>
|
299
|
+
</div>
|
300
|
+
</li>
|
301
|
+
|
302
|
+
|
303
|
+
<li class="odd ">
|
304
|
+
<div class="item">
|
305
|
+
<span class='object_link'><a href="Simple/Service/Action/Parameter.html#name-instance_method" title="Simple::Service::Action::Parameter#name (method)">#name</a></span>
|
306
|
+
<small>Simple::Service::Action::Parameter</small>
|
307
|
+
</div>
|
308
|
+
</li>
|
309
|
+
|
310
|
+
|
311
|
+
<li class="even ">
|
312
|
+
<div class="item">
|
313
|
+
<span class='object_link'><a href="Simple/Service/Action/MethodReflection.html#parameters-instance_method" title="Simple::Service::Action::MethodReflection#parameters (method)">#parameters</a></span>
|
314
|
+
<small>Simple::Service::Action::MethodReflection</small>
|
315
|
+
</div>
|
316
|
+
</li>
|
317
|
+
|
318
|
+
|
319
|
+
<li class="odd ">
|
320
|
+
<div class="item">
|
321
|
+
<span class='object_link'><a href="Simple/Service/MissingArguments.html#parameters-instance_method" title="Simple::Service::MissingArguments#parameters (method)">#parameters</a></span>
|
322
|
+
<small>Simple::Service::MissingArguments</small>
|
323
|
+
</div>
|
324
|
+
</li>
|
325
|
+
|
326
|
+
|
327
|
+
<li class="even ">
|
328
|
+
<div class="item">
|
329
|
+
<span class='object_link'><a href="Simple/Service/Action.html#parameters-instance_method" title="Simple::Service::Action#parameters (method)">#parameters</a></span>
|
330
|
+
<small>Simple::Service::Action</small>
|
331
|
+
</div>
|
332
|
+
</li>
|
333
|
+
|
334
|
+
|
335
|
+
<li class="odd ">
|
336
|
+
<div class="item">
|
337
|
+
<span class='object_link'><a href="Simple/Service/Action/Comment/Extractor.html#parse_source-instance_method" title="Simple::Service::Action::Comment::Extractor#parse_source (method)">#parse_source</a></span>
|
338
|
+
<small>Simple::Service::Action::Comment::Extractor</small>
|
339
|
+
</div>
|
340
|
+
</li>
|
341
|
+
|
342
|
+
|
343
|
+
<li class="even ">
|
344
|
+
<div class="item">
|
345
|
+
<span class='object_link'><a href="Simple/Service/Action/Parameter.html#positional%3F-instance_method" title="Simple::Service::Action::Parameter#positional? (method)">#positional?</a></span>
|
346
|
+
<small>Simple::Service::Action::Parameter</small>
|
347
|
+
</div>
|
348
|
+
</li>
|
349
|
+
|
350
|
+
|
351
|
+
<li class="odd ">
|
352
|
+
<div class="item">
|
353
|
+
<span class='object_link'><a href="Simple/Service/Action/Parameter.html#reflect_on_method-class_method" title="Simple::Service::Action::Parameter.reflect_on_method (method)">reflect_on_method</a></span>
|
354
|
+
<small>Simple::Service::Action::Parameter</small>
|
355
|
+
</div>
|
356
|
+
</li>
|
357
|
+
|
358
|
+
|
359
|
+
<li class="even ">
|
360
|
+
<div class="item">
|
361
|
+
<span class='object_link'><a href="Simple/Service/Action/Parameter.html#required%3F-instance_method" title="Simple::Service::Action::Parameter#required? (method)">#required?</a></span>
|
362
|
+
<small>Simple::Service::Action::Parameter</small>
|
363
|
+
</div>
|
364
|
+
</li>
|
365
|
+
|
366
|
+
|
367
|
+
<li class="odd ">
|
368
|
+
<div class="item">
|
369
|
+
<span class='object_link'><a href="Simple/Service/Action.html#service-instance_method" title="Simple::Service::Action#service (method)">#service</a></span>
|
370
|
+
<small>Simple::Service::Action</small>
|
371
|
+
</div>
|
372
|
+
</li>
|
373
|
+
|
374
|
+
|
375
|
+
<li class="even ">
|
376
|
+
<div class="item">
|
377
|
+
<span class='object_link'><a href="Simple/Service/NoSuchAction.html#service-instance_method" title="Simple::Service::NoSuchAction#service (method)">#service</a></span>
|
378
|
+
<small>Simple::Service::NoSuchAction</small>
|
379
|
+
</div>
|
380
|
+
</li>
|
381
|
+
|
382
|
+
|
383
|
+
<li class="odd ">
|
384
|
+
<div class="item">
|
385
|
+
<span class='object_link'><a href="Simple/Service.html#service%3F-class_method" title="Simple::Service.service? (method)">service?</a></span>
|
386
|
+
<small>Simple::Service</small>
|
387
|
+
</div>
|
388
|
+
</li>
|
389
|
+
|
390
|
+
|
391
|
+
<li class="even ">
|
392
|
+
<div class="item">
|
393
|
+
<span class='object_link'><a href="Simple/Service/Action/Comment.html#short-instance_method" title="Simple::Service::Action::Comment#short (method)">#short</a></span>
|
394
|
+
<small>Simple::Service::Action::Comment</small>
|
395
|
+
</div>
|
396
|
+
</li>
|
397
|
+
|
398
|
+
|
399
|
+
<li class="odd ">
|
400
|
+
<div class="item">
|
401
|
+
<span class='object_link'><a href="Simple/Service/Action.html#short_description-instance_method" title="Simple::Service::Action#short_description (method)">#short_description</a></span>
|
402
|
+
<small>Simple::Service::Action</small>
|
403
|
+
</div>
|
404
|
+
</li>
|
405
|
+
|
406
|
+
|
407
|
+
<li class="even ">
|
408
|
+
<div class="item">
|
409
|
+
<span class='object_link'><a href="Simple/Service/Action.html#source_location-instance_method" title="Simple::Service::Action#source_location (method)">#source_location</a></span>
|
410
|
+
<small>Simple::Service::Action</small>
|
411
|
+
</div>
|
412
|
+
</li>
|
413
|
+
|
414
|
+
|
415
|
+
<li class="odd ">
|
416
|
+
<div class="item">
|
417
|
+
<span class='object_link'><a href="Simple/Service/Action.html#to_s-instance_method" title="Simple::Service::Action#to_s (method)">#to_s</a></span>
|
418
|
+
<small>Simple::Service::Action</small>
|
419
|
+
</div>
|
420
|
+
</li>
|
421
|
+
|
422
|
+
|
423
|
+
<li class="even ">
|
424
|
+
<div class="item">
|
425
|
+
<span class='object_link'><a href="Simple/Service/ExtraArguments.html#to_s-instance_method" title="Simple::Service::ExtraArguments#to_s (method)">#to_s</a></span>
|
426
|
+
<small>Simple::Service::ExtraArguments</small>
|
427
|
+
</div>
|
428
|
+
</li>
|
429
|
+
|
430
|
+
|
431
|
+
<li class="odd ">
|
432
|
+
<div class="item">
|
433
|
+
<span class='object_link'><a href="Simple/Service/NoSuchAction.html#to_s-instance_method" title="Simple::Service::NoSuchAction#to_s (method)">#to_s</a></span>
|
434
|
+
<small>Simple::Service::NoSuchAction</small>
|
435
|
+
</div>
|
436
|
+
</li>
|
437
|
+
|
438
|
+
|
439
|
+
<li class="even ">
|
440
|
+
<div class="item">
|
441
|
+
<span class='object_link'><a href="Simple/Service/MissingArguments.html#to_s-instance_method" title="Simple::Service::MissingArguments#to_s (method)">#to_s</a></span>
|
442
|
+
<small>Simple::Service::MissingArguments</small>
|
443
|
+
</div>
|
444
|
+
</li>
|
445
|
+
|
446
|
+
|
447
|
+
<li class="odd ">
|
448
|
+
<div class="item">
|
449
|
+
<span class='object_link'><a href="Simple/Service/Action/Parameter.html#variadic%3F-instance_method" title="Simple::Service::Action::Parameter#variadic? (method)">#variadic?</a></span>
|
450
|
+
<small>Simple::Service::Action::Parameter</small>
|
451
|
+
</div>
|
452
|
+
</li>
|
453
|
+
|
454
|
+
|
455
|
+
<li class="even ">
|
456
|
+
<div class="item">
|
457
|
+
<span class='object_link'><a href="Simple/Service.html#verify_service!-class_method" title="Simple::Service.verify_service! (method)">verify_service!</a></span>
|
458
|
+
<small>Simple::Service</small>
|
459
|
+
</div>
|
460
|
+
</li>
|
461
|
+
|
462
|
+
|
463
|
+
<li class="odd ">
|
464
|
+
<div class="item">
|
465
|
+
<span class='object_link'><a href="Simple/Service/GemHelper.html#version-instance_method" title="Simple::Service::GemHelper#version (method)">#version</a></span>
|
466
|
+
<small>Simple::Service::GemHelper</small>
|
467
|
+
</div>
|
468
|
+
</li>
|
469
|
+
|
470
|
+
|
471
|
+
<li class="even ">
|
472
|
+
<div class="item">
|
473
|
+
<span class='object_link'><a href="Simple/Service.html#with_context-class_method" title="Simple::Service.with_context (method)">with_context</a></span>
|
474
|
+
<small>Simple::Service</small>
|
475
|
+
</div>
|
476
|
+
</li>
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
</ul>
|
481
|
+
</div>
|
482
|
+
</body>
|
483
|
+
</html>
|
@@ -0,0 +1,110 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Top Level Namespace
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.20
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
pathId = "";
|
19
|
+
relpath = '';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="_index.html">Index</a> »
|
40
|
+
|
41
|
+
|
42
|
+
<span class="title">Top Level Namespace</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Top Level Namespace
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
</div>
|
80
|
+
|
81
|
+
<h2>Defined Under Namespace</h2>
|
82
|
+
<p class="children">
|
83
|
+
|
84
|
+
|
85
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Simple.html" title="Simple (module)">Simple</a></span>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
</p>
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
<div id="footer">
|
103
|
+
Generated on Wed Dec 4 22:57:12 2019 by
|
104
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
105
|
+
0.9.20 (ruby-2.5.1).
|
106
|
+
</div>
|
107
|
+
|
108
|
+
</div>
|
109
|
+
</body>
|
110
|
+
</html>
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# returns the comment for an action
|
2
|
-
class ::Simple::Service::Action::Comment #
|
2
|
+
class ::Simple::Service::Action::Comment # @private
|
3
3
|
attr_reader :short
|
4
4
|
attr_reader :full
|
5
5
|
|
6
6
|
def self.extract(action:)
|
7
7
|
file, line = action.source_location
|
8
8
|
lines = Extractor.extract_comment_lines(file: file, before_line: line)
|
9
|
-
full = lines[2
|
9
|
+
full = lines[2..].join("\n") if lines.length >= 2
|
10
10
|
new short: lines[0], full: full
|
11
11
|
end
|
12
12
|
|