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::CurrentTime::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
|
|
@@ -117,7 +150,7 @@
|
|
117
150
|
<li class="public ">
|
118
151
|
<span class="summary_signature">
|
119
152
|
|
120
|
-
<a href="#get-instance_method" title="#get (instance method)">#<strong>get</strong> ⇒
|
153
|
+
<a href="#get-instance_method" title="#get (instance method)">#<strong>get</strong> ⇒ Time </a>
|
121
154
|
|
122
155
|
|
123
156
|
|
@@ -131,7 +164,8 @@
|
|
131
164
|
|
132
165
|
|
133
166
|
|
134
|
-
<span class="summary_desc"><div class='inline'
|
167
|
+
<span class="summary_desc"><div class='inline'><p>is a smart method to invoke the effect operation.</p>
|
168
|
+
</div></span>
|
135
169
|
|
136
170
|
</li>
|
137
171
|
|
@@ -155,7 +189,7 @@
|
|
155
189
|
|
156
190
|
|
157
191
|
|
158
|
-
<span class="summary_desc"><div class='inline'><p>
|
192
|
+
<span class="summary_desc"><div class='inline'><p>makes a new instance.</p>
|
159
193
|
</div></span>
|
160
194
|
|
161
195
|
</li>
|
@@ -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 invokation as requesting the current time.</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
|
+
10
|
253
|
+
11
|
254
|
+
12</pre>
|
220
255
|
</td>
|
221
256
|
<td>
|
222
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/current_time.rb', line
|
257
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/current_time.rb', line 10</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
|
+
36
|
300
|
+
37
|
301
|
+
38</pre>
|
302
|
+
</td>
|
303
|
+
<td>
|
304
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/current_time.rb', line 36</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,51 @@
|
|
239
321
|
<div class="method_details first">
|
240
322
|
<h3 class="signature first" id="get-instance_method">
|
241
323
|
|
242
|
-
#<strong>get</strong> ⇒ <tt>
|
324
|
+
#<strong>get</strong> ⇒ <tt>Time</tt>
|
243
325
|
|
244
326
|
|
245
327
|
|
246
328
|
|
247
329
|
|
248
|
-
</h3><
|
330
|
+
</h3><div class="docstring">
|
331
|
+
<div class="discussion">
|
332
|
+
<p>is a smart method to invoke the effect operation.</p>
|
333
|
+
|
334
|
+
|
335
|
+
</div>
|
336
|
+
</div>
|
337
|
+
<div class="tags">
|
338
|
+
|
339
|
+
<p class="tag_title">Returns:</p>
|
340
|
+
<ul class="return">
|
341
|
+
|
342
|
+
<li>
|
343
|
+
|
344
|
+
|
345
|
+
<span class='type'>(<tt>Time</tt>)</span>
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
—
|
350
|
+
<div class='inline'><p>with <code>with</code> , returns <code>Time.now</code></p>
|
351
|
+
</div>
|
352
|
+
|
353
|
+
</li>
|
354
|
+
|
355
|
+
</ul>
|
356
|
+
|
357
|
+
</div><table class="source_code">
|
249
358
|
<tr>
|
250
359
|
<td>
|
251
360
|
<pre class="lines">
|
252
361
|
|
253
362
|
|
254
|
-
|
255
|
-
|
256
|
-
|
363
|
+
17
|
364
|
+
18
|
365
|
+
19</pre>
|
257
366
|
</td>
|
258
367
|
<td>
|
259
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/current_time.rb', line
|
368
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/current_time.rb', line 17</span>
|
260
369
|
|
261
370
|
<span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span>
|
262
371
|
<span class='ivar'>@eff</span><span class='period'>.</span><span class='id identifier rubyid_perform'>perform</span>
|
@@ -269,27 +378,76 @@
|
|
269
378
|
<div class="method_details ">
|
270
379
|
<h3 class="signature " id="with-instance_method">
|
271
380
|
|
272
|
-
#<strong>with</strong>(&th) ⇒ <tt>
|
381
|
+
#<strong>with</strong>(&th) ⇒ <tt>A!{e}</tt>
|
382
|
+
|
383
|
+
|
273
384
|
|
274
385
|
|
275
386
|
|
387
|
+
</h3><div class="docstring">
|
388
|
+
<div class="discussion">
|
389
|
+
<p>is a handler to interpret the effect invokation as requesting the current time.
|
390
|
+
This handler receives the <em>request</em> and returns current time.</p>
|
391
|
+
|
392
|
+
|
393
|
+
</div>
|
394
|
+
</div>
|
395
|
+
<div class="tags">
|
396
|
+
<p class="tag_title">Parameters:</p>
|
397
|
+
<ul class="param">
|
398
|
+
|
399
|
+
<li>
|
400
|
+
|
401
|
+
<span class='name'>th</span>
|
402
|
+
|
403
|
+
|
404
|
+
<span class='type'>(<tt>Proc<(), A>!{<span class='object_link'><a href="../CurrentTime.html" title="Ruff::Standard::CurrentTime (module)">CurrentTime</a></span>.<span class='object_link'><a href="#eff-instance_method" title="Ruff::Standard::CurrentTime::Instance#eff (method)">eff</a></span>, e}</tt>)</span>
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
—
|
409
|
+
<div class='inline'><p>is a thunk returning <code>A</code> with the possibility to invoke effects,
|
410
|
+
including <code>CurrentTime.eff</code> .</p>
|
411
|
+
</div>
|
412
|
+
|
413
|
+
</li>
|
414
|
+
|
415
|
+
</ul>
|
276
416
|
|
417
|
+
<p class="tag_title">Returns:</p>
|
418
|
+
<ul class="return">
|
419
|
+
|
420
|
+
<li>
|
421
|
+
|
422
|
+
|
423
|
+
<span class='type'>(<tt>A!{e}</tt>)</span>
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
—
|
428
|
+
<div class='inline'><p>returns <code>A</code> , without modification by value handler.
|
429
|
+
But it still has the possibility to invoke effects(<code>e</code>).</p>
|
430
|
+
</div>
|
431
|
+
|
432
|
+
</li>
|
277
433
|
|
278
|
-
</
|
434
|
+
</ul>
|
435
|
+
|
436
|
+
</div><table class="source_code">
|
279
437
|
<tr>
|
280
438
|
<td>
|
281
439
|
<pre class="lines">
|
282
440
|
|
283
441
|
|
284
|
-
|
285
|
-
|
286
|
-
|
442
|
+
31
|
443
|
+
32
|
444
|
+
33</pre>
|
287
445
|
</td>
|
288
446
|
<td>
|
289
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/current_time.rb', line
|
447
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/current_time.rb', line 31</span>
|
290
448
|
|
291
449
|
<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>
|
292
|
-
<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><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='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='op'>|</span> <span class='id identifier rubyid_k'>k</span><span class='lbracket'>[</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span><span class='rbracket'>]</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span>
|
450
|
+
<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><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='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='op'>|</span> <span class='id identifier rubyid_k'>k</span><span class='lbracket'>[</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span><span class='rbracket'>]</span> <span class='rbrace'>}</span><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>
|
293
451
|
<span class='kw'>end</span></pre>
|
294
452
|
</td>
|
295
453
|
</tr>
|
@@ -301,7 +459,7 @@
|
|
301
459
|
</div>
|
302
460
|
|
303
461
|
<div id="footer">
|
304
|
-
Generated on
|
462
|
+
Generated on Fri Oct 4 13:57:07 2019 by
|
305
463
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
306
464
|
0.9.20 (ruby-2.6.4).
|
307
465
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Ruff::Standard::Defer
|
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>Defer</code> provides effects <code>Defer.eff</code> ,
|
89
|
+
and the implementation to defer procedures .</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="Defer/Instance.html" title="Ruff::Standard::Defer::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
|
|
@@ -156,6 +208,59 @@
|
|
156
208
|
|
157
209
|
|
158
210
|
|
211
|
+
<div id="instance_attr_details" class="attr_details">
|
212
|
+
<h2>Instance Attribute Details</h2>
|
213
|
+
|
214
|
+
|
215
|
+
<span id=""></span>
|
216
|
+
<div class="method_details first">
|
217
|
+
<h3 class="signature first" id="eff-instance_method">
|
218
|
+
|
219
|
+
#<strong>eff</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
</h3><div class="docstring">
|
226
|
+
<div class="discussion">
|
227
|
+
|
228
|
+
|
229
|
+
</div>
|
230
|
+
</div>
|
231
|
+
<div class="tags">
|
232
|
+
|
233
|
+
|
234
|
+
<p class="tag_title">See Also:</p>
|
235
|
+
<ul class="see">
|
236
|
+
|
237
|
+
<li><span class='object_link'><a href="Defer/Instance.html#eff-instance_method" title="Ruff::Standard::Defer::Instance#eff (method)">Ruff::Standard::Defer::Instance#eff</a></span></li>
|
238
|
+
|
239
|
+
</ul>
|
240
|
+
|
241
|
+
</div><table class="source_code">
|
242
|
+
<tr>
|
243
|
+
<td>
|
244
|
+
<pre class="lines">
|
245
|
+
|
246
|
+
|
247
|
+
69
|
248
|
+
70
|
249
|
+
71</pre>
|
250
|
+
</td>
|
251
|
+
<td>
|
252
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/defer.rb', line 69</span>
|
253
|
+
|
254
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_eff'>eff</span>
|
255
|
+
<span class='ivar'>@eff</span>
|
256
|
+
<span class='kw'>end</span></pre>
|
257
|
+
</td>
|
258
|
+
</tr>
|
259
|
+
</table>
|
260
|
+
</div>
|
261
|
+
|
262
|
+
</div>
|
263
|
+
|
159
264
|
|
160
265
|
<div id="class_method_details" class="method_details_list">
|
161
266
|
<h2>Class Method Details</h2>
|
@@ -170,21 +275,37 @@
|
|
170
275
|
|
171
276
|
|
172
277
|
|
173
|
-
</h3><
|
278
|
+
</h3><div class="docstring">
|
279
|
+
<div class="discussion">
|
280
|
+
|
281
|
+
|
282
|
+
</div>
|
283
|
+
</div>
|
284
|
+
<div class="tags">
|
285
|
+
|
286
|
+
|
287
|
+
<p class="tag_title">See Also:</p>
|
288
|
+
<ul class="see">
|
289
|
+
|
290
|
+
<li><span class='object_link'><a href="Defer/Instance.html#register-instance_method" title="Ruff::Standard::Defer::Instance#register (method)">Ruff::Standard::Defer::Instance#register</a></span></li>
|
291
|
+
|
292
|
+
</ul>
|
293
|
+
|
294
|
+
</div><table class="source_code">
|
174
295
|
<tr>
|
175
296
|
<td>
|
176
297
|
<pre class="lines">
|
177
298
|
|
178
299
|
|
179
|
-
|
180
|
-
|
181
|
-
|
300
|
+
57
|
301
|
+
58
|
302
|
+
59</pre>
|
182
303
|
</td>
|
183
304
|
<td>
|
184
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/defer.rb', line
|
305
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/defer.rb', line 57</span>
|
185
306
|
|
186
307
|
<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>
|
187
|
-
<span class='ivar'>@inst</span><span class='period'>.</span><span class='id identifier rubyid_register'>register</span>
|
308
|
+
<span class='ivar'>@inst</span><span class='period'>.</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>
|
188
309
|
<span class='kw'>end</span></pre>
|
189
310
|
</td>
|
190
311
|
</tr>
|
@@ -200,21 +321,37 @@
|
|
200
321
|
|
201
322
|
|
202
323
|
|
203
|
-
</h3><
|
324
|
+
</h3><div class="docstring">
|
325
|
+
<div class="discussion">
|
326
|
+
|
327
|
+
|
328
|
+
</div>
|
329
|
+
</div>
|
330
|
+
<div class="tags">
|
331
|
+
|
332
|
+
|
333
|
+
<p class="tag_title">See Also:</p>
|
334
|
+
<ul class="see">
|
335
|
+
|
336
|
+
<li><span class='object_link'><a href="Defer/Instance.html#with-instance_method" title="Ruff::Standard::Defer::Instance#with (method)">Ruff::Standard::Defer::Instance#with</a></span></li>
|
337
|
+
|
338
|
+
</ul>
|
339
|
+
|
340
|
+
</div><table class="source_code">
|
204
341
|
<tr>
|
205
342
|
<td>
|
206
343
|
<pre class="lines">
|
207
344
|
|
208
345
|
|
209
|
-
|
210
|
-
|
211
|
-
|
346
|
+
62
|
347
|
+
63
|
348
|
+
64</pre>
|
212
349
|
</td>
|
213
350
|
<td>
|
214
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/defer.rb', line
|
351
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/defer.rb', line 62</span>
|
215
352
|
|
216
353
|
<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>
|
217
|
-
<span class='ivar'>@inst</span><span class='period'>.</span><span class='id identifier rubyid_with'>with</span>
|
354
|
+
<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_th'>th</span><span class='rparen'>)</span>
|
218
355
|
<span class='kw'>end</span></pre>
|
219
356
|
</td>
|
220
357
|
</tr>
|
@@ -226,7 +363,7 @@
|
|
226
363
|
</div>
|
227
364
|
|
228
365
|
<div id="footer">
|
229
|
-
Generated on
|
366
|
+
Generated on Fri Oct 4 13:57:07 2019 by
|
230
367
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
231
368
|
0.9.20 (ruby-2.6.4).
|
232
369
|
</div>
|