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.
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Ruff::Standard::Defer::Instance
8
8
 
9
- &mdash; Ruff 1.0.0 Documentation
9
+ &mdash; 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> &#x21d2; 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>A new instance of Instance.</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>(&amp;prc) &#x21d2; Object </a>
178
+ <a href="#register-instance_method" title="#register (instance method)">#<strong>register</strong>(&amp;prc) &#x21d2; () </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'></div></span>
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>(&amp;th) &#x21d2; Object </a>
201
+ <a href="#with-instance_method" title="#with (instance method)">#<strong>with</strong>(&amp;th) &#x21d2; 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'></div></span>
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>Returns a new instance of Instance</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
- 5
218
- 6
219
- 7</pre>
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 5</span>
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> &#x21d2; <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>(&amp;prc) &#x21d2; <tt>Object</tt>
324
+ #<strong>register</strong>(&amp;prc) &#x21d2; <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
- </h3><table class="source_code">
341
+ <li>
342
+
343
+ <span class='name'>prc</span>
344
+
345
+
346
+ <span class='type'>(<tt>Proc&lt;(), ()&gt;</tt>)</span>
347
+
348
+
349
+
350
+ &mdash;
351
+ <div class='inline'><p>is deferred, or &quot;registerred&quot;, 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
- 9
255
- 10
256
- 11</pre>
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 9</span>
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'>&amp;</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>(&amp;th) &#x21d2; <tt>Object</tt>
396
+ #<strong>with</strong>(&amp;th) &#x21d2; <tt>A!{e}</tt>
273
397
 
274
398
 
275
399
 
276
400
 
277
401
 
278
- </h3><table class="source_code">
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&lt;(), A&gt;!{<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
+ &mdash;
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
+ &mdash;
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
- 13
285
- 14
286
- 15
287
- 16
288
- 17
289
- 18
290
- 19
291
- 20
292
- 21
293
- 22
294
- 23
295
- 24
296
- 25</pre>
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 13</span>
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'>&amp;</span><span class='id identifier rubyid_th'>th</span><span class='rparen'>)</span>
302
- <span class='id identifier rubyid_procs'>procs</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
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='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'>&amp;</span><span class='symbol'>:[]</span><span class='rparen'>)</span>
485
+ <span class='comment'># Like Go&#39;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'>&amp;</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> <span class='op'>&amp;</span><span class='id identifier rubyid_th'>th</span>
488
+ <span class='period'>.</span><span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='op'>&amp;</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 Thu Oct 3 05:05:04 2019 by
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
- &mdash; Ruff 1.0.0 Documentation
9
+ &mdash; 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>Defined Under Namespace</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> &#x21d2; 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> &#x21d2; <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><table class="source_code">
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
- 44
246
- 45
247
- 46</pre>
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 44</span>
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><table class="source_code">
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
- 48
276
- 49
277
- 50</pre>
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 48</span>
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'>&amp;</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> <span class='op'>&amp;</span><span class='id identifier rubyid_fn'>fn</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'>&amp;</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><table class="source_code">
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
- 52
306
- 53
307
- 54</pre>
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 52</span>
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><table class="source_code">
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
- 60
336
- 61
337
- 62</pre>
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 60</span>
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'>&amp;</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> <span class='op'>&amp;</span><span class='id identifier rubyid_task'>task</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'>&amp;</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><table class="source_code">
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
- 56
366
- 57
367
- 58</pre>
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 56</span>
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'>&amp;</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'>&amp;</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 Thu Oct 3 05:05:04 2019 by
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>