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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 313cceb02bfac2cac7ad9fa9ddda301065d2a2ffb58c35e89a163d6c99881e91
4
- data.tar.gz: a03fa92293329f64730a1315de940b666be9a126e987e7d41bfadc620aa97960
3
+ metadata.gz: 2d443882700fcca481b206953e749a8dd84b718a87056cf692facaf2f9a52ca5
4
+ data.tar.gz: 7b2ca8fc7e9888d69480e02bca662f4b448114f09a14f7d52a8c9940265f2a6c
5
5
  SHA512:
6
- metadata.gz: 9b9f2e2fd20db71cc9dd5501e71bba26dc6db15f0fe620dbb6192eb1c332562b22d376cdb11cef94c209feebf16ee977914d67834b4b09af3cf09db554d91c99
7
- data.tar.gz: 4eb17cce4224fbfa376503c032904f1198c7c1c9a10500cf744e47f5763bc5a0d3a91c6d9c19b5142bb6a0dcf13a744da1e438d6883c25ba2ddd1e7a98fdcb9f
6
+ metadata.gz: 55e9a610e145808c36272ff25e7a3d1a9ad463db23bd8e986e2da2a97930666c148b5c7ccb328653f3a1a1e145afd8072651cfcad3232ed2c3d7b215ff4928ca
7
+ data.tar.gz: 2eb643bd039ed2b39eaea41d58310584713d8eb472130134363362dce6968056281076467e28ba55439d0e524dfce6ce2443fd37e40f1585918a361ebaac23ce
data/.gitignore CHANGED
@@ -49,7 +49,7 @@ build-iPhoneSimulator/
49
49
 
50
50
  # for a library or gem, you might want to ignore these files since the code is
51
51
  # intended to run in multiple environments; otherwise, check them in:
52
- # Gemfile.lock
52
+ Gemfile.lock
53
53
  # .ruby-version
54
54
  # .ruby-gemset
55
55
 
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Ruff
8
8
 
9
- &mdash; Ruff 2.0.0 Documentation
9
+ &mdash; 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'>&#39;</span><span class='tstring_content'>2.0.0</span><span class='tstring_end'>&#39;</span></span></pre></dd>
112
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>2.1.0</span><span class='tstring_end'>&#39;</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 Thu Jan 2 20:01:55 2020 by
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.22 (ruby-2.6.5).
306
+ 0.9.25 (ruby-2.7.1).
307
307
  </div>
308
308
 
309
309
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Ruff::Effect
8
8
 
9
- &mdash; Ruff 2.0.0 Documentation
9
+ &mdash; 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 Thu Jan 2 20:01:55 2020 by
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.22 (ruby-2.6.5).
551
+ 0.9.25 (ruby-2.7.1).
552
552
  </div>
553
553
 
554
554
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Ruff::Handler
8
8
 
9
- &mdash; Ruff 2.0.0 Documentation
9
+ &mdash; 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 Thu Jan 2 20:01:55 2020 by
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.22 (ruby-2.6.5).
623
+ 0.9.25 (ruby-2.7.1).
624
624
  </div>
625
625
 
626
626
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Ruff::Standard
8
8
 
9
- &mdash; Ruff 2.0.0 Documentation
9
+ &mdash; 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/Call1cc.html" title="Ruff::Standard::Call1cc (module)">Call1cc</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/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>
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 Thu Jan 2 20:01:55 2020 by
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.22 (ruby-2.6.5).
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
- &mdash; Ruff 2.0.0 Documentation
9
+ &mdash; 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 Thu Jan 2 20:01:55 2020 by
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.22 (ruby-2.6.5).
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
- &mdash; Ruff 2.0.0 Documentation
9
+ &mdash; 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 Thu Jan 2 20:01:55 2020 by
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.22 (ruby-2.6.5).
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
- &mdash; Ruff 2.0.0 Documentation
9
+ &mdash; 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 Thu Jan 2 20:01:55 2020 by
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.22 (ruby-2.6.5).
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
- &mdash; Ruff 2.0.0 Documentation
9
+ &mdash; 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 Thu Jan 2 20:01:55 2020 by
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.22 (ruby-2.6.5).
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
- &mdash; Ruff 2.0.0 Documentation
9
+ &mdash; 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 Thu Jan 2 20:01:55 2020 by
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.22 (ruby-2.6.5).
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
- &mdash; Ruff 2.0.0 Documentation
9
+ &mdash; 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 Thu Jan 2 20:01:55 2020 by
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.22 (ruby-2.6.5).
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
- &mdash; Ruff 2.0.0 Documentation
9
+ &mdash; 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 Thu Jan 2 20:01:55 2020 by
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.22 (ruby-2.6.5).
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
+ &mdash; 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> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../../Ruff.html" title="Ruff (module)">Ruff</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Standard.html" title="Ruff::Standard (module)">Standard</a></span></span>
41
+ &raquo;
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'>&quot;</span><span class='tstring_content'>hello</span><span class='tstring_end'>&quot;</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'>&quot;</span><span class='tstring_content'>!</span><span class='tstring_end'>&quot;</span></span>
104
+ <span class='rbrace'>}</span>
105
+
106
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>world</span><span class='tstring_end'>&quot;</span></span>
107
+ <span class='rbrace'>}</span>
108
+ <span class='comment'># ==&gt;
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>(&amp;th) &#x21d2; 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>(&amp;k) &#x21d2; 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>(&amp;th) &#x21d2; <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&lt;(), A&gt;</tt>)</span>
212
+
213
+
214
+
215
+ &mdash;
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'>&amp;</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'>&amp;</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>(&amp;k) &#x21d2; <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&lt;Proc&lt;C, A&gt;, A/B&gt;</tt>)</span>
291
+
292
+
293
+
294
+ &mdash;
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'>&amp;</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>