ruff 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/.rubocop_todo.yml +366 -0
- data/.solargraph.yml +18 -0
- data/Gemfile +6 -2
- data/Gemfile.lock +39 -1
- data/Rakefile +22 -22
- data/docs/Ruff/Effect.html +14 -14
- data/docs/Ruff/Handler.html +24 -32
- data/docs/Ruff/Standard/CurrentTime/Instance.html +15 -15
- data/docs/Ruff/Standard/CurrentTime.html +10 -10
- data/docs/Ruff/Standard/Defer/Instance.html +20 -24
- data/docs/Ruff/Standard/Defer.html +3 -3
- data/docs/Ruff/Standard/State/Instance.html +37 -37
- data/docs/Ruff/Standard/State.html +25 -25
- data/docs/Ruff/Standard.html +1 -1
- data/docs/Ruff/Throws/Eff.html +13 -13
- data/docs/Ruff/Throws/Resend.html +13 -13
- data/docs/Ruff/Throws.html +1 -1
- data/docs/Ruff.html +13 -24
- data/docs/_index.html +1 -1
- data/docs/file.README.html +1 -1
- data/docs/index.html +1 -1
- data/docs/top-level-namespace.html +1 -1
- data/lib/ruff/effect.rb +3 -1
- data/lib/ruff/handler.rb +21 -24
- data/lib/ruff/objects.rb +3 -1
- data/lib/ruff/standard/current_time.rb +5 -4
- data/lib/ruff/standard/defer.rb +14 -14
- data/lib/ruff/standard/state.rb +18 -17
- data/lib/ruff/standard.rb +5 -4
- data/lib/ruff/version.gen.sh +7 -0
- data/lib/ruff/version.rb +3 -1
- data/lib/ruff.rb +6 -4
- data/ruff.gemspec +17 -17
- data/version +1 -0
- metadata +6 -3
- data/lib/ruff/version.cpp.rb +0 -5
- data/version.h +0 -1
data/docs/Ruff/Handler.html
CHANGED
@@ -271,19 +271,17 @@ Value handler is set <code>id</code> function to by default.</p>
|
|
271
271
|
<pre class="lines">
|
272
272
|
|
273
273
|
|
274
|
-
15
|
275
|
-
16
|
276
274
|
17
|
277
275
|
18
|
278
|
-
19
|
276
|
+
19
|
277
|
+
20</pre>
|
279
278
|
</td>
|
280
279
|
<td>
|
281
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line
|
280
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line 17</span>
|
282
281
|
|
283
282
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
284
|
-
<span class='ivar'>@handlers</span> <span class='op'>=</span> <span class='
|
285
|
-
<span class='ivar'>@
|
286
|
-
<span class='ivar'>@handlers</span><span class='lbracket'>[</span><span class='ivar'>@valh_id</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='tlambda'>-></span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='rparen'>)</span> <span class='tlambeg'>{</span> <span class='id identifier rubyid_x'>x</span> <span class='rbrace'>}</span>
|
283
|
+
<span class='ivar'>@handlers</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
284
|
+
<span class='ivar'>@valh</span> <span class='op'>=</span> <span class='tlambda'>-></span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='rparen'>)</span> <span class='tlambeg'>{</span> <span class='id identifier rubyid_x'>x</span> <span class='rbrace'>}</span>
|
287
285
|
<span class='kw'>end</span></pre>
|
288
286
|
</td>
|
289
287
|
</tr>
|
@@ -541,10 +539,7 @@ to go back to the handled computation.</p>
|
|
541
539
|
155
|
542
540
|
156
|
543
541
|
157
|
544
|
-
158
|
545
|
-
159
|
546
|
-
160
|
547
|
-
161</pre>
|
542
|
+
158</pre>
|
548
543
|
</td>
|
549
544
|
<td>
|
550
545
|
<pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line 107</span>
|
@@ -554,55 +549,52 @@ to go back to the handled computation.</p>
|
|
554
549
|
<span class='id identifier rubyid_continue'>continue</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
555
550
|
<span class='id identifier rubyid_rehandles'>rehandles</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
556
551
|
|
557
|
-
<span class='id identifier rubyid_handle'>handle</span> <span class='op'>=</span> <span class='
|
558
|
-
<span class='kw'>
|
552
|
+
<span class='id identifier rubyid_handle'>handle</span> <span class='op'>=</span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_r'>r</span><span class='op'>|</span>
|
553
|
+
<span class='kw'>case</span> <span class='id identifier rubyid_r'>r</span>
|
554
|
+
<span class='kw'>when</span> <span class='const'><span class='object_link'><a href="Throws/Eff.html" title="Ruff::Throws::Eff (class)">Eff</a></span></span>
|
559
555
|
<span class='kw'>if</span> <span class='id identifier rubyid_effh'>effh</span> <span class='op'>=</span> <span class='ivar'>@handlers</span><span class='lbracket'>[</span><span class='id identifier rubyid_r'>r</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span><span class='rbracket'>]</span>
|
560
556
|
<span class='id identifier rubyid_effh'>effh</span><span class='lbracket'>[</span><span class='id identifier rubyid_continue'>continue</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_r'>r</span><span class='period'>.</span><span class='id identifier rubyid_args'>args</span><span class='rbracket'>]</span>
|
561
557
|
<span class='kw'>else</span>
|
562
558
|
<span class='const'>Fiber</span><span class='period'>.</span><span class='id identifier rubyid_yield'>yield</span> <span class='const'><span class='object_link'><a href="Throws/Resend.html" title="Ruff::Throws::Resend (class)">Resend</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Throws/Resend.html#initialize-instance_method" title="Ruff::Throws::Resend#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_r'>r</span><span class='comma'>,</span> <span class='id identifier rubyid_continue'>continue</span><span class='rparen'>)</span>
|
563
559
|
<span class='kw'>end</span>
|
564
|
-
<span class='kw'>
|
560
|
+
<span class='kw'>when</span> <span class='const'><span class='object_link'><a href="Throws/Resend.html" title="Ruff::Throws::Resend (class)">Resend</a></span></span> <span class='kw'>then</span>
|
565
561
|
<span class='id identifier rubyid_eff'>eff</span> <span class='op'>=</span> <span class='id identifier rubyid_r'>r</span><span class='period'>.</span><span class='id identifier rubyid_eff'>eff</span>
|
566
|
-
<span class='id identifier rubyid_next_k'>next_k</span> <span class='op'>=</span> <span class='id identifier rubyid_rehandles'>rehandles</span><span class='period'>.</span><span class='lparen'>(</span><span class='id identifier rubyid_r'>r</span><span class='period'>.</span><span class='id identifier rubyid_k'>k</span><span class='rparen'>)</span>
|
562
|
+
<span class='id identifier rubyid_next_k'>next_k</span> <span class='op'>=</span> <span class='id identifier rubyid_rehandles'>rehandles</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_r'>r</span><span class='period'>.</span><span class='id identifier rubyid_k'>k</span><span class='rparen'>)</span>
|
567
563
|
|
568
564
|
<span class='kw'>if</span> <span class='id identifier rubyid_effh'>effh</span> <span class='op'>=</span> <span class='ivar'>@handlers</span><span class='lbracket'>[</span><span class='id identifier rubyid_eff'>eff</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span><span class='rbracket'>]</span>
|
569
|
-
<span class='id identifier rubyid_effh'>effh</span><span class='period'>.</span><span class='lparen'>(</span><span class='id identifier rubyid_next_k'>next_k</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_eff'>eff</span><span class='period'>.</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
565
|
+
<span class='id identifier rubyid_effh'>effh</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_next_k'>next_k</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_eff'>eff</span><span class='period'>.</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
570
566
|
<span class='kw'>else</span>
|
571
567
|
<span class='const'>Fiber</span><span class='period'>.</span><span class='id identifier rubyid_yield'>yield</span> <span class='const'><span class='object_link'><a href="Throws/Resend.html" title="Ruff::Throws::Resend (class)">Resend</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Throws/Resend.html#initialize-instance_method" title="Ruff::Throws::Resend#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_eff'>eff</span><span class='comma'>,</span> <span class='id identifier rubyid_next_k'>next_k</span><span class='rparen'>)</span>
|
572
568
|
<span class='kw'>end</span>
|
573
569
|
<span class='kw'>else</span>
|
574
|
-
<span class='ivar'>@
|
570
|
+
<span class='ivar'>@valh</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_r'>r</span><span class='rparen'>)</span>
|
575
571
|
<span class='kw'>end</span>
|
576
572
|
<span class='rbrace'>}</span>
|
577
573
|
|
578
|
-
<span class='id identifier rubyid_rehandles'>rehandles</span> <span class='op'>=</span> <span class='
|
574
|
+
<span class='id identifier rubyid_rehandles'>rehandles</span> <span class='op'>=</span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='op'>|</span>
|
579
575
|
<span class='id identifier rubyid_newh'>newh</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
580
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_newh'>newh</span><span class='period'>.</span><span class='id identifier rubyid_add_handler'>add_handler</span>
|
576
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_newh'>newh</span><span class='period'>.</span><span class='id identifier rubyid_add_handler'>add_handler</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='comma'>,</span> <span class='id identifier rubyid_h'>h</span><span class='rparen'>)</span>
|
581
577
|
<span class='ivar'>@handlers</span><span class='lbracket'>[</span><span class='id identifier rubyid_id'>id</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_h'>h</span>
|
582
578
|
<span class='kw'>end</span>
|
583
579
|
|
584
|
-
<span class='ivar'>@handlers</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span
|
580
|
+
<span class='ivar'>@handlers</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_id'>id</span><span class='comma'>,</span> <span class='id identifier rubyid_h'>h</span><span class='op'>|</span>
|
585
581
|
<span class='id identifier rubyid_newh'>newh</span><span class='period'>.</span><span class='id identifier rubyid_add_handler'>add_handler</span> <span class='id identifier rubyid_id'>id</span><span class='comma'>,</span> <span class='id identifier rubyid_h'>h</span>
|
586
|
-
<span class='
|
582
|
+
<span class='kw'>end</span>
|
587
583
|
|
588
584
|
<span class='kw'>class</span> <span class='op'><<</span> <span class='id identifier rubyid_newh'>newh</span>
|
589
585
|
<span class='kw'>undef</span> <span class='id identifier rubyid_add_handler'>add_handler</span>
|
590
586
|
<span class='kw'>end</span>
|
591
587
|
|
592
|
-
<span class='
|
593
|
-
<span class='id identifier rubyid_continue'>continue</span><span class='
|
594
|
-
<span class='id identifier rubyid_newh'>newh</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span> <span class='lbrace'>{</span>
|
595
|
-
<span class='id identifier rubyid_k'>k</span><span class='period'>.</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
596
|
-
<span class='rbrace'>}</span>
|
597
|
-
<span class='rbracket'>]</span>
|
588
|
+
<span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='op'>|</span>
|
589
|
+
<span class='id identifier rubyid_continue'>continue</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_newh'>newh</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_k'>k</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
|
598
590
|
<span class='rbrace'>}</span>
|
599
591
|
<span class='rbrace'>}</span>
|
600
592
|
|
601
|
-
<span class='id identifier rubyid_continue'>continue</span> <span class='op'>=</span> <span class='
|
602
|
-
<span class='id identifier rubyid_handle'>handle</span><span class='period'>.</span><span class='lparen'>(</span><span class='id identifier rubyid_co'>co</span><span class='period'>.</span><span class='id identifier rubyid_resume'>resume</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_arg'>arg</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
593
|
+
<span class='id identifier rubyid_continue'>continue</span> <span class='op'>=</span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='op'>*</span><span class='id identifier rubyid_arg'>arg</span><span class='op'>|</span>
|
594
|
+
<span class='id identifier rubyid_handle'>handle</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_co'>co</span><span class='period'>.</span><span class='id identifier rubyid_resume'>resume</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_arg'>arg</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
603
595
|
<span class='rbrace'>}</span>
|
604
596
|
|
605
|
-
<span class='id identifier rubyid_continue'>continue</span><span class='period'>.</span><span class='lparen'>(</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
597
|
+
<span class='id identifier rubyid_continue'>continue</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
606
598
|
<span class='kw'>end</span></pre>
|
607
599
|
</td>
|
608
600
|
</tr>
|
@@ -709,7 +701,7 @@ For example, <code>Handler.new.to{|_x| 0}.run { value }</code> results in <code>
|
|
709
701
|
<pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line 56</span>
|
710
702
|
|
711
703
|
<span class='kw'>def</span> <span class='id identifier rubyid_to'>to</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_fun'>fun</span><span class='rparen'>)</span>
|
712
|
-
<span class='ivar'>@
|
704
|
+
<span class='ivar'>@valh</span> <span class='op'>=</span> <span class='id identifier rubyid_fun'>fun</span>
|
713
705
|
|
714
706
|
<span class='kw'>self</span>
|
715
707
|
<span class='kw'>end</span></pre>
|
@@ -723,7 +715,7 @@ For example, <code>Handler.new.to{|_x| 0}.run { value }</code> results in <code>
|
|
723
715
|
</div>
|
724
716
|
|
725
717
|
<div id="footer">
|
726
|
-
Generated on Thu Oct 3
|
718
|
+
Generated on Thu Oct 3 05:05:04 2019 by
|
727
719
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
728
720
|
0.9.20 (ruby-2.6.4).
|
729
721
|
</div>
|
@@ -214,12 +214,12 @@
|
|
214
214
|
<pre class="lines">
|
215
215
|
|
216
216
|
|
217
|
-
|
218
|
-
|
219
|
-
|
217
|
+
5
|
218
|
+
6
|
219
|
+
7</pre>
|
220
220
|
</td>
|
221
221
|
<td>
|
222
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/current_time.rb', line
|
222
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/current_time.rb', line 5</span>
|
223
223
|
|
224
224
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
225
225
|
<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>
|
@@ -251,12 +251,12 @@
|
|
251
251
|
<pre class="lines">
|
252
252
|
|
253
253
|
|
254
|
-
|
255
|
-
|
256
|
-
|
254
|
+
9
|
255
|
+
10
|
256
|
+
11</pre>
|
257
257
|
</td>
|
258
258
|
<td>
|
259
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/current_time.rb', line
|
259
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/current_time.rb', line 9</span>
|
260
260
|
|
261
261
|
<span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span>
|
262
262
|
<span class='ivar'>@eff</span><span class='period'>.</span><span class='id identifier rubyid_perform'>perform</span>
|
@@ -281,15 +281,15 @@
|
|
281
281
|
<pre class="lines">
|
282
282
|
|
283
283
|
|
284
|
-
|
285
|
-
|
286
|
-
|
284
|
+
13
|
285
|
+
14
|
286
|
+
15</pre>
|
287
287
|
</td>
|
288
288
|
<td>
|
289
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/current_time.rb', line
|
289
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/current_time.rb', line 13</span>
|
290
290
|
|
291
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_with'>with</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
|
291
|
+
<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> <span class='op'>&</span><span class='id identifier rubyid_th'>th</span>
|
293
293
|
<span class='kw'>end</span></pre>
|
294
294
|
</td>
|
295
295
|
</tr>
|
@@ -301,7 +301,7 @@
|
|
301
301
|
</div>
|
302
302
|
|
303
303
|
<div id="footer">
|
304
|
-
Generated on Thu Oct 3
|
304
|
+
Generated on Thu Oct 3 05:05:04 2019 by
|
305
305
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
306
306
|
0.9.20 (ruby-2.6.4).
|
307
307
|
</div>
|
@@ -176,12 +176,12 @@
|
|
176
176
|
<pre class="lines">
|
177
177
|
|
178
178
|
|
179
|
-
|
180
|
-
|
181
|
-
|
179
|
+
21
|
180
|
+
22
|
181
|
+
23</pre>
|
182
182
|
</td>
|
183
183
|
<td>
|
184
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/current_time.rb', line
|
184
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/current_time.rb', line 21</span>
|
185
185
|
|
186
186
|
<span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span>
|
187
187
|
<span class='ivar'>@inst</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span>
|
@@ -206,14 +206,14 @@
|
|
206
206
|
<pre class="lines">
|
207
207
|
|
208
208
|
|
209
|
-
|
210
|
-
|
211
|
-
|
209
|
+
25
|
210
|
+
26
|
211
|
+
27</pre>
|
212
212
|
</td>
|
213
213
|
<td>
|
214
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/current_time.rb', line
|
214
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/current_time.rb', line 25</span>
|
215
215
|
|
216
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_with'>with</span>
|
216
|
+
<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
217
|
<span class='ivar'>@inst</span><span class='period'>.</span><span class='id identifier rubyid_with'>with</span> <span class='op'>&</span><span class='id identifier rubyid_th'>th</span>
|
218
218
|
<span class='kw'>end</span></pre>
|
219
219
|
</td>
|
@@ -226,7 +226,7 @@
|
|
226
226
|
</div>
|
227
227
|
|
228
228
|
<div id="footer">
|
229
|
-
Generated on Thu Oct 3
|
229
|
+
Generated on Thu Oct 3 05:05:04 2019 by
|
230
230
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
231
231
|
0.9.20 (ruby-2.6.4).
|
232
232
|
</div>
|
@@ -214,12 +214,12 @@
|
|
214
214
|
<pre class="lines">
|
215
215
|
|
216
216
|
|
217
|
-
|
218
|
-
|
219
|
-
|
217
|
+
5
|
218
|
+
6
|
219
|
+
7</pre>
|
220
220
|
</td>
|
221
221
|
<td>
|
222
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/defer.rb', line
|
222
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/defer.rb', line 5</span>
|
223
223
|
|
224
224
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
225
225
|
<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>
|
@@ -251,14 +251,14 @@
|
|
251
251
|
<pre class="lines">
|
252
252
|
|
253
253
|
|
254
|
-
|
255
|
-
|
256
|
-
|
254
|
+
9
|
255
|
+
10
|
256
|
+
11</pre>
|
257
257
|
</td>
|
258
258
|
<td>
|
259
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/defer.rb', line
|
259
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/defer.rb', line 9</span>
|
260
260
|
|
261
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_register'>register</span>
|
261
|
+
<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
262
|
<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>
|
263
263
|
<span class='kw'>end</span></pre>
|
264
264
|
</td>
|
@@ -281,8 +281,6 @@
|
|
281
281
|
<pre class="lines">
|
282
282
|
|
283
283
|
|
284
|
-
11
|
285
|
-
12
|
286
284
|
13
|
287
285
|
14
|
288
286
|
15
|
@@ -298,22 +296,20 @@
|
|
298
296
|
25</pre>
|
299
297
|
</td>
|
300
298
|
<td>
|
301
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/defer.rb', line
|
299
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/defer.rb', line 13</span>
|
302
300
|
|
303
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_with'>with</span>
|
301
|
+
<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>
|
304
302
|
<span class='id identifier rubyid_procs'>procs</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
305
303
|
|
306
304
|
<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>
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
<span class='
|
315
|
-
<span class='rbrace'>}</span>
|
316
|
-
<span class='period'>.</span><span class='id identifier rubyid_run'>run</span> <span class='op'>&</span><span class='id identifier rubyid_th'>th</span>
|
305
|
+
<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>
|
306
|
+
<span class='id identifier rubyid_procs'>procs</span> <span class='op'><<</span> <span class='id identifier rubyid_prc'>prc</span>
|
307
|
+
<span class='id identifier rubyid_k'>k</span><span class='lbracket'>[</span><span class='rbracket'>]</span>
|
308
|
+
<span class='kw'>end</span>
|
309
|
+
<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'>&</span><span class='symbol'>:[]</span><span class='rparen'>)</span>
|
311
|
+
<span class='kw'>end</span>
|
312
|
+
<span class='period'>.</span><span class='id identifier rubyid_run'>run</span> <span class='op'>&</span><span class='id identifier rubyid_th'>th</span>
|
317
313
|
<span class='kw'>end</span></pre>
|
318
314
|
</td>
|
319
315
|
</tr>
|
@@ -325,7 +321,7 @@
|
|
325
321
|
</div>
|
326
322
|
|
327
323
|
<div id="footer">
|
328
|
-
Generated on Thu Oct 3
|
324
|
+
Generated on Thu Oct 3 05:05:04 2019 by
|
329
325
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
330
326
|
0.9.20 (ruby-2.6.4).
|
331
327
|
</div>
|
@@ -183,7 +183,7 @@
|
|
183
183
|
<td>
|
184
184
|
<pre class="code"><span class="info file"># File 'lib/ruff/standard/defer.rb', line 31</span>
|
185
185
|
|
186
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_register'>register</span>
|
186
|
+
<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
187
|
<span class='ivar'>@inst</span><span class='period'>.</span><span class='id identifier rubyid_register'>register</span> <span class='op'>&</span><span class='id identifier rubyid_prc'>prc</span>
|
188
188
|
<span class='kw'>end</span></pre>
|
189
189
|
</td>
|
@@ -213,7 +213,7 @@
|
|
213
213
|
<td>
|
214
214
|
<pre class="code"><span class="info file"># File 'lib/ruff/standard/defer.rb', line 35</span>
|
215
215
|
|
216
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_with'>with</span>
|
216
|
+
<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
217
|
<span class='ivar'>@inst</span><span class='period'>.</span><span class='id identifier rubyid_with'>with</span> <span class='op'>&</span><span class='id identifier rubyid_th'>th</span>
|
218
218
|
<span class='kw'>end</span></pre>
|
219
219
|
</td>
|
@@ -226,7 +226,7 @@
|
|
226
226
|
</div>
|
227
227
|
|
228
228
|
<div id="footer">
|
229
|
-
Generated on Thu Oct 3
|
229
|
+
Generated on Thu Oct 3 05:05:04 2019 by
|
230
230
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
231
231
|
0.9.20 (ruby-2.6.4).
|
232
232
|
</div>
|
@@ -280,13 +280,13 @@
|
|
280
280
|
<pre class="lines">
|
281
281
|
|
282
282
|
|
283
|
-
3
|
284
|
-
4
|
285
283
|
5
|
286
|
-
6
|
284
|
+
6
|
285
|
+
7
|
286
|
+
8</pre>
|
287
287
|
</td>
|
288
288
|
<td>
|
289
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line
|
289
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line 5</span>
|
290
290
|
|
291
291
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
292
292
|
<span class='ivar'>@get</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>
|
@@ -319,12 +319,12 @@
|
|
319
319
|
<pre class="lines">
|
320
320
|
|
321
321
|
|
322
|
-
|
323
|
-
|
324
|
-
|
322
|
+
10
|
323
|
+
11
|
324
|
+
12</pre>
|
325
325
|
</td>
|
326
326
|
<td>
|
327
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line
|
327
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line 10</span>
|
328
328
|
|
329
329
|
<span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span>
|
330
330
|
<span class='ivar'>@get</span><span class='period'>.</span><span class='id identifier rubyid_perform'>perform</span>
|
@@ -349,14 +349,14 @@
|
|
349
349
|
<pre class="lines">
|
350
350
|
|
351
351
|
|
352
|
-
|
353
|
-
|
354
|
-
|
352
|
+
14
|
353
|
+
15
|
354
|
+
16</pre>
|
355
355
|
</td>
|
356
356
|
<td>
|
357
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line
|
357
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line 14</span>
|
358
358
|
|
359
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_modify'>modify</span>
|
359
|
+
<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>
|
360
360
|
<span class='ivar'>@modify</span><span class='period'>.</span><span class='id identifier rubyid_perform'>perform</span> <span class='id identifier rubyid_fn'>fn</span>
|
361
361
|
<span class='kw'>end</span></pre>
|
362
362
|
</td>
|
@@ -379,14 +379,14 @@
|
|
379
379
|
<pre class="lines">
|
380
380
|
|
381
381
|
|
382
|
-
|
383
|
-
|
384
|
-
|
382
|
+
18
|
383
|
+
19
|
384
|
+
20</pre>
|
385
385
|
</td>
|
386
386
|
<td>
|
387
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line
|
387
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line 18</span>
|
388
388
|
|
389
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_put'>put</span>
|
389
|
+
<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>
|
390
390
|
<span class='ivar'>@modify</span><span class='period'>.</span><span class='id identifier rubyid_perform'>perform</span> <span class='tlambda'>-></span><span class='lparen'>(</span><span class='id identifier rubyid__'>_</span><span class='rparen'>)</span> <span class='tlambeg'>{</span> <span class='id identifier rubyid_s'>s</span> <span class='rbrace'>}</span>
|
391
391
|
<span class='kw'>end</span></pre>
|
392
392
|
</td>
|
@@ -409,14 +409,14 @@
|
|
409
409
|
<pre class="lines">
|
410
410
|
|
411
411
|
|
412
|
-
|
413
|
-
|
414
|
-
|
412
|
+
36
|
413
|
+
37
|
414
|
+
38</pre>
|
415
415
|
</td>
|
416
416
|
<td>
|
417
|
-
<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 36</span>
|
418
418
|
|
419
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_with'>with</span>
|
419
|
+
<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>
|
420
420
|
<span class='id identifier rubyid_with_init'>with_init</span><span class='lparen'>(</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_task'>task</span><span class='rparen'>)</span>
|
421
421
|
<span class='kw'>end</span></pre>
|
422
422
|
</td>
|
@@ -439,8 +439,6 @@
|
|
439
439
|
<pre class="lines">
|
440
440
|
|
441
441
|
|
442
|
-
20
|
443
|
-
21
|
444
442
|
22
|
445
443
|
23
|
446
444
|
24
|
@@ -451,23 +449,25 @@
|
|
451
449
|
29
|
452
450
|
30
|
453
451
|
31
|
454
|
-
32
|
452
|
+
32
|
453
|
+
33
|
454
|
+
34</pre>
|
455
455
|
</td>
|
456
456
|
<td>
|
457
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line
|
457
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/state.rb', line 22</span>
|
458
458
|
|
459
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_with_init'>with_init</span>
|
459
|
+
<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>
|
460
460
|
<span class='id identifier rubyid_state'>state</span> <span class='op'>=</span> <span class='id identifier rubyid_init'>init</span>
|
461
461
|
|
462
462
|
<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>
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
463
|
+
<span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='ivar'>@modify</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_fn'>fn</span><span class='op'>|</span>
|
464
|
+
<span class='id identifier rubyid_state'>state</span> <span class='op'>=</span> <span class='id identifier rubyid_fn'>fn</span><span class='lbracket'>[</span><span class='id identifier rubyid_state'>state</span><span class='rbracket'>]</span>
|
465
|
+
<span class='id identifier rubyid_k'>k</span><span class='lbracket'>[</span><span class='kw'>nil</span><span class='rbracket'>]</span>
|
466
|
+
<span class='kw'>end</span>
|
467
|
+
<span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='ivar'>@get</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='op'>|</span>
|
468
|
+
<span class='id identifier rubyid_k'>k</span><span class='lbracket'>[</span><span class='id identifier rubyid_state'>state</span><span class='rbracket'>]</span>
|
469
|
+
<span class='kw'>end</span>
|
470
|
+
<span class='period'>.</span><span class='id identifier rubyid_run'>run</span> <span class='op'>&</span><span class='id identifier rubyid_task'>task</span>
|
471
471
|
<span class='kw'>end</span></pre>
|
472
472
|
</td>
|
473
473
|
</tr>
|
@@ -479,7 +479,7 @@
|
|
479
479
|
</div>
|
480
480
|
|
481
481
|
<div id="footer">
|
482
|
-
Generated on Thu Oct 3
|
482
|
+
Generated on Thu Oct 3 05:05:04 2019 by
|
483
483
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
484
484
|
0.9.20 (ruby-2.6.4).
|
485
485
|
</div>
|