ruff 1.0.1 → 1.1.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/.rubocop.yml +18 -1
- data/Gemfile.lock +1 -1
- data/README.md +3 -14
- data/docs/Ruff.html +3 -3
- data/docs/Ruff/Effect.html +2 -2
- data/docs/Ruff/Handler.html +73 -113
- data/docs/Ruff/Standard.html +33 -3
- data/docs/Ruff/Standard/CurrentTime.html +150 -14
- data/docs/Ruff/Standard/CurrentTime/Instance.html +183 -25
- data/docs/Ruff/Standard/Defer.html +152 -15
- data/docs/Ruff/Standard/Defer/Instance.html +213 -37
- data/docs/Ruff/Standard/State.html +215 -30
- data/docs/Ruff/Standard/State/Instance.html +389 -72
- data/docs/Ruff/Throws.html +2 -2
- data/docs/Ruff/Throws/Eff.html +6 -4
- data/docs/Ruff/Throws/Resend.html +14 -12
- data/docs/_index.html +3 -3
- data/docs/file.README.html +7 -23
- data/docs/frames.html +1 -1
- data/docs/index.html +7 -23
- data/docs/method_list.html +84 -28
- data/docs/top-level-namespace.html +2 -2
- data/lib/ruff/handler.rb +50 -49
- data/lib/ruff/objects.rb +4 -2
- data/lib/ruff/standard.rb +16 -0
- data/lib/ruff/standard/current_time.rb +29 -2
- data/lib/ruff/standard/defer.rb +33 -3
- data/lib/ruff/standard/state.rb +69 -14
- data/lib/ruff/version.rb +1 -1
- data/version +1 -1
- metadata +2 -3
- data/.rubocop_todo.yml +0 -366
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Ruff::Standard::Defer::Instance
|
8
8
|
|
9
|
-
— Ruff 1.0.
|
9
|
+
— Ruff 1.0.1 Documentation
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -103,6 +103,39 @@
|
|
103
103
|
|
104
104
|
|
105
105
|
|
106
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
107
|
+
<ul class="summary">
|
108
|
+
|
109
|
+
<li class="public ">
|
110
|
+
<span class="summary_signature">
|
111
|
+
|
112
|
+
<a href="#eff-instance_method" title="#eff (instance method)">#<strong>eff</strong> ⇒ Object </a>
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
</span>
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<span class="note title readonly">readonly</span>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
<span class="summary_desc"><div class='inline'><p>You can reimplement the handler using this effect instance.</p>
|
132
|
+
</div></span>
|
133
|
+
|
134
|
+
</li>
|
135
|
+
|
136
|
+
|
137
|
+
</ul>
|
138
|
+
|
106
139
|
|
107
140
|
|
108
141
|
|
@@ -133,7 +166,7 @@
|
|
133
166
|
|
134
167
|
|
135
168
|
|
136
|
-
<span class="summary_desc"><div class='inline'><p>
|
169
|
+
<span class="summary_desc"><div class='inline'><p>makes a new instance.</p>
|
137
170
|
</div></span>
|
138
171
|
|
139
172
|
</li>
|
@@ -142,7 +175,7 @@
|
|
142
175
|
<li class="public ">
|
143
176
|
<span class="summary_signature">
|
144
177
|
|
145
|
-
<a href="#register-instance_method" title="#register (instance method)">#<strong>register</strong>(&prc) ⇒
|
178
|
+
<a href="#register-instance_method" title="#register (instance method)">#<strong>register</strong>(&prc) ⇒ () </a>
|
146
179
|
|
147
180
|
|
148
181
|
|
@@ -156,7 +189,8 @@
|
|
156
189
|
|
157
190
|
|
158
191
|
|
159
|
-
<span class="summary_desc"><div class='inline'
|
192
|
+
<span class="summary_desc"><div class='inline'><p>is a smart method to invoke the effect operation.</p>
|
193
|
+
</div></span>
|
160
194
|
|
161
195
|
</li>
|
162
196
|
|
@@ -164,7 +198,7 @@
|
|
164
198
|
<li class="public ">
|
165
199
|
<span class="summary_signature">
|
166
200
|
|
167
|
-
<a href="#with-instance_method" title="#with (instance method)">#<strong>with</strong>(&th) ⇒
|
201
|
+
<a href="#with-instance_method" title="#with (instance method)">#<strong>with</strong>(&th) ⇒ A!{e} </a>
|
168
202
|
|
169
203
|
|
170
204
|
|
@@ -178,7 +212,8 @@
|
|
178
212
|
|
179
213
|
|
180
214
|
|
181
|
-
<span class="summary_desc"><div class='inline'
|
215
|
+
<span class="summary_desc"><div class='inline'><p>is a handler to interpret the effect invocation as registering a procedure.</p>
|
216
|
+
</div></span>
|
182
217
|
|
183
218
|
</li>
|
184
219
|
|
@@ -200,7 +235,7 @@
|
|
200
235
|
|
201
236
|
</h3><div class="docstring">
|
202
237
|
<div class="discussion">
|
203
|
-
<p>
|
238
|
+
<p>makes a new instance.</p>
|
204
239
|
|
205
240
|
|
206
241
|
</div>
|
@@ -214,12 +249,12 @@
|
|
214
249
|
<pre class="lines">
|
215
250
|
|
216
251
|
|
217
|
-
|
218
|
-
|
219
|
-
|
252
|
+
11
|
253
|
+
12
|
254
|
+
13</pre>
|
220
255
|
</td>
|
221
256
|
<td>
|
222
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/defer.rb', line
|
257
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/defer.rb', line 11</span>
|
223
258
|
|
224
259
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
225
260
|
<span class='ivar'>@eff</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../../Ruff.html" title="Ruff (module)">Ruff</a></span></span><span class='period'>.</span><span class='id identifier rubyid_instance'><span class='object_link'><a href="../../../Ruff.html#instance-class_method" title="Ruff.instance (method)">instance</a></span></span>
|
@@ -231,6 +266,53 @@
|
|
231
266
|
|
232
267
|
</div>
|
233
268
|
|
269
|
+
<div id="instance_attr_details" class="attr_details">
|
270
|
+
<h2>Instance Attribute Details</h2>
|
271
|
+
|
272
|
+
|
273
|
+
<span id=""></span>
|
274
|
+
<div class="method_details first">
|
275
|
+
<h3 class="signature first" id="eff-instance_method">
|
276
|
+
|
277
|
+
#<strong>eff</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
</h3><div class="docstring">
|
284
|
+
<div class="discussion">
|
285
|
+
<p>You can reimplement the handler using this effect instance.</p>
|
286
|
+
|
287
|
+
|
288
|
+
</div>
|
289
|
+
</div>
|
290
|
+
<div class="tags">
|
291
|
+
|
292
|
+
|
293
|
+
</div><table class="source_code">
|
294
|
+
<tr>
|
295
|
+
<td>
|
296
|
+
<pre class="lines">
|
297
|
+
|
298
|
+
|
299
|
+
49
|
300
|
+
50
|
301
|
+
51</pre>
|
302
|
+
</td>
|
303
|
+
<td>
|
304
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/defer.rb', line 49</span>
|
305
|
+
|
306
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_eff'>eff</span>
|
307
|
+
<span class='ivar'>@eff</span>
|
308
|
+
<span class='kw'>end</span></pre>
|
309
|
+
</td>
|
310
|
+
</tr>
|
311
|
+
</table>
|
312
|
+
</div>
|
313
|
+
|
314
|
+
</div>
|
315
|
+
|
234
316
|
|
235
317
|
<div id="instance_method_details" class="method_details_list">
|
236
318
|
<h2>Instance Method Details</h2>
|
@@ -239,24 +321,66 @@
|
|
239
321
|
<div class="method_details first">
|
240
322
|
<h3 class="signature first" id="register-instance_method">
|
241
323
|
|
242
|
-
#<strong>register</strong>(&prc) ⇒ <tt>
|
324
|
+
#<strong>register</strong>(&prc) ⇒ <tt>()</tt>
|
325
|
+
|
326
|
+
|
243
327
|
|
244
328
|
|
245
329
|
|
330
|
+
</h3><div class="docstring">
|
331
|
+
<div class="discussion">
|
332
|
+
<p>is a smart method to invoke the effect operation.</p>
|
333
|
+
|
246
334
|
|
335
|
+
</div>
|
336
|
+
</div>
|
337
|
+
<div class="tags">
|
338
|
+
<p class="tag_title">Parameters:</p>
|
339
|
+
<ul class="param">
|
247
340
|
|
248
|
-
|
341
|
+
<li>
|
342
|
+
|
343
|
+
<span class='name'>prc</span>
|
344
|
+
|
345
|
+
|
346
|
+
<span class='type'>(<tt>Proc<(), ()></tt>)</span>
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
—
|
351
|
+
<div class='inline'><p>is deferred, or "registerred", and called on the end of computation.</p>
|
352
|
+
</div>
|
353
|
+
|
354
|
+
</li>
|
355
|
+
|
356
|
+
</ul>
|
357
|
+
|
358
|
+
<p class="tag_title">Returns:</p>
|
359
|
+
<ul class="return">
|
360
|
+
|
361
|
+
<li>
|
362
|
+
|
363
|
+
|
364
|
+
<span class='type'>(<tt>()</tt>)</span>
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
</li>
|
369
|
+
|
370
|
+
</ul>
|
371
|
+
|
372
|
+
</div><table class="source_code">
|
249
373
|
<tr>
|
250
374
|
<td>
|
251
375
|
<pre class="lines">
|
252
376
|
|
253
377
|
|
254
|
-
|
255
|
-
|
256
|
-
|
378
|
+
19
|
379
|
+
20
|
380
|
+
21</pre>
|
257
381
|
</td>
|
258
382
|
<td>
|
259
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/defer.rb', line
|
383
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/defer.rb', line 19</span>
|
260
384
|
|
261
385
|
<span class='kw'>def</span> <span class='id identifier rubyid_register'>register</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_prc'>prc</span><span class='rparen'>)</span>
|
262
386
|
<span class='ivar'>@eff</span><span class='period'>.</span><span class='id identifier rubyid_perform'>perform</span> <span class='id identifier rubyid_prc'>prc</span>
|
@@ -269,37 +393,88 @@
|
|
269
393
|
<div class="method_details ">
|
270
394
|
<h3 class="signature " id="with-instance_method">
|
271
395
|
|
272
|
-
#<strong>with</strong>(&th) ⇒ <tt>
|
396
|
+
#<strong>with</strong>(&th) ⇒ <tt>A!{e}</tt>
|
273
397
|
|
274
398
|
|
275
399
|
|
276
400
|
|
277
401
|
|
278
|
-
</h3><
|
402
|
+
</h3><div class="docstring">
|
403
|
+
<div class="discussion">
|
404
|
+
<p>is a handler to interpret the effect invocation as registering a procedure.
|
405
|
+
Registerred procedures are run on the end of computation, by value handler.</p>
|
406
|
+
|
407
|
+
|
408
|
+
</div>
|
409
|
+
</div>
|
410
|
+
<div class="tags">
|
411
|
+
<p class="tag_title">Parameters:</p>
|
412
|
+
<ul class="param">
|
413
|
+
|
414
|
+
<li>
|
415
|
+
|
416
|
+
<span class='name'>th</span>
|
417
|
+
|
418
|
+
|
419
|
+
<span class='type'>(<tt>Proc<(), A>!{<span class='object_link'><a href="../Defer.html" title="Ruff::Standard::Defer (module)">Defer</a></span>.<span class='object_link'><a href="#eff-instance_method" title="Ruff::Standard::Defer::Instance#eff (method)">eff</a></span>, e}</tt>)</span>
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
—
|
424
|
+
<div class='inline'><p>is a thunk returning <code>A</code> with the possibility to invoke effects, including <code>Defer.eff</code> .</p>
|
425
|
+
</div>
|
426
|
+
|
427
|
+
</li>
|
428
|
+
|
429
|
+
</ul>
|
430
|
+
|
431
|
+
<p class="tag_title">Returns:</p>
|
432
|
+
<ul class="return">
|
433
|
+
|
434
|
+
<li>
|
435
|
+
|
436
|
+
|
437
|
+
<span class='type'>(<tt>A!{e}</tt>)</span>
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
—
|
442
|
+
<div class='inline'><p>returns <code>A</code> , without modification by value handler.
|
443
|
+
But it still has the possibility to invoke effects(<code>e</code>).</p>
|
444
|
+
</div>
|
445
|
+
|
446
|
+
</li>
|
447
|
+
|
448
|
+
</ul>
|
449
|
+
|
450
|
+
</div><table class="source_code">
|
279
451
|
<tr>
|
280
452
|
<td>
|
281
453
|
<pre class="lines">
|
282
454
|
|
283
455
|
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
456
|
+
32
|
457
|
+
33
|
458
|
+
34
|
459
|
+
35
|
460
|
+
36
|
461
|
+
37
|
462
|
+
38
|
463
|
+
39
|
464
|
+
40
|
465
|
+
41
|
466
|
+
42
|
467
|
+
43
|
468
|
+
44
|
469
|
+
45
|
470
|
+
46</pre>
|
297
471
|
</td>
|
298
472
|
<td>
|
299
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/defer.rb', line
|
473
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/defer.rb', line 32</span>
|
300
474
|
|
301
475
|
<span class='kw'>def</span> <span class='id identifier rubyid_with'>with</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_th'>th</span><span class='rparen'>)</span>
|
302
|
-
<span class='
|
476
|
+
<span class='comment'># This is a stack to store deferred procedures.
|
477
|
+
</span> <span class='id identifier rubyid_procs'>procs</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
303
478
|
|
304
479
|
<span class='const'><span class='object_link'><a href="../../../Ruff.html" title="Ruff (module)">Ruff</a></span></span><span class='period'>.</span><span class='id identifier rubyid_handler'><span class='object_link'><a href="../../../Ruff.html#handler-class_method" title="Ruff.handler (method)">handler</a></span></span>
|
305
480
|
<span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='ivar'>@eff</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span> <span class='id identifier rubyid_prc'>prc</span><span class='op'>|</span>
|
@@ -307,9 +482,10 @@
|
|
307
482
|
<span class='id identifier rubyid_k'>k</span><span class='lbracket'>[</span><span class='rbracket'>]</span>
|
308
483
|
<span class='kw'>end</span>
|
309
484
|
<span class='period'>.</span><span class='id identifier rubyid_to'>to</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid__'>_</span><span class='op'>|</span>
|
310
|
-
<span class='
|
485
|
+
<span class='comment'># Like Go's defer functions, it crashes the thunk by reversed order.
|
486
|
+
</span> <span class='id identifier rubyid_procs'>procs</span><span class='period'>.</span><span class='id identifier rubyid_reverse_each'>reverse_each</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:[]</span><span class='rparen'>)</span>
|
311
487
|
<span class='kw'>end</span>
|
312
|
-
<span class='period'>.</span><span class='id identifier rubyid_run'>run</span>
|
488
|
+
<span class='period'>.</span><span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_th'>th</span><span class='rparen'>)</span>
|
313
489
|
<span class='kw'>end</span></pre>
|
314
490
|
</td>
|
315
491
|
</tr>
|
@@ -321,7 +497,7 @@
|
|
321
497
|
</div>
|
322
498
|
|
323
499
|
<div id="footer">
|
324
|
-
Generated on
|
500
|
+
Generated on Fri Oct 4 13:57:07 2019 by
|
325
501
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
326
502
|
0.9.20 (ruby-2.6.4).
|
327
503
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Ruff::Standard::State
|
8
8
|
|
9
|
-
— Ruff 1.0.
|
9
|
+
— Ruff 1.0.1 Documentation
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -83,7 +83,27 @@
|
|
83
83
|
|
84
84
|
</div>
|
85
85
|
|
86
|
-
<h2>
|
86
|
+
<h2>Overview</h2><div class="docstring">
|
87
|
+
<div class="discussion">
|
88
|
+
<p><code>State</code> provides effects <code>State.get</code> and <code>State.modify</code> ,
|
89
|
+
and the implementation of the mutable cell or so-called <em>state</em> .</p>
|
90
|
+
|
91
|
+
<p>The module has an instance of <code>Instance</code> and provides its methods as module method.</p>
|
92
|
+
|
93
|
+
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
<div class="tags">
|
97
|
+
|
98
|
+
|
99
|
+
<p class="tag_title">See Also:</p>
|
100
|
+
<ul class="see">
|
101
|
+
|
102
|
+
<li><span class='object_link'><a href="State/Instance.html" title="Ruff::Standard::State::Instance (class)">Instance</a></span></li>
|
103
|
+
|
104
|
+
</ul>
|
105
|
+
|
106
|
+
</div><h2>Defined Under Namespace</h2>
|
87
107
|
<p class="children">
|
88
108
|
|
89
109
|
|
@@ -97,6 +117,38 @@
|
|
97
117
|
|
98
118
|
|
99
119
|
|
120
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
121
|
+
<ul class="summary">
|
122
|
+
|
123
|
+
<li class="public ">
|
124
|
+
<span class="summary_signature">
|
125
|
+
|
126
|
+
<a href="#eff-instance_method" title="#eff (instance method)">#<strong>eff</strong> ⇒ Object </a>
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
</span>
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
<span class="note title readonly">readonly</span>
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
146
|
+
|
147
|
+
</li>
|
148
|
+
|
149
|
+
|
150
|
+
</ul>
|
151
|
+
|
100
152
|
|
101
153
|
|
102
154
|
|
@@ -222,6 +274,59 @@
|
|
222
274
|
|
223
275
|
|
224
276
|
|
277
|
+
<div id="instance_attr_details" class="attr_details">
|
278
|
+
<h2>Instance Attribute Details</h2>
|
279
|
+
|
280
|
+
|
281
|
+
<span id=""></span>
|
282
|
+
<div class="method_details first">
|
283
|
+
<h3 class="signature first" id="eff-instance_method">
|
284
|
+
|
285
|
+
#<strong>eff</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
</h3><div class="docstring">
|
292
|
+
<div class="discussion">
|
293
|
+
|
294
|
+
|
295
|
+
</div>
|
296
|
+
</div>
|
297
|
+
<div class="tags">
|
298
|
+
|
299
|
+
|
300
|
+
<p class="tag_title">See Also:</p>
|
301
|
+
<ul class="see">
|
302
|
+
|
303
|
+
<li>Instance#eff</li>
|
304
|
+
|
305
|
+
</ul>
|
306
|
+
|
307
|
+
</div><table class="source_code">
|
308
|
+
<tr>
|
309
|
+
<td>
|
310
|
+
<pre class="lines">
|
311
|
+
|
312
|
+
|
313
|
+
119
|
314
|
+
120
|
315
|
+
121</pre>
|
316
|
+
</td>
|
317
|
+
<td>
|
318
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line 119</span>
|
319
|
+
|
320
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_eff'>eff</span>
|
321
|
+
<span class='ivar'>@eff</span>
|
322
|
+
<span class='kw'>end</span></pre>
|
323
|
+
</td>
|
324
|
+
</tr>
|
325
|
+
</table>
|
326
|
+
</div>
|
327
|
+
|
328
|
+
</div>
|
329
|
+
|
225
330
|
|
226
331
|
<div id="class_method_details" class="method_details_list">
|
227
332
|
<h2>Class Method Details</h2>
|
@@ -236,18 +341,34 @@
|
|
236
341
|
|
237
342
|
|
238
343
|
|
239
|
-
</h3><
|
344
|
+
</h3><div class="docstring">
|
345
|
+
<div class="discussion">
|
346
|
+
|
347
|
+
|
348
|
+
</div>
|
349
|
+
</div>
|
350
|
+
<div class="tags">
|
351
|
+
|
352
|
+
|
353
|
+
<p class="tag_title">See Also:</p>
|
354
|
+
<ul class="see">
|
355
|
+
|
356
|
+
<li><span class='object_link'><a href="State/Instance.html#get-instance_method" title="Ruff::Standard::State::Instance#get (method)">Ruff::Standard::State::Instance#get</a></span></li>
|
357
|
+
|
358
|
+
</ul>
|
359
|
+
|
360
|
+
</div><table class="source_code">
|
240
361
|
<tr>
|
241
362
|
<td>
|
242
363
|
<pre class="lines">
|
243
364
|
|
244
365
|
|
245
|
-
|
246
|
-
|
247
|
-
|
366
|
+
92
|
367
|
+
93
|
368
|
+
94</pre>
|
248
369
|
</td>
|
249
370
|
<td>
|
250
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line
|
371
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line 92</span>
|
251
372
|
|
252
373
|
<span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span>
|
253
374
|
<span class='ivar'>@inst</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span>
|
@@ -266,21 +387,37 @@
|
|
266
387
|
|
267
388
|
|
268
389
|
|
269
|
-
</h3><
|
390
|
+
</h3><div class="docstring">
|
391
|
+
<div class="discussion">
|
392
|
+
|
393
|
+
|
394
|
+
</div>
|
395
|
+
</div>
|
396
|
+
<div class="tags">
|
397
|
+
|
398
|
+
|
399
|
+
<p class="tag_title">See Also:</p>
|
400
|
+
<ul class="see">
|
401
|
+
|
402
|
+
<li><span class='object_link'><a href="State/Instance.html#modify-instance_method" title="Ruff::Standard::State::Instance#modify (method)">Ruff::Standard::State::Instance#modify</a></span></li>
|
403
|
+
|
404
|
+
</ul>
|
405
|
+
|
406
|
+
</div><table class="source_code">
|
270
407
|
<tr>
|
271
408
|
<td>
|
272
409
|
<pre class="lines">
|
273
410
|
|
274
411
|
|
275
|
-
|
276
|
-
|
277
|
-
|
412
|
+
97
|
413
|
+
98
|
414
|
+
99</pre>
|
278
415
|
</td>
|
279
416
|
<td>
|
280
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line
|
417
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line 97</span>
|
281
418
|
|
282
419
|
<span class='kw'>def</span> <span class='id identifier rubyid_modify'>modify</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_fn'>fn</span><span class='rparen'>)</span>
|
283
|
-
<span class='ivar'>@inst</span><span class='period'>.</span><span class='id identifier rubyid_modify'>modify</span>
|
420
|
+
<span class='ivar'>@inst</span><span class='period'>.</span><span class='id identifier rubyid_modify'>modify</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_fn'>fn</span><span class='rparen'>)</span>
|
284
421
|
<span class='kw'>end</span></pre>
|
285
422
|
</td>
|
286
423
|
</tr>
|
@@ -296,18 +433,34 @@
|
|
296
433
|
|
297
434
|
|
298
435
|
|
299
|
-
</h3><
|
436
|
+
</h3><div class="docstring">
|
437
|
+
<div class="discussion">
|
438
|
+
|
439
|
+
|
440
|
+
</div>
|
441
|
+
</div>
|
442
|
+
<div class="tags">
|
443
|
+
|
444
|
+
|
445
|
+
<p class="tag_title">See Also:</p>
|
446
|
+
<ul class="see">
|
447
|
+
|
448
|
+
<li><span class='object_link'><a href="State/Instance.html#put-instance_method" title="Ruff::Standard::State::Instance#put (method)">Ruff::Standard::State::Instance#put</a></span></li>
|
449
|
+
|
450
|
+
</ul>
|
451
|
+
|
452
|
+
</div><table class="source_code">
|
300
453
|
<tr>
|
301
454
|
<td>
|
302
455
|
<pre class="lines">
|
303
456
|
|
304
457
|
|
305
|
-
|
306
|
-
|
307
|
-
|
458
|
+
102
|
459
|
+
103
|
460
|
+
104</pre>
|
308
461
|
</td>
|
309
462
|
<td>
|
310
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line
|
463
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line 102</span>
|
311
464
|
|
312
465
|
<span class='kw'>def</span> <span class='id identifier rubyid_put'>put</span><span class='lparen'>(</span><span class='id identifier rubyid_s'>s</span><span class='rparen'>)</span>
|
313
466
|
<span class='ivar'>@inst</span><span class='period'>.</span><span class='id identifier rubyid_put'>put</span> <span class='id identifier rubyid_s'>s</span>
|
@@ -326,21 +479,37 @@
|
|
326
479
|
|
327
480
|
|
328
481
|
|
329
|
-
</h3><
|
482
|
+
</h3><div class="docstring">
|
483
|
+
<div class="discussion">
|
484
|
+
|
485
|
+
|
486
|
+
</div>
|
487
|
+
</div>
|
488
|
+
<div class="tags">
|
489
|
+
|
490
|
+
|
491
|
+
<p class="tag_title">See Also:</p>
|
492
|
+
<ul class="see">
|
493
|
+
|
494
|
+
<li><span class='object_link'><a href="State/Instance.html#with-instance_method" title="Ruff::Standard::State::Instance#with (method)">Ruff::Standard::State::Instance#with</a></span></li>
|
495
|
+
|
496
|
+
</ul>
|
497
|
+
|
498
|
+
</div><table class="source_code">
|
330
499
|
<tr>
|
331
500
|
<td>
|
332
501
|
<pre class="lines">
|
333
502
|
|
334
503
|
|
335
|
-
|
336
|
-
|
337
|
-
|
504
|
+
112
|
505
|
+
113
|
506
|
+
114</pre>
|
338
507
|
</td>
|
339
508
|
<td>
|
340
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line
|
509
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line 112</span>
|
341
510
|
|
342
511
|
<span class='kw'>def</span> <span class='id identifier rubyid_with'>with</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_task'>task</span><span class='rparen'>)</span>
|
343
|
-
<span class='ivar'>@inst</span><span class='period'>.</span><span class='id identifier rubyid_with'>with</span>
|
512
|
+
<span class='ivar'>@inst</span><span class='period'>.</span><span class='id identifier rubyid_with'>with</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_task'>task</span><span class='rparen'>)</span>
|
344
513
|
<span class='kw'>end</span></pre>
|
345
514
|
</td>
|
346
515
|
</tr>
|
@@ -356,18 +525,34 @@
|
|
356
525
|
|
357
526
|
|
358
527
|
|
359
|
-
</h3><
|
528
|
+
</h3><div class="docstring">
|
529
|
+
<div class="discussion">
|
530
|
+
|
531
|
+
|
532
|
+
</div>
|
533
|
+
</div>
|
534
|
+
<div class="tags">
|
535
|
+
|
536
|
+
|
537
|
+
<p class="tag_title">See Also:</p>
|
538
|
+
<ul class="see">
|
539
|
+
|
540
|
+
<li><span class='object_link'><a href="State/Instance.html#with_init-instance_method" title="Ruff::Standard::State::Instance#with_init (method)">Ruff::Standard::State::Instance#with_init</a></span></li>
|
541
|
+
|
542
|
+
</ul>
|
543
|
+
|
544
|
+
</div><table class="source_code">
|
360
545
|
<tr>
|
361
546
|
<td>
|
362
547
|
<pre class="lines">
|
363
548
|
|
364
549
|
|
365
|
-
|
366
|
-
|
367
|
-
|
550
|
+
107
|
551
|
+
108
|
552
|
+
109</pre>
|
368
553
|
</td>
|
369
554
|
<td>
|
370
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line
|
555
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line 107</span>
|
371
556
|
|
372
557
|
<span class='kw'>def</span> <span class='id identifier rubyid_with_init'>with_init</span><span class='lparen'>(</span><span class='id identifier rubyid_init'>init</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_task'>task</span><span class='rparen'>)</span>
|
373
558
|
<span class='ivar'>@inst</span><span class='period'>.</span><span class='id identifier rubyid_with_init'>with_init</span> <span class='id identifier rubyid_init'>init</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_task'>task</span>
|
@@ -382,7 +567,7 @@
|
|
382
567
|
</div>
|
383
568
|
|
384
569
|
<div id="footer">
|
385
|
-
Generated on
|
570
|
+
Generated on Fri Oct 4 13:57:07 2019 by
|
386
571
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
387
572
|
0.9.20 (ruby-2.6.4).
|
388
573
|
</div>
|