ruff 2.0.1 → 2.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/.gitignore +1 -1
- data/docs/Ruff.html +4 -4
- data/docs/Ruff/Effect.html +3 -3
- data/docs/Ruff/Handler.html +3 -3
- data/docs/Ruff/Standard.html +4 -4
- data/docs/Ruff/Standard/Async.html +3 -3
- data/docs/Ruff/Standard/Async/Instance.html +3 -3
- data/docs/Ruff/Standard/Call1cc.html +3 -3
- data/docs/Ruff/Standard/CurrentTime.html +3 -3
- data/docs/Ruff/Standard/CurrentTime/Instance.html +3 -3
- data/docs/Ruff/Standard/Defer.html +3 -3
- data/docs/Ruff/Standard/Defer/Instance.html +3 -3
- data/docs/Ruff/Standard/DelimCtrl.html +340 -0
- data/docs/Ruff/Standard/MeasureTime.html +3 -3
- data/docs/Ruff/Standard/MeasureTime/Instance.html +3 -3
- data/docs/Ruff/Standard/State.html +3 -3
- data/docs/Ruff/Standard/State/Instance.html +3 -3
- data/docs/Ruff/Throws.html +3 -3
- data/docs/Ruff/Throws/Eff.html +3 -3
- data/docs/Ruff/Throws/Resend.html +3 -3
- data/docs/_index.html +11 -11
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +9 -9
- data/docs/frames.html +1 -1
- data/docs/index.html +9 -9
- data/docs/method_list.html +48 -48
- data/docs/top-level-namespace.html +3 -3
- data/lib/ruff/standard.rb +1 -1
- data/lib/ruff/standard/delim_ctrl.rb +49 -0
- data/lib/ruff/version.rb +1 -1
- data/version +1 -1
- metadata +8 -8
- data/Gemfile.lock +0 -68
- data/lib/ruff/standard/call1cc.rb +0 -57
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d443882700fcca481b206953e749a8dd84b718a87056cf692facaf2f9a52ca5
|
4
|
+
data.tar.gz: 7b2ca8fc7e9888d69480e02bca662f4b448114f09a14f7d52a8c9940265f2a6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55e9a610e145808c36272ff25e7a3d1a9ad463db23bd8e986e2da2a97930666c148b5c7ccb328653f3a1a1e145afd8072651cfcad3232ed2c3d7b215ff4928ca
|
7
|
+
data.tar.gz: 2eb643bd039ed2b39eaea41d58310584713d8eb472130134363362dce6968056281076467e28ba55439d0e524dfce6ce2443fd37e40f1585918a361ebaac23ce
|
data/.gitignore
CHANGED
data/docs/Ruff.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Ruff
|
8
8
|
|
9
|
-
— Ruff 2.
|
9
|
+
— Ruff 2.1.0 Documentation
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -109,7 +109,7 @@
|
|
109
109
|
<dt id="VERSION-constant" class="">VERSION =
|
110
110
|
|
111
111
|
</dt>
|
112
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>2.
|
112
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>2.1.0</span><span class='tstring_end'>'</span></span></pre></dd>
|
113
113
|
|
114
114
|
</dl>
|
115
115
|
|
@@ -301,9 +301,9 @@
|
|
301
301
|
</div>
|
302
302
|
|
303
303
|
<div id="footer">
|
304
|
-
Generated on
|
304
|
+
Generated on Wed Jun 10 21:24:09 2020 by
|
305
305
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
306
|
-
0.9.
|
306
|
+
0.9.25 (ruby-2.7.1).
|
307
307
|
</div>
|
308
308
|
|
309
309
|
</div>
|
data/docs/Ruff/Effect.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Ruff::Effect
|
8
8
|
|
9
|
-
— Ruff 2.
|
9
|
+
— Ruff 2.1.0 Documentation
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -546,9 +546,9 @@ from the subtyping of
id object. |
|
546
546
|
</div>
|
547
547
|
|
548
548
|
<div id="footer">
|
549
|
-
Generated on
|
549
|
+
Generated on Wed Jun 10 21:24:09 2020 by
|
550
550
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
551
|
-
0.9.
|
551
|
+
0.9.25 (ruby-2.7.1).
|
552
552
|
</div>
|
553
553
|
|
554
554
|
</div>
|
data/docs/Ruff/Handler.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Ruff::Handler
|
8
8
|
|
9
|
-
— Ruff 2.
|
9
|
+
— Ruff 2.1.0 Documentation
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -618,9 +618,9 @@ in effect handlers of the handler.
|
|
618
618
|
</div>
|
619
619
|
|
620
620
|
<div id="footer">
|
621
|
-
Generated on
|
621
|
+
Generated on Wed Jun 10 21:24:09 2020 by
|
622
622
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
623
|
-
0.9.
|
623
|
+
0.9.25 (ruby-2.7.1).
|
624
624
|
</div>
|
625
625
|
|
626
626
|
</div>
|
data/docs/Ruff/Standard.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Ruff::Standard
|
8
8
|
|
9
|
-
— Ruff 2.
|
9
|
+
— Ruff 2.1.0 Documentation
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -117,7 +117,7 @@ Each module provides
Instance class to instantiate and handle the i |
|
117
117
|
<p class="children">
|
118
118
|
|
119
119
|
|
120
|
-
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Standard/Async.html" title="Ruff::Standard::Async (module)">Async</a></span>, <span class='object_link'><a href="Standard/
|
120
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Standard/Async.html" title="Ruff::Standard::Async (module)">Async</a></span>, <span class='object_link'><a href="Standard/CurrentTime.html" title="Ruff::Standard::CurrentTime (module)">CurrentTime</a></span>, <span class='object_link'><a href="Standard/Defer.html" title="Ruff::Standard::Defer (module)">Defer</a></span>, <span class='object_link'><a href="Standard/DelimCtrl.html" title="Ruff::Standard::DelimCtrl (module)">DelimCtrl</a></span>, <span class='object_link'><a href="Standard/MeasureTime.html" title="Ruff::Standard::MeasureTime (module)">MeasureTime</a></span>, <span class='object_link'><a href="Standard/State.html" title="Ruff::Standard::State (module)">State</a></span>
|
121
121
|
|
122
122
|
|
123
123
|
|
@@ -135,9 +135,9 @@ Each module provides
Instance class to instantiate and handle the i |
|
135
135
|
</div>
|
136
136
|
|
137
137
|
<div id="footer">
|
138
|
-
Generated on
|
138
|
+
Generated on Wed Jun 10 21:24:09 2020 by
|
139
139
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
140
|
-
0.9.
|
140
|
+
0.9.25 (ruby-2.7.1).
|
141
141
|
</div>
|
142
142
|
|
143
143
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Ruff::Standard::Async
|
8
8
|
|
9
|
-
— Ruff 2.
|
9
|
+
— Ruff 2.1.0 Documentation
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -537,9 +537,9 @@ The module has an instance of
Instance and provides its methods as |
|
537
537
|
</div>
|
538
538
|
|
539
539
|
<div id="footer">
|
540
|
-
Generated on
|
540
|
+
Generated on Wed Jun 10 21:24:09 2020 by
|
541
541
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
542
|
-
0.9.
|
542
|
+
0.9.25 (ruby-2.7.1).
|
543
543
|
</div>
|
544
544
|
|
545
545
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Ruff::Standard::Async::Instance
|
8
8
|
|
9
|
-
— Ruff 2.
|
9
|
+
— Ruff 2.1.0 Documentation
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -708,9 +708,9 @@ including
Async.async , Async.yield and Async.aw |
|
708
708
|
</div>
|
709
709
|
|
710
710
|
<div id="footer">
|
711
|
-
Generated on
|
711
|
+
Generated on Wed Jun 10 21:24:09 2020 by
|
712
712
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
713
|
-
0.9.
|
713
|
+
0.9.25 (ruby-2.7.1).
|
714
714
|
</div>
|
715
715
|
|
716
716
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Ruff::Standard::Call1cc
|
8
8
|
|
9
|
-
— Ruff 2.0.
|
9
|
+
— Ruff 2.0.1 Documentation
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -287,9 +287,9 @@ The continuation can be run in the
context . |
|
287
287
|
</div>
|
288
288
|
|
289
289
|
<div id="footer">
|
290
|
-
Generated on
|
290
|
+
Generated on Wed Jun 10 21:13:53 2020 by
|
291
291
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
292
|
-
0.9.
|
292
|
+
0.9.25 (ruby-2.7.1).
|
293
293
|
</div>
|
294
294
|
|
295
295
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Ruff::Standard::CurrentTime
|
8
8
|
|
9
|
-
— Ruff 2.
|
9
|
+
— Ruff 2.1.0 Documentation
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -362,9 +362,9 @@
|
|
362
362
|
</div>
|
363
363
|
|
364
364
|
<div id="footer">
|
365
|
-
Generated on
|
365
|
+
Generated on Wed Jun 10 21:24:09 2020 by
|
366
366
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
367
|
-
0.9.
|
367
|
+
0.9.25 (ruby-2.7.1).
|
368
368
|
</div>
|
369
369
|
|
370
370
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Ruff::Standard::CurrentTime::Instance
|
8
8
|
|
9
|
-
— Ruff 2.
|
9
|
+
— Ruff 2.1.0 Documentation
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -461,9 +461,9 @@ But it still has the possibility to invoke effects(
e ). |
|
461
461
|
</div>
|
462
462
|
|
463
463
|
<div id="footer">
|
464
|
-
Generated on
|
464
|
+
Generated on Wed Jun 10 21:24:09 2020 by
|
465
465
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
466
|
-
0.9.
|
466
|
+
0.9.25 (ruby-2.7.1).
|
467
467
|
</div>
|
468
468
|
|
469
469
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Ruff::Standard::Defer
|
8
8
|
|
9
|
-
— Ruff 2.
|
9
|
+
— Ruff 2.1.0 Documentation
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -363,9 +363,9 @@ and the implementation to defer procedures .
|
|
363
363
|
</div>
|
364
364
|
|
365
365
|
<div id="footer">
|
366
|
-
Generated on
|
366
|
+
Generated on Wed Jun 10 21:24:09 2020 by
|
367
367
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
368
|
-
0.9.
|
368
|
+
0.9.25 (ruby-2.7.1).
|
369
369
|
</div>
|
370
370
|
|
371
371
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Ruff::Standard::Defer::Instance
|
8
8
|
|
9
|
-
— Ruff 2.
|
9
|
+
— Ruff 2.1.0 Documentation
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -503,9 +503,9 @@ But it still has the possibility to invoke effects(
e ). |
|
503
503
|
</div>
|
504
504
|
|
505
505
|
<div id="footer">
|
506
|
-
Generated on
|
506
|
+
Generated on Wed Jun 10 21:24:10 2020 by
|
507
507
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
508
|
-
0.9.
|
508
|
+
0.9.25 (ruby-2.7.1).
|
509
509
|
</div>
|
510
510
|
|
511
511
|
</div>
|
@@ -0,0 +1,340 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Module: Ruff::Standard::DelimCtrl
|
8
|
+
|
9
|
+
— Ruff 2.1.0 Documentation
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
16
|
+
|
17
|
+
<script type="text/javascript">
|
18
|
+
pathId = "Ruff::Standard::DelimCtrl";
|
19
|
+
relpath = '../../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../../_index.html">Index (D)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../../Ruff.html" title="Ruff (module)">Ruff</a></span></span> » <span class='title'><span class='object_link'><a href="../Standard.html" title="Ruff::Standard (module)">Standard</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">DelimCtrl</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Module: Ruff::Standard::DelimCtrl
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<dl>
|
80
|
+
<dt>Defined in:</dt>
|
81
|
+
<dd>lib/ruff/standard/delim_ctrl.rb</dd>
|
82
|
+
</dl>
|
83
|
+
|
84
|
+
</div>
|
85
|
+
|
86
|
+
<h2>Overview</h2><div class="docstring">
|
87
|
+
<div class="discussion">
|
88
|
+
<p><code>DelimCtrl</code> provides one-shot delimited control operators, <code>shift</code> and <code>reset</code>.</p>
|
89
|
+
|
90
|
+
|
91
|
+
</div>
|
92
|
+
</div>
|
93
|
+
<div class="tags">
|
94
|
+
|
95
|
+
<div class="examples">
|
96
|
+
<p class="tag_title">Examples:</p>
|
97
|
+
|
98
|
+
|
99
|
+
<pre class="example code"><code><span class='const'>DelimCtrl</span><span class='period'>.</span><span class='id identifier rubyid_reset'><span class='object_link'><a href="#reset-class_method" title="Ruff::Standard::DelimCtrl.reset (method)">reset</a></span></span> <span class='lbrace'>{</span>
|
100
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>hello</span><span class='tstring_end'>"</span></span>
|
101
|
+
<span class='const'>DelimCtrl</span><span class='period'>.</span><span class='id identifier rubyid_shift'><span class='object_link'><a href="#shift-class_method" title="Ruff::Standard::DelimCtrl.shift (method)">shift</a></span></span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='op'>|</span>
|
102
|
+
<span class='id identifier rubyid_k'>k</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
|
103
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>!</span><span class='tstring_end'>"</span></span>
|
104
|
+
<span class='rbrace'>}</span>
|
105
|
+
|
106
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>world</span><span class='tstring_end'>"</span></span>
|
107
|
+
<span class='rbrace'>}</span>
|
108
|
+
<span class='comment'># ==>
|
109
|
+
</span><span class='comment'># hello
|
110
|
+
</span><span class='comment'># world
|
111
|
+
</span><span class='comment'># !</span></code></pre>
|
112
|
+
|
113
|
+
</div>
|
114
|
+
|
115
|
+
|
116
|
+
</div>
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
<h2>
|
125
|
+
Class Method Summary
|
126
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
127
|
+
</h2>
|
128
|
+
|
129
|
+
<ul class="summary">
|
130
|
+
|
131
|
+
<li class="public ">
|
132
|
+
<span class="summary_signature">
|
133
|
+
|
134
|
+
<a href="#reset-class_method" title="reset (class method)">.<strong>reset</strong>(&th) ⇒ Object </a>
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
</span>
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
<span class="summary_desc"><div class='inline'><p>delimits a continuation.</p>
|
149
|
+
</div></span>
|
150
|
+
|
151
|
+
</li>
|
152
|
+
|
153
|
+
|
154
|
+
<li class="public ">
|
155
|
+
<span class="summary_signature">
|
156
|
+
|
157
|
+
<a href="#shift-class_method" title="shift (class method)">.<strong>shift</strong>(&k) ⇒ Object </a>
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
</span>
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
<span class="summary_desc"><div class='inline'><p>captures a continuation.</p>
|
172
|
+
</div></span>
|
173
|
+
|
174
|
+
</li>
|
175
|
+
|
176
|
+
|
177
|
+
</ul>
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
<div id="class_method_details" class="method_details_list">
|
183
|
+
<h2>Class Method Details</h2>
|
184
|
+
|
185
|
+
|
186
|
+
<div class="method_details first">
|
187
|
+
<h3 class="signature first" id="reset-class_method">
|
188
|
+
|
189
|
+
.<strong>reset</strong>(&th) ⇒ <tt>Object</tt>
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
</h3><div class="docstring">
|
196
|
+
<div class="discussion">
|
197
|
+
<p>delimits a continuation</p>
|
198
|
+
|
199
|
+
|
200
|
+
</div>
|
201
|
+
</div>
|
202
|
+
<div class="tags">
|
203
|
+
<p class="tag_title">Parameters:</p>
|
204
|
+
<ul class="param">
|
205
|
+
|
206
|
+
<li>
|
207
|
+
|
208
|
+
<span class='name'>th</span>
|
209
|
+
|
210
|
+
|
211
|
+
<span class='type'>(<tt>Proc<(), A></tt>)</span>
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
—
|
216
|
+
<div class='inline'><p>is a thunk. In this thunk <code>shift</code> captures a continuation delimited with the thunk.</p>
|
217
|
+
</div>
|
218
|
+
|
219
|
+
</li>
|
220
|
+
|
221
|
+
</ul>
|
222
|
+
|
223
|
+
|
224
|
+
</div><table class="source_code">
|
225
|
+
<tr>
|
226
|
+
<td>
|
227
|
+
<pre class="lines">
|
228
|
+
|
229
|
+
|
230
|
+
25
|
231
|
+
26
|
232
|
+
27
|
233
|
+
28
|
234
|
+
29
|
235
|
+
30
|
236
|
+
31
|
237
|
+
32
|
238
|
+
33
|
239
|
+
34
|
240
|
+
35
|
241
|
+
36
|
242
|
+
37</pre>
|
243
|
+
</td>
|
244
|
+
<td>
|
245
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/delim_ctrl.rb', line 25</span>
|
246
|
+
|
247
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_reset'>reset</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_th'>th</span><span class='rparen'>)</span>
|
248
|
+
<span class='id identifier rubyid_eff'>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='op'>::</span><span class='const'><span class='object_link'><a href="../Effect.html" title="Ruff::Effect (class)">Effect</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Effect.html#initialize-instance_method" title="Ruff::Effect#initialize (method)">new</a></span></span>
|
249
|
+
<span class='ivar'>@stack</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span> <span class='id identifier rubyid_eff'>eff</span>
|
250
|
+
|
251
|
+
<span class='id identifier rubyid_ret'>ret</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_handler'><span class='object_link'><a href="../../Ruff.html#handler-class_method" title="Ruff.handler (method)">handler</a></span></span>
|
252
|
+
<span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='id identifier rubyid_eff'>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_f'>f</span><span class='op'>|</span>
|
253
|
+
<span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_k'>k</span><span class='rparen'>)</span>
|
254
|
+
<span class='kw'>end</span>
|
255
|
+
<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>
|
256
|
+
|
257
|
+
<span class='ivar'>@stack</span><span class='period'>.</span><span class='id identifier rubyid_pop'>pop</span>
|
258
|
+
<span class='id identifier rubyid_ret'>ret</span>
|
259
|
+
<span class='kw'>end</span></pre>
|
260
|
+
</td>
|
261
|
+
</tr>
|
262
|
+
</table>
|
263
|
+
</div>
|
264
|
+
|
265
|
+
<div class="method_details ">
|
266
|
+
<h3 class="signature " id="shift-class_method">
|
267
|
+
|
268
|
+
.<strong>shift</strong>(&k) ⇒ <tt>Object</tt>
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
</h3><div class="docstring">
|
275
|
+
<div class="discussion">
|
276
|
+
<p>captures a continuation.</p>
|
277
|
+
|
278
|
+
|
279
|
+
</div>
|
280
|
+
</div>
|
281
|
+
<div class="tags">
|
282
|
+
<p class="tag_title">Parameters:</p>
|
283
|
+
<ul class="param">
|
284
|
+
|
285
|
+
<li>
|
286
|
+
|
287
|
+
<span class='name'>k</span>
|
288
|
+
|
289
|
+
|
290
|
+
<span class='type'>(<tt>Proc<Proc<C, A>, A/B></tt>)</span>
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
—
|
295
|
+
<div class='inline'><p>is a continuation.</p>
|
296
|
+
</div>
|
297
|
+
|
298
|
+
</li>
|
299
|
+
|
300
|
+
</ul>
|
301
|
+
|
302
|
+
|
303
|
+
</div><table class="source_code">
|
304
|
+
<tr>
|
305
|
+
<td>
|
306
|
+
<pre class="lines">
|
307
|
+
|
308
|
+
|
309
|
+
42
|
310
|
+
43
|
311
|
+
44
|
312
|
+
45
|
313
|
+
46</pre>
|
314
|
+
</td>
|
315
|
+
<td>
|
316
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/delim_ctrl.rb', line 42</span>
|
317
|
+
|
318
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_shift'>shift</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_k'>k</span><span class='rparen'>)</span>
|
319
|
+
<span class='comment'># fetch nearmost prompt
|
320
|
+
</span> <span class='id identifier rubyid_top'>top</span> <span class='op'>=</span> <span class='ivar'>@stack</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span>
|
321
|
+
<span class='id identifier rubyid_top'>top</span><span class='period'>.</span><span class='id identifier rubyid_perform'>perform</span><span class='lparen'>(</span><span class='id identifier rubyid_k'>k</span><span class='rparen'>)</span>
|
322
|
+
<span class='kw'>end</span></pre>
|
323
|
+
</td>
|
324
|
+
</tr>
|
325
|
+
</table>
|
326
|
+
</div>
|
327
|
+
|
328
|
+
</div>
|
329
|
+
|
330
|
+
</div>
|
331
|
+
|
332
|
+
<div id="footer">
|
333
|
+
Generated on Wed Jun 10 21:24:09 2020 by
|
334
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
335
|
+
0.9.25 (ruby-2.7.1).
|
336
|
+
</div>
|
337
|
+
|
338
|
+
</div>
|
339
|
+
</body>
|
340
|
+
</html>
|