repeatable 1.2.0 → 1.2.1
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/.github/workflows/ci.yml +19 -23
- data/.ruby-version +1 -0
- data/.yardopts +1 -0
- data/CHANGELOG.md +16 -2
- data/Gemfile +1 -0
- data/Gemfile.lock +86 -73
- data/README.md +8 -5
- data/lib/repeatable/expression/date.rb +1 -0
- data/lib/repeatable/expression/range_in_year.rb +2 -0
- data/lib/repeatable/version.rb +1 -1
- data/rbi/repeatable.rbi +1 -1
- data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +3 -3
- data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
- data/sorbet/rbi/gems/{commander@4.6.0.rbi → commander@5.0.0.rbi} +1 -0
- data/sorbet/rbi/gems/{diff-lcs@1.4.4.rbi → diff-lcs@1.6.2.rbi} +135 -83
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +25 -15
- data/sorbet/rbi/gems/{highline@2.0.3.rbi → highline@3.0.1.rbi} +1 -0
- data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.13.2.rbi} +759 -233
- data/sorbet/rbi/gems/{language_server-protocol@3.17.0.3.rbi → language_server-protocol@3.17.0.5.rbi} +11 -5
- data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
- data/sorbet/rbi/gems/{method_source@1.0.0.rbi → method_source@1.1.0.rbi} +41 -9
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.27.0.rbi} +32 -21
- data/sorbet/rbi/gems/{parlour@8.1.0.rbi → parlour@9.1.2.rbi} +86 -68
- data/sorbet/rbi/gems/{parser@3.3.1.0.rbi → parser@3.3.9.0.rbi} +908 -891
- data/sorbet/rbi/gems/{prism@0.28.0.rbi → prism@1.4.0.rbi} +14078 -10249
- data/sorbet/rbi/gems/{pry@0.14.0.rbi → pry@0.15.2.rbi} +437 -244
- data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +36 -33
- data/sorbet/rbi/gems/{rake@13.0.3.rbi → rake@13.3.0.rbi} +83 -76
- data/sorbet/rbi/gems/rbi@0.3.6.rbi +6893 -0
- data/sorbet/rbi/gems/rbs@3.9.5.rbi +6976 -0
- data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.11.2.rbi} +1089 -1015
- data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.4.3.rbi} +833 -329
- data/sorbet/rbi/gems/{rspec-core@3.10.1.rbi → rspec-core@3.13.5.rbi} +1014 -613
- data/sorbet/rbi/gems/{rspec-expectations@3.10.1.rbi → rspec-expectations@3.13.5.rbi} +897 -638
- data/sorbet/rbi/gems/{rspec-mocks@3.10.2.rbi → rspec-mocks@3.13.5.rbi} +547 -444
- data/sorbet/rbi/gems/{rspec-support@3.10.2.rbi → rspec-support@3.13.5.rbi} +337 -304
- data/sorbet/rbi/gems/rspec@3.13.1.rbi +83 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.31.3.rbi → rubocop-ast@1.46.0.rbi} +1678 -958
- data/sorbet/rbi/gems/{rubocop-performance@1.20.2.rbi → rubocop-performance@1.25.0.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop@1.62.1.rbi → rubocop@1.80.2.rbi} +11243 -5431
- data/sorbet/rbi/gems/simplecov-html@0.13.2.rbi +225 -0
- data/sorbet/rbi/gems/{simplecov@0.21.2.rbi → simplecov@0.22.0.rbi} +39 -25
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +233 -2
- data/sorbet/rbi/gems/spoom@1.6.3.rbi +6985 -0
- data/sorbet/rbi/gems/{standard-performance@1.3.1.rbi → standard-performance@1.8.0.rbi} +1 -0
- data/sorbet/rbi/gems/{standard@1.35.1.rbi → standard@1.51.0.rbi} +181 -96
- data/sorbet/rbi/gems/{tapioca@0.13.3.rbi → tapioca@0.16.11.rbi} +489 -388
- data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.4.0.rbi} +94 -46
- data/sorbet/rbi/gems/unicode-display_width@3.2.0.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji@4.1.0.rbi +251 -0
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
- data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +394 -236
- metadata +46 -40
- data/sorbet/rbi/gems/rbi@0.1.13.rbi +0 -3071
- data/sorbet/rbi/gems/rspec@3.10.0.rbi +0 -76
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -216
- data/sorbet/rbi/gems/spoom@1.3.2.rbi +0 -4420
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
- /data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +0 -0
@@ -4,6 +4,7 @@
|
|
4
4
|
# This is an autogenerated file for types exported from the `pry` gem.
|
5
5
|
# Please instead update this file by running `bin/tapioca gem pry`.
|
6
6
|
|
7
|
+
|
7
8
|
# source://pry//lib/pry/core_extensions.rb#115
|
8
9
|
class BasicObject
|
9
10
|
# Return a binding object for the receiver.
|
@@ -90,7 +91,7 @@ class Pry
|
|
90
91
|
# @param options [Hash]
|
91
92
|
# @return [Pry] a new instance of Pry
|
92
93
|
#
|
93
|
-
# source://pry//lib/pry/pry_instance.rb#
|
94
|
+
# source://pry//lib/pry/pry_instance.rb#80
|
94
95
|
def initialize(options = T.unsafe(nil)); end
|
95
96
|
|
96
97
|
# Add a sticky local to this Pry instance.
|
@@ -100,31 +101,31 @@ class Pry
|
|
100
101
|
# @yield The block that defines the content of the local. The local
|
101
102
|
# will be refreshed at each tick of the repl loop.
|
102
103
|
#
|
103
|
-
# source://pry//lib/pry/pry_instance.rb#
|
104
|
+
# source://pry//lib/pry/pry_instance.rb#210
|
104
105
|
def add_sticky_local(name, &block); end
|
105
106
|
|
106
107
|
# Returns the value of attribute backtrace.
|
107
108
|
#
|
108
|
-
# source://pry//lib/pry/pry_instance.rb#
|
109
|
+
# source://pry//lib/pry/pry_instance.rb#34
|
109
110
|
def backtrace; end
|
110
111
|
|
111
112
|
# Sets the attribute backtrace
|
112
113
|
#
|
113
114
|
# @param value the value to set the attribute backtrace to.
|
114
115
|
#
|
115
|
-
# source://pry//lib/pry/pry_instance.rb#
|
116
|
+
# source://pry//lib/pry/pry_instance.rb#34
|
116
117
|
def backtrace=(_arg0); end
|
117
118
|
|
118
119
|
# Returns the value of attribute binding_stack.
|
119
120
|
#
|
120
|
-
# source://pry//lib/pry/pry_instance.rb#
|
121
|
+
# source://pry//lib/pry/pry_instance.rb#31
|
121
122
|
def binding_stack; end
|
122
123
|
|
123
124
|
# Sets the attribute binding_stack
|
124
125
|
#
|
125
126
|
# @param value the value to set the attribute binding_stack to.
|
126
127
|
#
|
127
|
-
# source://pry//lib/pry/pry_instance.rb#
|
128
|
+
# source://pry//lib/pry/pry_instance.rb#31
|
128
129
|
def binding_stack=(_arg0); end
|
129
130
|
|
130
131
|
# source://forwardable/1.3.3/forwardable.rb#231
|
@@ -144,19 +145,19 @@ class Pry
|
|
144
145
|
# @param str [String] What the user has typed so far
|
145
146
|
# @return [Array<String>] Possible completions
|
146
147
|
#
|
147
|
-
# source://pry//lib/pry/pry_instance.rb#
|
148
|
+
# source://pry//lib/pry/pry_instance.rb#143
|
148
149
|
def complete(str); end
|
149
150
|
|
150
151
|
# Returns the value of attribute config.
|
151
152
|
#
|
152
|
-
# source://pry//lib/pry/pry_instance.rb#
|
153
|
+
# source://pry//lib/pry/pry_instance.rb#49
|
153
154
|
def config; end
|
154
155
|
|
155
156
|
# The currently active `Binding`.
|
156
157
|
#
|
157
158
|
# @return [Binding] The currently active `Binding` for the session.
|
158
159
|
#
|
159
|
-
# source://pry//lib/pry/pry_instance.rb#
|
160
|
+
# source://pry//lib/pry/pry_instance.rb#122
|
160
161
|
def current_binding; end
|
161
162
|
|
162
163
|
# The currently active `Binding`.
|
@@ -164,19 +165,19 @@ class Pry
|
|
164
165
|
#
|
165
166
|
# @return [Binding] The currently active `Binding` for the session.
|
166
167
|
#
|
167
|
-
# source://pry//lib/pry/pry_instance.rb#
|
168
|
+
# source://pry//lib/pry/pry_instance.rb#122
|
168
169
|
def current_context; end
|
169
170
|
|
170
171
|
# Returns the value of attribute custom_completions.
|
171
172
|
#
|
172
|
-
# source://pry//lib/pry/pry_instance.rb#
|
173
|
+
# source://pry//lib/pry/pry_instance.rb#32
|
173
174
|
def custom_completions; end
|
174
175
|
|
175
176
|
# Sets the attribute custom_completions
|
176
177
|
#
|
177
178
|
# @param value the value to set the attribute custom_completions to.
|
178
179
|
#
|
179
|
-
# source://pry//lib/pry/pry_instance.rb#
|
180
|
+
# source://pry//lib/pry/pry_instance.rb#32
|
180
181
|
def custom_completions=(_arg0); end
|
181
182
|
|
182
183
|
# source://forwardable/1.3.3/forwardable.rb#231
|
@@ -206,22 +207,22 @@ class Pry
|
|
206
207
|
# will raise that exception.
|
207
208
|
# @return [Boolean] Is Pry ready to accept more input?
|
208
209
|
#
|
209
|
-
# source://pry//lib/pry/pry_instance.rb#
|
210
|
+
# source://pry//lib/pry/pry_instance.rb#253
|
210
211
|
def eval(line, options = T.unsafe(nil)); end
|
211
212
|
|
212
213
|
# Returns the value of attribute eval_string.
|
213
214
|
#
|
214
|
-
# source://pry//lib/pry/pry_instance.rb#
|
215
|
+
# source://pry//lib/pry/pry_instance.rb#33
|
215
216
|
def eval_string; end
|
216
217
|
|
217
218
|
# Sets the attribute eval_string
|
218
219
|
#
|
219
220
|
# @param value the value to set the attribute eval_string to.
|
220
221
|
#
|
221
|
-
# source://pry//lib/pry/pry_instance.rb#
|
222
|
+
# source://pry//lib/pry/pry_instance.rb#33
|
222
223
|
def eval_string=(_arg0); end
|
223
224
|
|
224
|
-
# source://pry//lib/pry/pry_instance.rb#
|
225
|
+
# source://pry//lib/pry/pry_instance.rb#284
|
225
226
|
def evaluate_ruby(code); end
|
226
227
|
|
227
228
|
# source://forwardable/1.3.3/forwardable.rb#231
|
@@ -231,7 +232,7 @@ class Pry
|
|
231
232
|
def exception_handler=(*args, **_arg1, &block); end
|
232
233
|
|
233
234
|
# Execute the specified hook.
|
234
|
-
# If executing a hook raises an exception, we log that and then continue
|
235
|
+
# If executing a hook raises an exception, we log that and then continue successfully.
|
235
236
|
# To debug such errors, use the global variable $pry_hook_error, which is set as a
|
236
237
|
# result.
|
237
238
|
#
|
@@ -239,12 +240,12 @@ class Pry
|
|
239
240
|
# @param args [*Object] The arguments to pass to the hook
|
240
241
|
# @return [Object, Exception] The return value of the hook or the exception raised
|
241
242
|
#
|
242
|
-
# source://pry//lib/pry/pry_instance.rb#
|
243
|
+
# source://pry//lib/pry/pry_instance.rb#392
|
243
244
|
def exec_hook(name, *args, &block); end
|
244
245
|
|
245
246
|
# Returns the value of attribute exit_value.
|
246
247
|
#
|
247
|
-
# source://pry//lib/pry/pry_instance.rb#
|
248
|
+
# source://pry//lib/pry/pry_instance.rb#41
|
248
249
|
def exit_value; end
|
249
250
|
|
250
251
|
# source://forwardable/1.3.3/forwardable.rb#231
|
@@ -266,12 +267,12 @@ class Pry
|
|
266
267
|
# @param binding [Binding] The binding to set the local on.
|
267
268
|
# @return [Object] The value the local was set to.
|
268
269
|
#
|
269
|
-
# source://pry//lib/pry/pry_instance.rb#
|
270
|
+
# source://pry//lib/pry/pry_instance.rb#171
|
270
271
|
def inject_local(name, value, binding); end
|
271
272
|
|
272
273
|
# Inject all the sticky locals into the current binding.
|
273
274
|
#
|
274
|
-
# source://pry//lib/pry/pry_instance.rb#
|
275
|
+
# source://pry//lib/pry/pry_instance.rb#199
|
275
276
|
def inject_sticky_locals!; end
|
276
277
|
|
277
278
|
# source://forwardable/1.3.3/forwardable.rb#231
|
@@ -282,71 +283,71 @@ class Pry
|
|
282
283
|
|
283
284
|
# @since v0.12.0
|
284
285
|
#
|
285
|
-
# source://pry//lib/pry/pry_instance.rb#
|
286
|
+
# source://pry//lib/pry/pry_instance.rb#44
|
286
287
|
def input_ring; end
|
287
288
|
|
288
289
|
# Returns the value of attribute last_dir.
|
289
290
|
#
|
290
|
-
# source://pry//lib/pry/pry_instance.rb#
|
291
|
+
# source://pry//lib/pry/pry_instance.rb#38
|
291
292
|
def last_dir; end
|
292
293
|
|
293
294
|
# Sets the attribute last_dir
|
294
295
|
#
|
295
296
|
# @param value the value to set the attribute last_dir to.
|
296
297
|
#
|
297
|
-
# source://pry//lib/pry/pry_instance.rb#
|
298
|
+
# source://pry//lib/pry/pry_instance.rb#38
|
298
299
|
def last_dir=(_arg0); end
|
299
300
|
|
300
301
|
# Returns the value of attribute last_exception.
|
301
302
|
#
|
302
|
-
# source://pry//lib/pry/pry_instance.rb#
|
303
|
+
# source://pry//lib/pry/pry_instance.rb#40
|
303
304
|
def last_exception; end
|
304
305
|
|
305
306
|
# Set the last exception for a session.
|
306
307
|
#
|
307
308
|
# @param exception [Exception] The last exception.
|
308
309
|
#
|
309
|
-
# source://pry//lib/pry/pry_instance.rb#
|
310
|
+
# source://pry//lib/pry/pry_instance.rb#416
|
310
311
|
def last_exception=(exception); end
|
311
312
|
|
312
313
|
# Returns the value of attribute last_file.
|
313
314
|
#
|
314
|
-
# source://pry//lib/pry/pry_instance.rb#
|
315
|
+
# source://pry//lib/pry/pry_instance.rb#37
|
315
316
|
def last_file; end
|
316
317
|
|
317
318
|
# Sets the attribute last_file
|
318
319
|
#
|
319
320
|
# @param value the value to set the attribute last_file to.
|
320
321
|
#
|
321
|
-
# source://pry//lib/pry/pry_instance.rb#
|
322
|
+
# source://pry//lib/pry/pry_instance.rb#37
|
322
323
|
def last_file=(_arg0); end
|
323
324
|
|
324
325
|
# Returns the value of attribute last_result.
|
325
326
|
#
|
326
|
-
# source://pry//lib/pry/pry_instance.rb#
|
327
|
+
# source://pry//lib/pry/pry_instance.rb#36
|
327
328
|
def last_result; end
|
328
329
|
|
329
330
|
# Sets the attribute last_result
|
330
331
|
#
|
331
332
|
# @param value the value to set the attribute last_result to.
|
332
333
|
#
|
333
|
-
# source://pry//lib/pry/pry_instance.rb#
|
334
|
+
# source://pry//lib/pry/pry_instance.rb#36
|
334
335
|
def last_result=(_arg0); end
|
335
336
|
|
336
337
|
# @return [Boolean] True if the last result is an exception that was raised,
|
337
338
|
# as opposed to simply an instance of Exception (like the result of
|
338
339
|
# Exception.new)
|
339
340
|
#
|
340
|
-
# source://pry//lib/pry/pry_instance.rb#
|
341
|
+
# source://pry//lib/pry/pry_instance.rb#438
|
341
342
|
def last_result_is_exception?; end
|
342
343
|
|
343
344
|
# @return [Integer] The maximum amount of objects remembered by the inp and
|
344
345
|
# out arrays. Defaults to 100.
|
345
346
|
#
|
346
|
-
# source://pry//lib/pry/pry_instance.rb#
|
347
|
+
# source://pry//lib/pry/pry_instance.rb#188
|
347
348
|
def memory_size; end
|
348
349
|
|
349
|
-
# source://pry//lib/pry/pry_instance.rb#
|
350
|
+
# source://pry//lib/pry/pry_instance.rb#193
|
350
351
|
def memory_size=(size); end
|
351
352
|
|
352
353
|
# Returns an output device
|
@@ -354,7 +355,7 @@ class Pry
|
|
354
355
|
# @example
|
355
356
|
# pry_instance.output.puts "ohai!"
|
356
357
|
#
|
357
|
-
# source://pry//lib/pry/pry_instance.rb#
|
358
|
+
# source://pry//lib/pry/pry_instance.rb#508
|
358
359
|
def output; end
|
359
360
|
|
360
361
|
# source://forwardable/1.3.3/forwardable.rb#231
|
@@ -362,7 +363,7 @@ class Pry
|
|
362
363
|
|
363
364
|
# @since v0.12.0
|
364
365
|
#
|
365
|
-
# source://pry//lib/pry/pry_instance.rb#
|
366
|
+
# source://pry//lib/pry/pry_instance.rb#47
|
366
367
|
def output_ring; end
|
367
368
|
|
368
369
|
# Returns the currently configured pager
|
@@ -370,7 +371,7 @@ class Pry
|
|
370
371
|
# @example
|
371
372
|
# pry_instance.pager.page text
|
372
373
|
#
|
373
|
-
# source://pry//lib/pry/pry_instance.rb#
|
374
|
+
# source://pry//lib/pry/pry_instance.rb#500
|
374
375
|
def pager; end
|
375
376
|
|
376
377
|
# source://forwardable/1.3.3/forwardable.rb#231
|
@@ -388,7 +389,7 @@ class Pry
|
|
388
389
|
# pry.pop_prompt # => prompt1
|
389
390
|
# @return [Pry::Prompt] the prompt being popped
|
390
391
|
#
|
391
|
-
# source://pry//lib/pry/pry_instance.rb#
|
392
|
+
# source://pry//lib/pry/pry_instance.rb#492
|
392
393
|
def pop_prompt; end
|
393
394
|
|
394
395
|
# source://forwardable/1.3.3/forwardable.rb#231
|
@@ -403,7 +404,7 @@ class Pry
|
|
403
404
|
# @param val [String] The line to process.
|
404
405
|
# @return [Boolean] `true` if `val` is a command, `false` otherwise
|
405
406
|
#
|
406
|
-
# source://pry//lib/pry/pry_instance.rb#
|
407
|
+
# source://pry//lib/pry/pry_instance.rb#323
|
407
408
|
def process_command(val); end
|
408
409
|
|
409
410
|
# Same as process_command, but outputs exceptions to `#output` instead of
|
@@ -412,14 +413,14 @@ class Pry
|
|
412
413
|
# @param val [String] The line to process.
|
413
414
|
# @return [Boolean] `true` if `val` is a command, `false` otherwise
|
414
415
|
#
|
415
|
-
# source://pry//lib/pry/pry_instance.rb#
|
416
|
+
# source://pry//lib/pry/pry_instance.rb#358
|
416
417
|
def process_command_safely(val); end
|
417
418
|
|
418
419
|
# This is the prompt at the top of the prompt stack.
|
419
420
|
#
|
420
421
|
# @return [Pry::Prompt] the current prompt
|
421
422
|
#
|
422
|
-
# source://pry//lib/pry/pry_instance.rb#
|
423
|
+
# source://pry//lib/pry/pry_instance.rb#99
|
423
424
|
def prompt; end
|
424
425
|
|
425
426
|
# Sets the Pry prompt.
|
@@ -427,19 +428,19 @@ class Pry
|
|
427
428
|
# @param new_prompt [Pry::Prompt]
|
428
429
|
# @return [void]
|
429
430
|
#
|
430
|
-
# source://pry//lib/pry/pry_instance.rb#
|
431
|
+
# source://pry//lib/pry/pry_instance.rb#106
|
431
432
|
def prompt=(new_prompt); end
|
432
433
|
|
433
434
|
# Push a binding for the given object onto the stack. If this instance is
|
434
435
|
# currently stopped, mark it as usable again.
|
435
436
|
#
|
436
|
-
# source://pry//lib/pry/pry_instance.rb#
|
437
|
+
# source://pry//lib/pry/pry_instance.rb#129
|
437
438
|
def push_binding(object); end
|
438
439
|
|
439
440
|
# Initialize this instance by pushing its initial context into the binding
|
440
441
|
# stack. If no target is given, start at the top level.
|
441
442
|
#
|
442
|
-
# source://pry//lib/pry/pry_instance.rb#
|
443
|
+
# source://pry//lib/pry/pry_instance.rb#116
|
443
444
|
def push_initial_binding(target = T.unsafe(nil)); end
|
444
445
|
|
445
446
|
# Pushes the current prompt onto a stack that it can be restored from later.
|
@@ -450,20 +451,20 @@ class Pry
|
|
450
451
|
# @param new_prompt [Pry::Prompt]
|
451
452
|
# @return [Pry::Prompt] new_prompt
|
452
453
|
#
|
453
|
-
# source://pry//lib/pry/pry_instance.rb#
|
454
|
+
# source://pry//lib/pry/pry_instance.rb#476
|
454
455
|
def push_prompt(new_prompt); end
|
455
456
|
|
456
457
|
# Convenience accessor for the `quiet` config key.
|
457
458
|
#
|
458
459
|
# @return [Boolean]
|
459
460
|
#
|
460
|
-
# source://pry//lib/pry/pry_instance.rb#
|
461
|
+
# source://pry//lib/pry/pry_instance.rb#562
|
461
462
|
def quiet?; end
|
462
463
|
|
463
|
-
# source://pry//lib/pry/pry_instance.rb#
|
464
|
+
# source://pry//lib/pry/pry_instance.rb#552
|
464
465
|
def raise_up(*args); end
|
465
466
|
|
466
|
-
# source://pry//lib/pry/pry_instance.rb#
|
467
|
+
# source://pry//lib/pry/pry_instance.rb#556
|
467
468
|
def raise_up!(*args); end
|
468
469
|
|
469
470
|
# Raise an exception out of Pry.
|
@@ -476,24 +477,24 @@ class Pry
|
|
476
477
|
# and a mistake in specifying that exception.
|
477
478
|
#
|
478
479
|
# (i.e. raise-up RunThymeError.new should not be the same as
|
479
|
-
# raise-up NameError, "
|
480
|
+
# raise-up NameError, "uninitialized constant RunThymeError")
|
480
481
|
#
|
481
482
|
# @raise [TypeError]
|
482
483
|
#
|
483
|
-
# source://pry//lib/pry/pry_instance.rb#
|
484
|
+
# source://pry//lib/pry/pry_instance.rb#524
|
484
485
|
def raise_up_common(force, *args); end
|
485
486
|
|
486
487
|
# Potentially deprecated. Use `Pry::REPL.new(pry, :target => target).start`
|
487
488
|
# (If nested sessions are going to exist, this method is fine, but a goal is
|
488
489
|
# to come up with an alternative to nested sessions altogether.)
|
489
490
|
#
|
490
|
-
# source://pry//lib/pry/pry_instance.rb#
|
491
|
+
# source://pry//lib/pry/pry_instance.rb#280
|
491
492
|
def repl(target = T.unsafe(nil)); end
|
492
493
|
|
493
494
|
# Reset the current eval string. If the user has entered part of a multiline
|
494
495
|
# expression, this discards that input.
|
495
496
|
#
|
496
|
-
# source://pry//lib/pry/pry_instance.rb#
|
497
|
+
# source://pry//lib/pry/pry_instance.rb#229
|
497
498
|
def reset_eval_string; end
|
498
499
|
|
499
500
|
# Run the specified command.
|
@@ -503,14 +504,14 @@ class Pry
|
|
503
504
|
# @param val [String] The command (and its params) to execute.
|
504
505
|
# @return [Pry::Command::VOID_VALUE]
|
505
506
|
#
|
506
|
-
# source://pry//lib/pry/pry_instance.rb#
|
507
|
+
# source://pry//lib/pry/pry_instance.rb#373
|
507
508
|
def run_command(val); end
|
508
509
|
|
509
510
|
# Returns the appropriate prompt to use.
|
510
511
|
#
|
511
512
|
# @return [String] The prompt.
|
512
513
|
#
|
513
|
-
# source://pry//lib/pry/pry_instance.rb#
|
514
|
+
# source://pry//lib/pry/pry_instance.rb#451
|
514
515
|
def select_prompt; end
|
515
516
|
|
516
517
|
# Set the last result of an eval.
|
@@ -519,7 +520,7 @@ class Pry
|
|
519
520
|
# @param result [Object] The result.
|
520
521
|
# @param code [String] The code that was run.
|
521
522
|
#
|
522
|
-
# source://pry//lib/pry/pry_instance.rb#
|
523
|
+
# source://pry//lib/pry/pry_instance.rb#407
|
523
524
|
def set_last_result(result, code = T.unsafe(nil)); end
|
524
525
|
|
525
526
|
# Whether the print proc should be invoked.
|
@@ -527,27 +528,27 @@ class Pry
|
|
527
528
|
#
|
528
529
|
# @return [Boolean] Whether the print proc should be invoked.
|
529
530
|
#
|
530
|
-
# source://pry//lib/pry/pry_instance.rb#
|
531
|
+
# source://pry//lib/pry/pry_instance.rb#445
|
531
532
|
def should_print?; end
|
532
533
|
|
533
534
|
# Output the result or pass to an exception handler (if result is an exception).
|
534
535
|
#
|
535
|
-
# source://pry//lib/pry/pry_instance.rb#
|
536
|
+
# source://pry//lib/pry/pry_instance.rb#296
|
536
537
|
def show_result(result); end
|
537
538
|
|
538
|
-
# source://pry//lib/pry/pry_instance.rb#
|
539
|
+
# source://pry//lib/pry/pry_instance.rb#214
|
539
540
|
def sticky_locals; end
|
540
541
|
|
541
542
|
# Returns the value of attribute suppress_output.
|
542
543
|
#
|
543
|
-
# source://pry//lib/pry/pry_instance.rb#
|
544
|
+
# source://pry//lib/pry/pry_instance.rb#35
|
544
545
|
def suppress_output; end
|
545
546
|
|
546
547
|
# Sets the attribute suppress_output
|
547
548
|
#
|
548
549
|
# @param value the value to set the attribute suppress_output to.
|
549
550
|
#
|
550
|
-
# source://pry//lib/pry/pry_instance.rb#
|
551
|
+
# source://pry//lib/pry/pry_instance.rb#35
|
551
552
|
def suppress_output=(_arg0); end
|
552
553
|
|
553
554
|
# Update Pry's internal state after evalling code.
|
@@ -555,25 +556,22 @@ class Pry
|
|
555
556
|
#
|
556
557
|
# @param code [String] The code we just eval'd
|
557
558
|
#
|
558
|
-
# source://pry//lib/pry/pry_instance.rb#
|
559
|
+
# source://pry//lib/pry/pry_instance.rb#426
|
559
560
|
def update_input_history(code); end
|
560
561
|
|
561
562
|
private
|
562
563
|
|
563
564
|
# Force `eval_string` into the encoding of `val`. [Issue #284]
|
564
565
|
#
|
565
|
-
# source://pry//lib/pry/pry_instance.rb#
|
566
|
+
# source://pry//lib/pry/pry_instance.rb#650
|
566
567
|
def ensure_correct_encoding!(val); end
|
567
568
|
|
568
|
-
# source://pry//lib/pry/pry_instance.rb#
|
569
|
-
def generate_prompt(prompt_proc, conf); end
|
570
|
-
|
571
|
-
# source://pry//lib/pry/pry_instance.rb#598
|
569
|
+
# source://pry//lib/pry/pry_instance.rb#568
|
572
570
|
def handle_line(line, options); end
|
573
571
|
|
574
572
|
# the array that the prompt stack is stored in
|
575
573
|
#
|
576
|
-
# source://pry//lib/pry/pry_instance.rb#
|
574
|
+
# source://pry//lib/pry/pry_instance.rb#659
|
577
575
|
def prompt_stack; end
|
578
576
|
|
579
577
|
class << self
|
@@ -597,7 +595,7 @@ class Pry
|
|
597
595
|
# source://pry//lib/pry/wrapped_module.rb#7
|
598
596
|
def WrappedModule(obj); end
|
599
597
|
|
600
|
-
# source://pry//lib/pry/pry_class.rb#
|
598
|
+
# source://pry//lib/pry/pry_class.rb#296
|
601
599
|
def auto_resize!; end
|
602
600
|
|
603
601
|
# Return a `Binding` object for `target` or return `target` if it is
|
@@ -607,7 +605,7 @@ class Pry
|
|
607
605
|
# @param target [Object] The object to get a `Binding` object for.
|
608
606
|
# @return [Binding] The `Binding` object.
|
609
607
|
#
|
610
|
-
# source://pry//lib/pry/pry_class.rb#
|
608
|
+
# source://pry//lib/pry/pry_class.rb#349
|
611
609
|
def binding_for(target); end
|
612
610
|
|
613
611
|
# Returns the value of attribute cli.
|
@@ -657,7 +655,7 @@ class Pry
|
|
657
655
|
# source://pry//lib/pry/pry_class.rb#46
|
658
656
|
def configure; end
|
659
657
|
|
660
|
-
# source://pry//lib/pry/pry_class.rb#
|
658
|
+
# source://pry//lib/pry/pry_class.rb#382
|
661
659
|
def critical_section; end
|
662
660
|
|
663
661
|
# @return [Pry::Config] Returns a value store for an instance of Pry running on the current thread.
|
@@ -736,18 +734,18 @@ class Pry
|
|
736
734
|
|
737
735
|
# @return [Boolean]
|
738
736
|
#
|
739
|
-
# source://pry//lib/pry/pry_class.rb#
|
737
|
+
# source://pry//lib/pry/pry_class.rb#377
|
740
738
|
def in_critical_section?; end
|
741
739
|
|
742
740
|
# Basic initialization.
|
743
741
|
#
|
744
|
-
# source://pry//lib/pry/pry_class.rb#
|
742
|
+
# source://pry//lib/pry/pry_class.rb#340
|
745
743
|
def init; end
|
746
744
|
|
747
745
|
# @return [Boolean] Whether this is the first time a Pry session has
|
748
746
|
# been started since loading the Pry class.
|
749
747
|
#
|
750
|
-
# source://pry//lib/pry/pry_class.rb#
|
748
|
+
# source://pry//lib/pry/pry_class.rb#259
|
751
749
|
def initial_session?; end
|
752
750
|
|
753
751
|
# Do basic setup for initial session including: loading pryrc, plugins,
|
@@ -797,12 +795,12 @@ class Pry
|
|
797
795
|
#
|
798
796
|
# @param file_name [String] File name to load through the REPL.
|
799
797
|
#
|
800
|
-
# source://pry//lib/pry/pry_class.rb#
|
798
|
+
# source://pry//lib/pry/pry_class.rb#204
|
801
799
|
def load_file_through_repl(file_name); end
|
802
800
|
|
803
801
|
# Load Readline history if required.
|
804
802
|
#
|
805
|
-
# source://pry//lib/pry/pry_class.rb#
|
803
|
+
# source://pry//lib/pry/pry_class.rb#253
|
806
804
|
def load_history; end
|
807
805
|
|
808
806
|
# Load RC files if appropriate This method can also be used to reload the
|
@@ -884,7 +882,7 @@ class Pry
|
|
884
882
|
|
885
883
|
# Set all the configurable options back to their default values
|
886
884
|
#
|
887
|
-
# source://pry//lib/pry/pry_class.rb#
|
885
|
+
# source://pry//lib/pry/pry_class.rb#328
|
888
886
|
def reset_defaults; end
|
889
887
|
|
890
888
|
# Run a Pry command from outside a session. The commands available are
|
@@ -903,7 +901,7 @@ class Pry
|
|
903
901
|
# @param options [Hash] Optional named parameters.
|
904
902
|
# @return [nil]
|
905
903
|
#
|
906
|
-
# source://pry//lib/pry/pry_class.rb#
|
904
|
+
# source://pry//lib/pry/pry_class.rb#279
|
907
905
|
def run_command(command_string, options = T.unsafe(nil)); end
|
908
906
|
|
909
907
|
# Start a Pry REPL.
|
@@ -926,14 +924,14 @@ class Pry
|
|
926
924
|
# source://pry//lib/pry/pry_class.rb#156
|
927
925
|
def start(target = T.unsafe(nil), options = T.unsafe(nil)); end
|
928
926
|
|
929
|
-
# source://pry//lib/pry/pry_class.rb#
|
927
|
+
# source://pry//lib/pry/pry_class.rb#356
|
930
928
|
def toplevel_binding; end
|
931
929
|
|
932
930
|
# Sets the attribute toplevel_binding
|
933
931
|
#
|
934
932
|
# @param value the value to set the attribute toplevel_binding to.
|
935
933
|
#
|
936
|
-
# source://pry//lib/pry/pry_class.rb#
|
934
|
+
# source://pry//lib/pry/pry_class.rb#374
|
937
935
|
def toplevel_binding=(_arg0); end
|
938
936
|
|
939
937
|
# An inspector that clips the output to `max_length` chars.
|
@@ -945,8 +943,15 @@ class Pry
|
|
945
943
|
# @param options [Hash]
|
946
944
|
# @return [String] The string representation of `obj`.
|
947
945
|
#
|
948
|
-
# source://pry//lib/pry/pry_class.rb#
|
946
|
+
# source://pry//lib/pry/pry_class.rb#227
|
949
947
|
def view_clip(obj, options = T.unsafe(nil)); end
|
948
|
+
|
949
|
+
private
|
950
|
+
|
951
|
+
# @return [Boolean]
|
952
|
+
#
|
953
|
+
# source://pry//lib/pry/pry_class.rb#390
|
954
|
+
def mutex_available?; end
|
950
955
|
end
|
951
956
|
end
|
952
957
|
|
@@ -1149,7 +1154,7 @@ class Pry::ClassCommand < ::Pry::Command
|
|
1149
1154
|
|
1150
1155
|
# The actual body of your command should go here.
|
1151
1156
|
#
|
1152
|
-
# The `opts`
|
1157
|
+
# The `opts` method can be called to get the options that Pry::Slop has passed,
|
1153
1158
|
# and `args` gives the remaining, unparsed arguments.
|
1154
1159
|
#
|
1155
1160
|
# The return value of this method is discarded unless the command was
|
@@ -1205,7 +1210,7 @@ class Pry::ClassCommand < ::Pry::Command
|
|
1205
1210
|
# end
|
1206
1211
|
# end
|
1207
1212
|
# end
|
1208
|
-
# @example Define the
|
1213
|
+
# @example Define the invocation block anywhere you want
|
1209
1214
|
# def subcommands(cmd)
|
1210
1215
|
# cmd.command :download do |opt|
|
1211
1216
|
# description 'Downloads a content from a server'
|
@@ -1498,7 +1503,7 @@ class Pry::Code
|
|
1498
1503
|
# An abstraction of the `dup.instance_eval` pattern used throughout this
|
1499
1504
|
# class.
|
1500
1505
|
#
|
1501
|
-
# source://pry//lib/pry/code.rb#
|
1506
|
+
# source://pry//lib/pry/code.rb#353
|
1502
1507
|
def alter(&block); end
|
1503
1508
|
|
1504
1509
|
private
|
@@ -1817,7 +1822,7 @@ Pry::CodeFile::INITIAL_PWD = T.let(T.unsafe(nil), String)
|
|
1817
1822
|
# object the user wants (applying precedence rules in doing so -- i.e methods
|
1818
1823
|
# get precedence over commands with the same name) and 2. Returning
|
1819
1824
|
# the appropriate object. If the user fails to provide a string
|
1820
|
-
#
|
1825
|
+
# identifier for the object (i.e they pass in `nil` or "") then the
|
1821
1826
|
# object looked up will be the 'current method' or 'current class'
|
1822
1827
|
# associated with the Binding.
|
1823
1828
|
#
|
@@ -1846,7 +1851,7 @@ class Pry::CodeObject
|
|
1846
1851
|
# source://pry//lib/pry/code_object.rb#118
|
1847
1852
|
def default_lookup; end
|
1848
1853
|
|
1849
|
-
# when no
|
1854
|
+
# when no parameter is given (i.e CodeObject.lookup(nil)), then we
|
1850
1855
|
# lookup the 'current object' from the binding.
|
1851
1856
|
#
|
1852
1857
|
# source://pry//lib/pry/code_object.rb#102
|
@@ -2011,7 +2016,7 @@ class Pry::ColorPrinter < ::PP
|
|
2011
2016
|
end
|
2012
2017
|
end
|
2013
2018
|
|
2014
|
-
# N.B. using a regular
|
2019
|
+
# N.B. using a regular expression here so that "raise-up 'foo'" does the right thing.
|
2015
2020
|
#
|
2016
2021
|
# source://pry//lib/pry/command.rb#11
|
2017
2022
|
class Pry::Command
|
@@ -2531,7 +2536,7 @@ class Pry::Command::AmendLine < ::Pry::ClassCommand
|
|
2531
2536
|
|
2532
2537
|
# Takes two numbers that are 1-indexed, and returns a range (or
|
2533
2538
|
# number) that is 0-indexed. 1-indexed means the first element is
|
2534
|
-
#
|
2539
|
+
# identified by 1 rather than by 0 (as is the case for Ruby arrays).
|
2535
2540
|
#
|
2536
2541
|
# @param start_line_number [Fixnum] One-indexed number.
|
2537
2542
|
# @param end_line_number [Fixnum] One-indexed number.
|
@@ -2746,7 +2751,7 @@ end
|
|
2746
2751
|
|
2747
2752
|
# source://pry//lib/pry/commands/cd.rb#5
|
2748
2753
|
class Pry::Command::Cd < ::Pry::ClassCommand
|
2749
|
-
# source://pry//lib/pry/commands/cd.rb#
|
2754
|
+
# source://pry//lib/pry/commands/cd.rb#27
|
2750
2755
|
def process; end
|
2751
2756
|
end
|
2752
2757
|
|
@@ -2940,97 +2945,97 @@ end
|
|
2940
2945
|
|
2941
2946
|
# source://pry//lib/pry/commands/edit.rb#5
|
2942
2947
|
class Pry::Command::Edit < ::Pry::ClassCommand
|
2943
|
-
# source://pry//lib/pry/commands/edit.rb#
|
2948
|
+
# source://pry//lib/pry/commands/edit.rb#91
|
2944
2949
|
def apply_runtime_patch; end
|
2945
2950
|
|
2946
2951
|
# @return [Boolean]
|
2947
2952
|
#
|
2948
|
-
# source://pry//lib/pry/commands/edit.rb#
|
2953
|
+
# source://pry//lib/pry/commands/edit.rb#174
|
2949
2954
|
def bad_option_combination?; end
|
2950
2955
|
|
2951
|
-
# source://pry//lib/pry/commands/edit.rb#
|
2956
|
+
# source://pry//lib/pry/commands/edit.rb#154
|
2952
2957
|
def code_object; end
|
2953
2958
|
|
2954
2959
|
# @raise [CommandError]
|
2955
2960
|
#
|
2956
|
-
# source://pry//lib/pry/commands/edit.rb#
|
2961
|
+
# source://pry//lib/pry/commands/edit.rb#107
|
2957
2962
|
def ensure_file_name_is_valid(file_name); end
|
2958
2963
|
|
2959
|
-
# source://pry//lib/pry/commands/edit.rb#
|
2964
|
+
# source://pry//lib/pry/commands/edit.rb#121
|
2960
2965
|
def file_and_line; end
|
2961
2966
|
|
2962
|
-
# source://pry//lib/pry/commands/edit.rb#
|
2967
|
+
# source://pry//lib/pry/commands/edit.rb#117
|
2963
2968
|
def file_and_line_for_current_exception; end
|
2964
2969
|
|
2965
2970
|
# @return [Boolean]
|
2966
2971
|
#
|
2967
|
-
# source://pry//lib/pry/commands/edit.rb#
|
2972
|
+
# source://pry//lib/pry/commands/edit.rb#80
|
2968
2973
|
def file_based_exception?; end
|
2969
2974
|
|
2970
|
-
# source://pry//lib/pry/commands/edit.rb#
|
2975
|
+
# source://pry//lib/pry/commands/edit.rb#137
|
2971
2976
|
def file_edit; end
|
2972
2977
|
|
2973
|
-
# source://pry//lib/pry/commands/edit.rb#
|
2978
|
+
# source://pry//lib/pry/commands/edit.rb#150
|
2974
2979
|
def filename_argument; end
|
2975
2980
|
|
2976
|
-
# source://pry//lib/pry/commands/edit.rb#
|
2981
|
+
# source://pry//lib/pry/commands/edit.rb#205
|
2977
2982
|
def initial_temp_file_content; end
|
2978
2983
|
|
2979
|
-
# source://pry//lib/pry/commands/edit.rb#
|
2984
|
+
# source://pry//lib/pry/commands/edit.rb#182
|
2980
2985
|
def input_expression; end
|
2981
2986
|
|
2982
2987
|
# @return [Boolean]
|
2983
2988
|
#
|
2984
|
-
# source://pry//lib/pry/commands/edit.rb#
|
2989
|
+
# source://pry//lib/pry/commands/edit.rb#197
|
2985
2990
|
def never_reload?; end
|
2986
2991
|
|
2987
|
-
# source://pry//lib/pry/commands/edit.rb#
|
2992
|
+
# source://pry//lib/pry/commands/edit.rb#27
|
2988
2993
|
def options(opt); end
|
2989
2994
|
|
2990
2995
|
# @return [Boolean]
|
2991
2996
|
#
|
2992
|
-
# source://pry//lib/pry/commands/edit.rb#
|
2997
|
+
# source://pry//lib/pry/commands/edit.rb#170
|
2993
2998
|
def patch_exception?; end
|
2994
2999
|
|
2995
3000
|
# @return [Boolean]
|
2996
3001
|
#
|
2997
|
-
# source://pry//lib/pry/commands/edit.rb#
|
3002
|
+
# source://pry//lib/pry/commands/edit.rb#165
|
2998
3003
|
def previously_patched?(code_object); end
|
2999
3004
|
|
3000
3005
|
# @return [Boolean]
|
3001
3006
|
#
|
3002
|
-
# source://pry//lib/pry/commands/edit.rb#
|
3007
|
+
# source://pry//lib/pry/commands/edit.rb#217
|
3003
3008
|
def probably_a_file?(str); end
|
3004
3009
|
|
3005
|
-
# source://pry//lib/pry/commands/edit.rb#
|
3010
|
+
# source://pry//lib/pry/commands/edit.rb#48
|
3006
3011
|
def process; end
|
3007
3012
|
|
3008
3013
|
# @return [Boolean]
|
3009
3014
|
#
|
3010
|
-
# source://pry//lib/pry/commands/edit.rb#
|
3015
|
+
# source://pry//lib/pry/commands/edit.rb#160
|
3011
3016
|
def pry_method?(code_object); end
|
3012
3017
|
|
3013
3018
|
# @return [Boolean]
|
3014
3019
|
#
|
3015
|
-
# source://pry//lib/pry/commands/edit.rb#
|
3020
|
+
# source://pry//lib/pry/commands/edit.rb#201
|
3016
3021
|
def reload?(file_name = T.unsafe(nil)); end
|
3017
3022
|
|
3018
3023
|
# @return [Boolean]
|
3019
3024
|
#
|
3020
|
-
# source://pry//lib/pry/commands/edit.rb#
|
3025
|
+
# source://pry//lib/pry/commands/edit.rb#193
|
3021
3026
|
def reloadable?; end
|
3022
3027
|
|
3023
|
-
# source://pry//lib/pry/commands/edit.rb#
|
3028
|
+
# source://pry//lib/pry/commands/edit.rb#71
|
3024
3029
|
def repl_edit; end
|
3025
3030
|
|
3026
3031
|
# @return [Boolean]
|
3027
3032
|
#
|
3028
|
-
# source://pry//lib/pry/commands/edit.rb#
|
3033
|
+
# source://pry//lib/pry/commands/edit.rb#66
|
3029
3034
|
def repl_edit?; end
|
3030
3035
|
|
3031
3036
|
# @return [Boolean]
|
3032
3037
|
#
|
3033
|
-
# source://pry//lib/pry/commands/edit.rb#
|
3038
|
+
# source://pry//lib/pry/commands/edit.rb#84
|
3034
3039
|
def runtime_patch?; end
|
3035
3040
|
end
|
3036
3041
|
|
@@ -3413,31 +3418,179 @@ class Pry::Command::ListInspectors < ::Pry::ClassCommand
|
|
3413
3418
|
def selected_text; end
|
3414
3419
|
end
|
3415
3420
|
|
3416
|
-
# source://pry//lib/pry/commands/ls/
|
3421
|
+
# source://pry//lib/pry/commands/ls/config.rb#7
|
3417
3422
|
class Pry::Command::Ls < ::Pry::ClassCommand
|
3418
3423
|
# Exclude -q, -v and --grep because they,
|
3419
3424
|
# don't specify what the user wants to see.
|
3420
3425
|
#
|
3421
3426
|
# @return [Boolean]
|
3422
3427
|
#
|
3423
|
-
# source://pry//lib/pry/commands/ls.rb#
|
3428
|
+
# source://pry//lib/pry/commands/ls.rb#64
|
3424
3429
|
def no_user_opts?; end
|
3425
3430
|
|
3426
|
-
# source://pry//lib/pry/commands/ls.rb#
|
3431
|
+
# source://pry//lib/pry/commands/ls.rb#31
|
3427
3432
|
def options(opt); end
|
3428
3433
|
|
3429
|
-
# source://pry//lib/pry/commands/ls.rb#
|
3434
|
+
# source://pry//lib/pry/commands/ls.rb#69
|
3430
3435
|
def process; end
|
3431
3436
|
|
3432
3437
|
private
|
3433
3438
|
|
3434
|
-
# source://pry//lib/pry/commands/ls.rb#
|
3439
|
+
# source://pry//lib/pry/commands/ls.rb#85
|
3435
3440
|
def error_list; end
|
3436
3441
|
|
3437
|
-
# source://pry//lib/pry/commands/ls.rb#
|
3442
|
+
# source://pry//lib/pry/commands/ls.rb#105
|
3438
3443
|
def raise_errors_if_arguments_are_weird; end
|
3439
3444
|
end
|
3440
3445
|
|
3446
|
+
# source://pry//lib/pry/commands/ls/config.rb#8
|
3447
|
+
class Pry::Command::Ls::Config
|
3448
|
+
extend ::Forwardable
|
3449
|
+
extend ::Pry::Forwardable
|
3450
|
+
|
3451
|
+
# @return [Config] a new instance of Config
|
3452
|
+
#
|
3453
|
+
# source://pry//lib/pry/commands/ls/config.rb#44
|
3454
|
+
def initialize(config); end
|
3455
|
+
|
3456
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
3457
|
+
def [](*args, **_arg1, &block); end
|
3458
|
+
|
3459
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
3460
|
+
def []=(*args, **_arg1, &block); end
|
3461
|
+
|
3462
|
+
# source://pry//lib/pry/commands/ls/config.rb#33
|
3463
|
+
def builtin_global_color; end
|
3464
|
+
|
3465
|
+
# source://pry//lib/pry/commands/ls/config.rb#37
|
3466
|
+
def builtin_global_color=(value); end
|
3467
|
+
|
3468
|
+
# source://pry//lib/pry/commands/ls/config.rb#33
|
3469
|
+
def ceiling; end
|
3470
|
+
|
3471
|
+
# source://pry//lib/pry/commands/ls/config.rb#37
|
3472
|
+
def ceiling=(value); end
|
3473
|
+
|
3474
|
+
# source://pry//lib/pry/commands/ls/config.rb#33
|
3475
|
+
def class_constant_color; end
|
3476
|
+
|
3477
|
+
# source://pry//lib/pry/commands/ls/config.rb#37
|
3478
|
+
def class_constant_color=(value); end
|
3479
|
+
|
3480
|
+
# source://pry//lib/pry/commands/ls/config.rb#33
|
3481
|
+
def class_var_color; end
|
3482
|
+
|
3483
|
+
# source://pry//lib/pry/commands/ls/config.rb#37
|
3484
|
+
def class_var_color=(value); end
|
3485
|
+
|
3486
|
+
# source://pry//lib/pry/commands/ls/config.rb#33
|
3487
|
+
def constant_color; end
|
3488
|
+
|
3489
|
+
# source://pry//lib/pry/commands/ls/config.rb#37
|
3490
|
+
def constant_color=(value); end
|
3491
|
+
|
3492
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
3493
|
+
def each(*args, **_arg1, &block); end
|
3494
|
+
|
3495
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
3496
|
+
def each_pair(*args, **_arg1, &block); end
|
3497
|
+
|
3498
|
+
# source://pry//lib/pry/commands/ls/config.rb#33
|
3499
|
+
def exception_constant_color; end
|
3500
|
+
|
3501
|
+
# source://pry//lib/pry/commands/ls/config.rb#37
|
3502
|
+
def exception_constant_color=(value); end
|
3503
|
+
|
3504
|
+
# source://pry//lib/pry/commands/ls/config.rb#33
|
3505
|
+
def global_var_color; end
|
3506
|
+
|
3507
|
+
# source://pry//lib/pry/commands/ls/config.rb#37
|
3508
|
+
def global_var_color=(value); end
|
3509
|
+
|
3510
|
+
# source://pry//lib/pry/commands/ls/config.rb#33
|
3511
|
+
def heading_color; end
|
3512
|
+
|
3513
|
+
# source://pry//lib/pry/commands/ls/config.rb#37
|
3514
|
+
def heading_color=(value); end
|
3515
|
+
|
3516
|
+
# source://pry//lib/pry/commands/ls/config.rb#33
|
3517
|
+
def instance_var_color; end
|
3518
|
+
|
3519
|
+
# source://pry//lib/pry/commands/ls/config.rb#37
|
3520
|
+
def instance_var_color=(value); end
|
3521
|
+
|
3522
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
3523
|
+
def keys(*args, **_arg1, &block); end
|
3524
|
+
|
3525
|
+
# source://pry//lib/pry/commands/ls/config.rb#33
|
3526
|
+
def local_var_color; end
|
3527
|
+
|
3528
|
+
# source://pry//lib/pry/commands/ls/config.rb#37
|
3529
|
+
def local_var_color=(value); end
|
3530
|
+
|
3531
|
+
# source://pry//lib/pry/commands/ls/config.rb#33
|
3532
|
+
def method_missing_color; end
|
3533
|
+
|
3534
|
+
# source://pry//lib/pry/commands/ls/config.rb#37
|
3535
|
+
def method_missing_color=(value); end
|
3536
|
+
|
3537
|
+
# source://pry//lib/pry/commands/ls/config.rb#33
|
3538
|
+
def private_method_color; end
|
3539
|
+
|
3540
|
+
# source://pry//lib/pry/commands/ls/config.rb#37
|
3541
|
+
def private_method_color=(value); end
|
3542
|
+
|
3543
|
+
# source://pry//lib/pry/commands/ls/config.rb#33
|
3544
|
+
def protected_method_color; end
|
3545
|
+
|
3546
|
+
# source://pry//lib/pry/commands/ls/config.rb#37
|
3547
|
+
def protected_method_color=(value); end
|
3548
|
+
|
3549
|
+
# source://pry//lib/pry/commands/ls/config.rb#33
|
3550
|
+
def pry_var_color; end
|
3551
|
+
|
3552
|
+
# source://pry//lib/pry/commands/ls/config.rb#37
|
3553
|
+
def pry_var_color=(value); end
|
3554
|
+
|
3555
|
+
# source://pry//lib/pry/commands/ls/config.rb#33
|
3556
|
+
def pseudo_global_color; end
|
3557
|
+
|
3558
|
+
# source://pry//lib/pry/commands/ls/config.rb#37
|
3559
|
+
def pseudo_global_color=(value); end
|
3560
|
+
|
3561
|
+
# source://pry//lib/pry/commands/ls/config.rb#33
|
3562
|
+
def public_method_color; end
|
3563
|
+
|
3564
|
+
# source://pry//lib/pry/commands/ls/config.rb#37
|
3565
|
+
def public_method_color=(value); end
|
3566
|
+
|
3567
|
+
# source://pry//lib/pry/commands/ls/config.rb#33
|
3568
|
+
def separator; end
|
3569
|
+
|
3570
|
+
# source://pry//lib/pry/commands/ls/config.rb#37
|
3571
|
+
def separator=(value); end
|
3572
|
+
|
3573
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
3574
|
+
def to_a(*args, **_arg1, &block); end
|
3575
|
+
|
3576
|
+
# source://pry//lib/pry/commands/ls/config.rb#33
|
3577
|
+
def unloaded_constant_color; end
|
3578
|
+
|
3579
|
+
# source://pry//lib/pry/commands/ls/config.rb#37
|
3580
|
+
def unloaded_constant_color=(value); end
|
3581
|
+
|
3582
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
3583
|
+
def values(*args, **_arg1, &block); end
|
3584
|
+
|
3585
|
+
class << self
|
3586
|
+
# source://pry//lib/pry/commands/ls/config.rb#48
|
3587
|
+
def default; end
|
3588
|
+
end
|
3589
|
+
end
|
3590
|
+
|
3591
|
+
# source://pry//lib/pry/commands/ls/config.rb#11
|
3592
|
+
Pry::Command::Ls::Config::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
|
3593
|
+
|
3441
3594
|
# source://pry//lib/pry/commands/ls/constants.rb#6
|
3442
3595
|
class Pry::Command::Ls::Constants < ::Pry::Command::Ls::Formatter
|
3443
3596
|
include ::Pry::Command::Ls::Interrogatable
|
@@ -3469,9 +3622,6 @@ end
|
|
3469
3622
|
# source://pry//lib/pry/commands/ls/constants.rb#7
|
3470
3623
|
Pry::Command::Ls::Constants::DEPRECATED_CONSTANTS = T.let(T.unsafe(nil), Array)
|
3471
3624
|
|
3472
|
-
# source://pry//lib/pry/commands/ls.rb#6
|
3473
|
-
Pry::Command::Ls::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
|
3474
|
-
|
3475
3625
|
# source://pry//lib/pry/commands/ls/formatter.rb#6
|
3476
3626
|
class Pry::Command::Ls::Formatter
|
3477
3627
|
# @return [Formatter] a new instance of Formatter
|
@@ -3925,7 +4075,7 @@ end
|
|
3925
4075
|
|
3926
4076
|
# source://pry//lib/pry/commands/shell_mode.rb#5
|
3927
4077
|
class Pry::Command::ShellMode < ::Pry::ClassCommand
|
3928
|
-
# source://pry//lib/pry/commands/shell_mode.rb#
|
4078
|
+
# source://pry//lib/pry/commands/shell_mode.rb#15
|
3929
4079
|
def process; end
|
3930
4080
|
end
|
3931
4081
|
|
@@ -4156,13 +4306,10 @@ class Pry::Command::WatchExpression < ::Pry::ClassCommand
|
|
4156
4306
|
|
4157
4307
|
private
|
4158
4308
|
|
4159
|
-
#
|
4160
|
-
|
4161
|
-
#
|
4162
|
-
# source://pry//lib/pry/commands/watch_expression.rb#93
|
4163
|
-
def add_expression(_arguments); end
|
4309
|
+
# source://pry//lib/pry/commands/watch_expression.rb#91
|
4310
|
+
def add_expression; end
|
4164
4311
|
|
4165
|
-
# source://pry//lib/pry/commands/watch_expression.rb#
|
4312
|
+
# source://pry//lib/pry/commands/watch_expression.rb#96
|
4166
4313
|
def add_hook; end
|
4167
4314
|
|
4168
4315
|
# source://pry//lib/pry/commands/watch_expression.rb#59
|
@@ -4187,7 +4334,7 @@ class Pry::Command::WatchExpression::Expression
|
|
4187
4334
|
|
4188
4335
|
# Has the value of the expression changed?
|
4189
4336
|
#
|
4190
|
-
# We use the pretty-printed string
|
4337
|
+
# We use the pretty-printed string representation to detect differences
|
4191
4338
|
# as this avoids problems with dup (causes too many differences) and ==
|
4192
4339
|
# (causes too few)
|
4193
4340
|
#
|
@@ -4619,7 +4766,7 @@ class Pry::CommandSet
|
|
4619
4766
|
#
|
4620
4767
|
# @param sets [Array<CommandSet>] Command sets, all of the commands of which
|
4621
4768
|
# will be imported.
|
4622
|
-
# @return [Pry::CommandSet] Returns the
|
4769
|
+
# @return [Pry::CommandSet] Returns the receiver (a command set).
|
4623
4770
|
#
|
4624
4771
|
# source://pry//lib/pry/command_set.rb#149
|
4625
4772
|
def import(*sets); end
|
@@ -4628,7 +4775,7 @@ class Pry::CommandSet
|
|
4628
4775
|
#
|
4629
4776
|
# @param set [CommandSet] Set to import commands from
|
4630
4777
|
# @param matches [Array<String>] Commands to import
|
4631
|
-
# @return [Pry::CommandSet] Returns the
|
4778
|
+
# @return [Pry::CommandSet] Returns the receiver (a command set).
|
4632
4779
|
#
|
4633
4780
|
# source://pry//lib/pry/command_set.rb#161
|
4634
4781
|
def import_from(set, *matches); end
|
@@ -4707,32 +4854,40 @@ end
|
|
4707
4854
|
# @api private
|
4708
4855
|
# @since v0.13.0
|
4709
4856
|
#
|
4710
|
-
# source://pry//lib/pry/command_state.rb#
|
4857
|
+
# source://pry//lib/pry/command_state.rb#12
|
4711
4858
|
class Pry::CommandState
|
4712
4859
|
# @api private
|
4713
4860
|
# @return [CommandState] a new instance of CommandState
|
4714
4861
|
# @since v0.13.0
|
4715
4862
|
#
|
4716
|
-
# source://pry//lib/pry/command_state.rb#
|
4863
|
+
# source://pry//lib/pry/command_state.rb#17
|
4717
4864
|
def initialize; end
|
4718
4865
|
|
4719
4866
|
# @api private
|
4720
4867
|
# @since v0.13.0
|
4721
4868
|
#
|
4722
|
-
# source://pry//lib/pry/command_state.rb#
|
4723
|
-
def reset(
|
4869
|
+
# source://pry//lib/pry/command_state.rb#25
|
4870
|
+
def reset(command_class); end
|
4724
4871
|
|
4725
4872
|
# @api private
|
4726
4873
|
# @since v0.13.0
|
4727
4874
|
#
|
4728
|
-
# source://pry//lib/pry/command_state.rb#
|
4729
|
-
def state_for(
|
4875
|
+
# source://pry//lib/pry/command_state.rb#21
|
4876
|
+
def state_for(command_class); end
|
4877
|
+
|
4878
|
+
private
|
4879
|
+
|
4880
|
+
# @api private
|
4881
|
+
# @since v0.13.0
|
4882
|
+
#
|
4883
|
+
# source://pry//lib/pry/command_state.rb#31
|
4884
|
+
def command_struct(command_class); end
|
4730
4885
|
|
4731
4886
|
class << self
|
4732
4887
|
# @api private
|
4733
4888
|
# @since v0.13.0
|
4734
4889
|
#
|
4735
|
-
# source://pry//lib/pry/command_state.rb#
|
4890
|
+
# source://pry//lib/pry/command_state.rb#13
|
4736
4891
|
def default; end
|
4737
4892
|
end
|
4738
4893
|
end
|
@@ -4749,17 +4904,17 @@ class Pry::Config
|
|
4749
4904
|
# @api private
|
4750
4905
|
# @return [Config] a new instance of Config
|
4751
4906
|
#
|
4752
|
-
# source://pry//lib/pry/config.rb#
|
4907
|
+
# source://pry//lib/pry/config.rb#151
|
4753
4908
|
def initialize; end
|
4754
4909
|
|
4755
4910
|
# @api private
|
4756
4911
|
#
|
4757
|
-
# source://pry//lib/pry/config.rb#
|
4912
|
+
# source://pry//lib/pry/config.rb#224
|
4758
4913
|
def [](attr); end
|
4759
4914
|
|
4760
4915
|
# @api private
|
4761
4916
|
#
|
4762
|
-
# source://pry//lib/pry/config.rb#
|
4917
|
+
# source://pry//lib/pry/config.rb#220
|
4763
4918
|
def []=(attr, value); end
|
4764
4919
|
|
4765
4920
|
# @api private
|
@@ -4831,12 +4986,12 @@ class Pry::Config
|
|
4831
4986
|
|
4832
4987
|
# @api private
|
4833
4988
|
#
|
4834
|
-
# source://pry//lib/pry/config.rb#
|
4989
|
+
# source://pry//lib/pry/config.rb#249
|
4835
4990
|
def control_d_handler; end
|
4836
4991
|
|
4837
4992
|
# @api private
|
4838
4993
|
#
|
4839
|
-
# source://pry//lib/pry/config.rb#
|
4994
|
+
# source://pry//lib/pry/config.rb#250
|
4840
4995
|
def control_d_handler=(value); end
|
4841
4996
|
|
4842
4997
|
# @api private
|
@@ -4892,16 +5047,6 @@ class Pry::Config
|
|
4892
5047
|
# source://pry//lib/pry/config/attributable.rb#18
|
4893
5048
|
def exception_handler=(_arg0); end
|
4894
5049
|
|
4895
|
-
# @api private
|
4896
|
-
# @deprecated
|
4897
|
-
# @return [Array] Exception that Pry shouldn't rescue
|
4898
|
-
#
|
4899
|
-
# source://pry//lib/pry/config/attributable.rb#13
|
4900
|
-
def exception_whitelist; end
|
4901
|
-
|
4902
|
-
# source://pry//lib/pry/config/attributable.rb#18
|
4903
|
-
def exception_whitelist=(_arg0); end
|
4904
|
-
|
4905
5050
|
# @api private
|
4906
5051
|
# @return [String] a line of code to execute in context before the session
|
4907
5052
|
# starts
|
@@ -4985,7 +5130,7 @@ class Pry::Config
|
|
4985
5130
|
def hooks=(_arg0); end
|
4986
5131
|
|
4987
5132
|
# @api private
|
4988
|
-
# @return [IO, #readline]
|
5133
|
+
# @return [IO, #readline] the object from which Pry retrieves its lines of
|
4989
5134
|
# input
|
4990
5135
|
#
|
4991
5136
|
# source://pry//lib/pry/config/attributable.rb#13
|
@@ -5014,19 +5159,28 @@ class Pry::Config
|
|
5014
5159
|
|
5015
5160
|
# @api private
|
5016
5161
|
#
|
5017
|
-
# source://pry//lib/pry/config.rb#
|
5162
|
+
# source://pry//lib/pry/config.rb#216
|
5018
5163
|
def merge(config_hash); end
|
5019
5164
|
|
5020
5165
|
# @api private
|
5021
5166
|
#
|
5022
|
-
# source://pry//lib/pry/config.rb#
|
5167
|
+
# source://pry//lib/pry/config.rb#211
|
5023
5168
|
def merge!(config_hash); end
|
5024
5169
|
|
5025
5170
|
# @api private
|
5026
5171
|
#
|
5027
|
-
# source://pry//lib/pry/config.rb#
|
5172
|
+
# source://pry//lib/pry/config.rb#229
|
5028
5173
|
def method_missing(method_name, *args, &_block); end
|
5029
5174
|
|
5175
|
+
# @api private
|
5176
|
+
# @return [Boolean]
|
5177
|
+
#
|
5178
|
+
# source://pry//lib/pry/config/attributable.rb#13
|
5179
|
+
def multiline; end
|
5180
|
+
|
5181
|
+
# source://pry//lib/pry/config/attributable.rb#18
|
5182
|
+
def multiline=(_arg0); end
|
5183
|
+
|
5030
5184
|
# @api private
|
5031
5185
|
# @return [IO, #puts] where Pry should output results provided by {input}
|
5032
5186
|
#
|
@@ -5188,6 +5342,11 @@ class Pry::Config
|
|
5188
5342
|
|
5189
5343
|
private
|
5190
5344
|
|
5345
|
+
# @api private
|
5346
|
+
#
|
5347
|
+
# source://pry//lib/pry/config.rb#279
|
5348
|
+
def choose_input; end
|
5349
|
+
|
5191
5350
|
# @api private
|
5192
5351
|
#
|
5193
5352
|
# source://pry//lib/pry/config.rb#303
|
@@ -5195,18 +5354,18 @@ class Pry::Config
|
|
5195
5354
|
|
5196
5355
|
# @api private
|
5197
5356
|
#
|
5198
|
-
# source://pry//lib/pry/config.rb#
|
5357
|
+
# source://pry//lib/pry/config.rb#244
|
5199
5358
|
def initialize_dup(other); end
|
5200
5359
|
|
5201
5360
|
# @api private
|
5202
5361
|
#
|
5203
5362
|
# source://pry//lib/pry/config.rb#289
|
5204
|
-
def
|
5363
|
+
def load_readline; end
|
5205
5364
|
|
5206
5365
|
# @api private
|
5207
5366
|
# @return [Boolean]
|
5208
5367
|
#
|
5209
|
-
# source://pry//lib/pry/config.rb#
|
5368
|
+
# source://pry//lib/pry/config.rb#240
|
5210
5369
|
def respond_to_missing?(method_name, include_all = T.unsafe(nil)); end
|
5211
5370
|
end
|
5212
5371
|
|
@@ -5328,7 +5487,7 @@ module Pry::ControlDHandler
|
|
5328
5487
|
end
|
5329
5488
|
end
|
5330
5489
|
|
5331
|
-
# source://pry//lib/pry/pry_instance.rb#
|
5490
|
+
# source://pry//lib/pry/pry_instance.rb#58
|
5332
5491
|
Pry::EMPTY_COMPLETIONS = T.let(T.unsafe(nil), Array)
|
5333
5492
|
|
5334
5493
|
# source://pry//lib/pry/editor.rb#6
|
@@ -5378,7 +5537,7 @@ class Pry::Editor
|
|
5378
5537
|
# editor_name
|
5379
5538
|
# # => textmate
|
5380
5539
|
#
|
5381
|
-
# source://pry//lib/pry/editor.rb#
|
5540
|
+
# source://pry//lib/pry/editor.rb#153
|
5382
5541
|
def editor_name; end
|
5383
5542
|
|
5384
5543
|
# Start the editor running, using the calculated invocation string
|
@@ -5439,7 +5598,7 @@ module Pry::ExceptionHandler
|
|
5439
5598
|
# @api private
|
5440
5599
|
# @since v0.13.0
|
5441
5600
|
#
|
5442
|
-
# source://pry//lib/pry/exception_handler.rb#
|
5601
|
+
# source://pry//lib/pry/exception_handler.rb#42
|
5443
5602
|
def cause_text(cause); end
|
5444
5603
|
|
5445
5604
|
# @api private
|
@@ -5631,31 +5790,31 @@ module Pry::Helpers::DocumentationHelpers
|
|
5631
5790
|
# @param comment [String]
|
5632
5791
|
# @return [String]
|
5633
5792
|
#
|
5634
|
-
# source://pry//lib/pry/helpers/documentation_helpers.rb#
|
5793
|
+
# source://pry//lib/pry/helpers/documentation_helpers.rb#67
|
5635
5794
|
def get_comment_content(comment); end
|
5636
5795
|
|
5637
|
-
# source://pry//lib/pry/helpers/documentation_helpers.rb#
|
5796
|
+
# source://pry//lib/pry/helpers/documentation_helpers.rb#51
|
5638
5797
|
def process_comment_markup(comment); end
|
5639
5798
|
|
5640
5799
|
# source://pry//lib/pry/helpers/documentation_helpers.rb#15
|
5641
5800
|
def process_rdoc(comment); end
|
5642
5801
|
|
5643
|
-
# source://pry//lib/pry/helpers/documentation_helpers.rb#
|
5802
|
+
# source://pry//lib/pry/helpers/documentation_helpers.rb#45
|
5644
5803
|
def process_yardoc(comment); end
|
5645
5804
|
|
5646
|
-
# source://pry//lib/pry/helpers/documentation_helpers.rb#
|
5805
|
+
# source://pry//lib/pry/helpers/documentation_helpers.rb#30
|
5647
5806
|
def process_yardoc_tag(comment, tag); end
|
5648
5807
|
|
5649
5808
|
# @param code [String]
|
5650
5809
|
# @return [String]
|
5651
5810
|
#
|
5652
|
-
# source://pry//lib/pry/helpers/documentation_helpers.rb#
|
5811
|
+
# source://pry//lib/pry/helpers/documentation_helpers.rb#57
|
5653
5812
|
def strip_comments_from_c_code(code); end
|
5654
5813
|
|
5655
5814
|
# @param text [String]
|
5656
5815
|
# @return [String]
|
5657
5816
|
#
|
5658
|
-
# source://pry//lib/pry/helpers/documentation_helpers.rb#
|
5817
|
+
# source://pry//lib/pry/helpers/documentation_helpers.rb#79
|
5659
5818
|
def strip_leading_whitespace(text); end
|
5660
5819
|
|
5661
5820
|
class << self
|
@@ -5666,31 +5825,31 @@ module Pry::Helpers::DocumentationHelpers
|
|
5666
5825
|
# @param comment [String]
|
5667
5826
|
# @return [String]
|
5668
5827
|
#
|
5669
|
-
# source://pry//lib/pry/helpers/documentation_helpers.rb#
|
5828
|
+
# source://pry//lib/pry/helpers/documentation_helpers.rb#67
|
5670
5829
|
def get_comment_content(comment); end
|
5671
5830
|
|
5672
|
-
# source://pry//lib/pry/helpers/documentation_helpers.rb#
|
5831
|
+
# source://pry//lib/pry/helpers/documentation_helpers.rb#51
|
5673
5832
|
def process_comment_markup(comment); end
|
5674
5833
|
|
5675
5834
|
# source://pry//lib/pry/helpers/documentation_helpers.rb#15
|
5676
5835
|
def process_rdoc(comment); end
|
5677
5836
|
|
5678
|
-
# source://pry//lib/pry/helpers/documentation_helpers.rb#
|
5837
|
+
# source://pry//lib/pry/helpers/documentation_helpers.rb#45
|
5679
5838
|
def process_yardoc(comment); end
|
5680
5839
|
|
5681
|
-
# source://pry//lib/pry/helpers/documentation_helpers.rb#
|
5840
|
+
# source://pry//lib/pry/helpers/documentation_helpers.rb#30
|
5682
5841
|
def process_yardoc_tag(comment, tag); end
|
5683
5842
|
|
5684
5843
|
# @param code [String]
|
5685
5844
|
# @return [String]
|
5686
5845
|
#
|
5687
|
-
# source://pry//lib/pry/helpers/documentation_helpers.rb#
|
5846
|
+
# source://pry//lib/pry/helpers/documentation_helpers.rb#57
|
5688
5847
|
def strip_comments_from_c_code(code); end
|
5689
5848
|
|
5690
5849
|
# @param text [String]
|
5691
5850
|
# @return [String]
|
5692
5851
|
#
|
5693
|
-
# source://pry//lib/pry/helpers/documentation_helpers.rb#
|
5852
|
+
# source://pry//lib/pry/helpers/documentation_helpers.rb#79
|
5694
5853
|
def strip_leading_whitespace(text); end
|
5695
5854
|
end
|
5696
5855
|
end
|
@@ -5773,13 +5932,6 @@ module Pry::Helpers::Platform
|
|
5773
5932
|
# @since v0.12.0
|
5774
5933
|
#
|
5775
5934
|
# source://pry//lib/pry/helpers/platform.rb#50
|
5776
|
-
def mri_19?; end
|
5777
|
-
|
5778
|
-
# @api public
|
5779
|
-
# @return [Boolean]
|
5780
|
-
# @since v0.12.0
|
5781
|
-
#
|
5782
|
-
# source://pry//lib/pry/helpers/platform.rb#55
|
5783
5935
|
def mri_2?; end
|
5784
5936
|
|
5785
5937
|
# @api public
|
@@ -6734,7 +6886,7 @@ class Pry::Indent
|
|
6734
6886
|
|
6735
6887
|
# @return [Indent] a new instance of Indent
|
6736
6888
|
#
|
6737
|
-
# source://pry//lib/pry/indent.rb#
|
6889
|
+
# source://pry//lib/pry/indent.rb#107
|
6738
6890
|
def initialize(pry_instance = T.unsafe(nil)); end
|
6739
6891
|
|
6740
6892
|
# Return a string which, when printed, will rewrite the previous line with
|
@@ -6746,7 +6898,7 @@ class Pry::Indent
|
|
6746
6898
|
# the difference in length between the old line and the new one)
|
6747
6899
|
# @return [String] correctly indented line
|
6748
6900
|
#
|
6749
|
-
# source://pry//lib/pry/indent.rb#
|
6901
|
+
# source://pry//lib/pry/indent.rb#395
|
6750
6902
|
def correct_indentation(prompt, code, overhang = T.unsafe(nil)); end
|
6751
6903
|
|
6752
6904
|
# Get the indentation for the start of the next line.
|
@@ -6755,7 +6907,7 @@ class Pry::Indent
|
|
6755
6907
|
#
|
6756
6908
|
# @return String The correct number of spaces
|
6757
6909
|
#
|
6758
|
-
# source://pry//lib/pry/indent.rb#
|
6910
|
+
# source://pry//lib/pry/indent.rb#185
|
6759
6911
|
def current_prefix; end
|
6760
6912
|
|
6761
6913
|
# If the code just before an "if" or "while" token on a line looks like the
|
@@ -6764,7 +6916,7 @@ class Pry::Indent
|
|
6764
6916
|
#
|
6765
6917
|
# @return [Boolean]
|
6766
6918
|
#
|
6767
|
-
# source://pry//lib/pry/indent.rb#
|
6919
|
+
# source://pry//lib/pry/indent.rb#268
|
6768
6920
|
def end_of_statement?(last_token, last_kind); end
|
6769
6921
|
|
6770
6922
|
# Are we currently in the middle of a string literal.
|
@@ -6775,7 +6927,7 @@ class Pry::Indent
|
|
6775
6927
|
#
|
6776
6928
|
# @return [Boolean] Boolean
|
6777
6929
|
#
|
6778
|
-
# source://pry//lib/pry/indent.rb#
|
6930
|
+
# source://pry//lib/pry/indent.rb#279
|
6779
6931
|
def in_string?; end
|
6780
6932
|
|
6781
6933
|
# Indents a string and returns it. This string can either be a single line
|
@@ -6798,7 +6950,7 @@ class Pry::Indent
|
|
6798
6950
|
# @param input [String] The input string to indent.
|
6799
6951
|
# @return [String] The indented version of +input+.
|
6800
6952
|
#
|
6801
|
-
# source://pry//lib/pry/indent.rb#
|
6953
|
+
# source://pry//lib/pry/indent.rb#146
|
6802
6954
|
def indent(input); end
|
6803
6955
|
|
6804
6956
|
# @return [String] String containing the spaces to be inserted before the next line.
|
@@ -6819,9 +6971,14 @@ class Pry::Indent
|
|
6819
6971
|
# @param tokens [Array] A list of tokens to scan.
|
6820
6972
|
# @return [Array[Integer]]
|
6821
6973
|
#
|
6822
|
-
# source://pry//lib/pry/indent.rb#
|
6974
|
+
# source://pry//lib/pry/indent.rb#202
|
6823
6975
|
def indentation_delta(tokens); end
|
6824
6976
|
|
6977
|
+
# @return [String] String containing the spaces for the current line.
|
6978
|
+
#
|
6979
|
+
# source://pry//lib/pry/indent.rb#21
|
6980
|
+
def last_indent_level; end
|
6981
|
+
|
6825
6982
|
# Return a list of strings which can be used to re-construct the Module.nesting at
|
6826
6983
|
# the current point in the file.
|
6827
6984
|
#
|
@@ -6829,14 +6986,14 @@ class Pry::Indent
|
|
6829
6986
|
#
|
6830
6987
|
# @return [Array<String>]
|
6831
6988
|
#
|
6832
|
-
# source://pry//lib/pry/indent.rb#
|
6989
|
+
# source://pry//lib/pry/indent.rb#378
|
6833
6990
|
def module_nesting; end
|
6834
6991
|
|
6835
6992
|
# All the open delimiters, in the order that they first appeared.
|
6836
6993
|
#
|
6837
6994
|
# @return [String]
|
6838
6995
|
#
|
6839
|
-
# source://pry//lib/pry/indent.rb#
|
6996
|
+
# source://pry//lib/pry/indent.rb#314
|
6840
6997
|
def open_delimiters; end
|
6841
6998
|
|
6842
6999
|
# Return a string which restores the CodeRay string status to the correct value by
|
@@ -6844,17 +7001,17 @@ class Pry::Indent
|
|
6844
7001
|
#
|
6845
7002
|
# @return String
|
6846
7003
|
#
|
6847
|
-
# source://pry//lib/pry/indent.rb#
|
7004
|
+
# source://pry//lib/pry/indent.rb#322
|
6848
7005
|
def open_delimiters_line; end
|
6849
7006
|
|
6850
7007
|
# reset internal state
|
6851
7008
|
#
|
6852
|
-
# source://pry//lib/pry/indent.rb#
|
7009
|
+
# source://pry//lib/pry/indent.rb#113
|
6853
7010
|
def reset; end
|
6854
7011
|
|
6855
7012
|
# @return [Array<String>] The stack of open tokens.
|
6856
7013
|
#
|
6857
|
-
# source://pry//lib/pry/indent.rb#
|
7014
|
+
# source://pry//lib/pry/indent.rb#24
|
6858
7015
|
def stack; end
|
6859
7016
|
|
6860
7017
|
# Given a string of Ruby code, use CodeRay to export the tokens.
|
@@ -6862,7 +7019,7 @@ class Pry::Indent
|
|
6862
7019
|
# @param string [String] The Ruby to lex
|
6863
7020
|
# @return [Array] An Array of pairs of [token_value, token_type]
|
6864
7021
|
#
|
6865
|
-
# source://pry//lib/pry/indent.rb#
|
7022
|
+
# source://pry//lib/pry/indent.rb#287
|
6866
7023
|
def tokenize(string); end
|
6867
7024
|
|
6868
7025
|
# Update the internal state about what kind of strings are open.
|
@@ -6874,7 +7031,7 @@ class Pry::Indent
|
|
6874
7031
|
#
|
6875
7032
|
# @param token [String] The token (of type :delimiter)
|
6876
7033
|
#
|
6877
|
-
# source://pry//lib/pry/indent.rb#
|
7034
|
+
# source://pry//lib/pry/indent.rb#299
|
6878
7035
|
def track_delimiter(token); end
|
6879
7036
|
|
6880
7037
|
# Update the internal state relating to module nesting.
|
@@ -6895,7 +7052,7 @@ class Pry::Indent
|
|
6895
7052
|
# @param token [String] a token from Coderay
|
6896
7053
|
# @param kind [Symbol] the kind of that token
|
6897
7054
|
#
|
6898
|
-
# source://pry//lib/pry/indent.rb#
|
7055
|
+
# source://pry//lib/pry/indent.rb#343
|
6899
7056
|
def track_module_nesting(token, kind); end
|
6900
7057
|
|
6901
7058
|
# Update the internal state relating to module nesting on 'end'.
|
@@ -6906,7 +7063,7 @@ class Pry::Indent
|
|
6906
7063
|
# @param token [String] a token from Coderay
|
6907
7064
|
# @param kind [Symbol] the kind of that token
|
6908
7065
|
#
|
6909
|
-
# source://pry//lib/pry/indent.rb#
|
7066
|
+
# source://pry//lib/pry/indent.rb#368
|
6910
7067
|
def track_module_nesting_end(token, kind = T.unsafe(nil)); end
|
6911
7068
|
|
6912
7069
|
class << self
|
@@ -6915,7 +7072,7 @@ class Pry::Indent
|
|
6915
7072
|
# @param str [String]
|
6916
7073
|
# @return [String]
|
6917
7074
|
#
|
6918
|
-
# source://pry//lib/pry/indent.rb#
|
7075
|
+
# source://pry//lib/pry/indent.rb#85
|
6919
7076
|
def indent(str); end
|
6920
7077
|
|
6921
7078
|
# Get the module nesting at the given point in the given string.
|
@@ -6928,7 +7085,7 @@ class Pry::Indent
|
|
6928
7085
|
# @param line_number [Fixnum] The line number (starting from 1)
|
6929
7086
|
# @return [Array<String>]
|
6930
7087
|
#
|
6931
|
-
# source://pry//lib/pry/indent.rb#
|
7088
|
+
# source://pry//lib/pry/indent.rb#98
|
6932
7089
|
def nesting_at(str, line_number); end
|
6933
7090
|
end
|
6934
7091
|
end
|
@@ -6940,13 +7097,13 @@ end
|
|
6940
7097
|
# :pre_constant and :preserved_constant are the CodeRay 0.9.8 and 1.0.0
|
6941
7098
|
# classifications of "true", "false", and "nil".
|
6942
7099
|
#
|
6943
|
-
# source://pry//lib/pry/indent.rb#
|
7100
|
+
# source://pry//lib/pry/indent.rb#63
|
6944
7101
|
Pry::Indent::IGNORE_TOKENS = T.let(T.unsafe(nil), Array)
|
6945
7102
|
|
6946
7103
|
# Collection of tokens that should appear dedented even though they
|
6947
7104
|
# don't affect the surrounding code.
|
6948
7105
|
#
|
6949
|
-
# source://pry//lib/pry/indent.rb#
|
7106
|
+
# source://pry//lib/pry/indent.rb#79
|
6950
7107
|
Pry::Indent::MIDWAY_TOKENS = T.let(T.unsafe(nil), Array)
|
6951
7108
|
|
6952
7109
|
# Hash containing all the tokens that should increase the indentation
|
@@ -6954,23 +7111,23 @@ Pry::Indent::MIDWAY_TOKENS = T.let(T.unsafe(nil), Array)
|
|
6954
7111
|
# tokens that should prevent a line from being indented if they appear on
|
6955
7112
|
# the same line.
|
6956
7113
|
#
|
6957
|
-
# source://pry//lib/pry/indent.rb#
|
7114
|
+
# source://pry//lib/pry/indent.rb#33
|
6958
7115
|
Pry::Indent::OPEN_TOKENS = T.let(T.unsafe(nil), Hash)
|
6959
7116
|
|
6960
7117
|
# Which tokens can be followed by an optional "do" keyword.
|
6961
7118
|
#
|
6962
|
-
# source://pry//lib/pry/indent.rb#
|
7119
|
+
# source://pry//lib/pry/indent.rb#55
|
6963
7120
|
Pry::Indent::OPTIONAL_DO_TOKENS = T.let(T.unsafe(nil), Array)
|
6964
7121
|
|
6965
7122
|
# Which tokens can either be open tokens, or appear as modifiers on
|
6966
7123
|
# a single-line.
|
6967
7124
|
#
|
6968
|
-
# source://pry//lib/pry/indent.rb#
|
7125
|
+
# source://pry//lib/pry/indent.rb#52
|
6969
7126
|
Pry::Indent::SINGLELINE_TOKENS = T.let(T.unsafe(nil), Array)
|
6970
7127
|
|
6971
7128
|
# The amount of spaces to insert for each indent level.
|
6972
7129
|
#
|
6973
|
-
# source://pry//lib/pry/indent.rb#
|
7130
|
+
# source://pry//lib/pry/indent.rb#27
|
6974
7131
|
Pry::Indent::SPACES = T.let(T.unsafe(nil), String)
|
6975
7132
|
|
6976
7133
|
# Tokens that indicate the end of a statement (i.e. that, if they appear
|
@@ -6980,7 +7137,7 @@ Pry::Indent::SPACES = T.let(T.unsafe(nil), String)
|
|
6980
7137
|
# :reserved and :keywords are the CodeRay 0.9.8 and 1.0.0 respectively
|
6981
7138
|
# classifications of "super", "next", "return", etc.
|
6982
7139
|
#
|
6983
|
-
# source://pry//lib/pry/indent.rb#
|
7140
|
+
# source://pry//lib/pry/indent.rb#72
|
6984
7141
|
Pry::Indent::STATEMENT_END_TOKENS = T.let(T.unsafe(nil), Array)
|
6985
7142
|
|
6986
7143
|
# Raised if {#module_nesting} would not work.
|
@@ -6988,6 +7145,19 @@ Pry::Indent::STATEMENT_END_TOKENS = T.let(T.unsafe(nil), Array)
|
|
6988
7145
|
# source://pry//lib/pry/indent.rb#15
|
6989
7146
|
class Pry::Indent::UnparseableNestingError < ::StandardError; end
|
6990
7147
|
|
7148
|
+
# source://pry//lib/pry/input/simple_stdio.rb#4
|
7149
|
+
module Pry::Input; end
|
7150
|
+
|
7151
|
+
# Readline replacement for low-capability terminals.
|
7152
|
+
#
|
7153
|
+
# source://pry//lib/pry/input/simple_stdio.rb#6
|
7154
|
+
class Pry::Input::SimpleStdio
|
7155
|
+
class << self
|
7156
|
+
# source://pry//lib/pry/input/simple_stdio.rb#7
|
7157
|
+
def readline(prompt); end
|
7158
|
+
end
|
7159
|
+
end
|
7160
|
+
|
6991
7161
|
# source://pry//lib/pry/input_completer.rb#6
|
6992
7162
|
class Pry::InputCompleter
|
6993
7163
|
# @return [InputCompleter] a new instance of InputCompleter
|
@@ -6995,7 +7165,7 @@ class Pry::InputCompleter
|
|
6995
7165
|
# source://pry//lib/pry/input_completer.rb#42
|
6996
7166
|
def initialize(input, pry = T.unsafe(nil)); end
|
6997
7167
|
|
6998
|
-
# build_path
|
7168
|
+
# build_path separates the input into two parts: path and input.
|
6999
7169
|
# input is the partial string that should be completed
|
7000
7170
|
# path is a proc that takes an input and builds a full path.
|
7001
7171
|
#
|
@@ -7397,7 +7567,7 @@ class Pry::Method
|
|
7397
7567
|
# @param first_ln [String] The first line of a method definition.
|
7398
7568
|
# @return [String, nil]
|
7399
7569
|
#
|
7400
|
-
# source://pry//lib/pry/method.rb#
|
7570
|
+
# source://pry//lib/pry/method.rb#564
|
7401
7571
|
def method_name_from_first_line(first_ln); end
|
7402
7572
|
|
7403
7573
|
# @raise [CommandError] when the method can't be found or `pry-doc` isn't installed.
|
@@ -7417,7 +7587,7 @@ class Pry::Method
|
|
7417
7587
|
# @param ancestors [Class, Module] The ancestors to investigate
|
7418
7588
|
# @return [Method] The unwrapped super-method
|
7419
7589
|
#
|
7420
|
-
# source://pry//lib/pry/method.rb#
|
7590
|
+
# source://pry//lib/pry/method.rb#543
|
7421
7591
|
def super_using_ancestors(ancestors, times = T.unsafe(nil)); end
|
7422
7592
|
|
7423
7593
|
class << self
|
@@ -7681,7 +7851,7 @@ class Pry::Method::Patcher
|
|
7681
7851
|
#
|
7682
7852
|
# When we're redefining aliased methods we will overwrite the method at the
|
7683
7853
|
# unaliased name (so that super continues to work). By wrapping that code in a
|
7684
|
-
#
|
7854
|
+
# translation we make that not happen, which means that alias_method_chains, etc.
|
7685
7855
|
# continue to work.
|
7686
7856
|
#
|
7687
7857
|
# source://pry//lib/pry/method/patcher.rb#49
|
@@ -7714,7 +7884,7 @@ class Pry::Method::Patcher
|
|
7714
7884
|
# Update the source code so that when it has the right owner when eval'd.
|
7715
7885
|
#
|
7716
7886
|
# This (combined with definition_for_owner) is backup for the case that
|
7717
|
-
# wrap_for_nesting fails, to ensure that the method will
|
7887
|
+
# wrap_for_nesting fails, to ensure that the method will still be defined in
|
7718
7888
|
# the correct place.
|
7719
7889
|
#
|
7720
7890
|
# @param source [String] The source to wrap
|
@@ -7809,7 +7979,7 @@ class Pry::Method::WeirdMethodLocator
|
|
7809
7979
|
# know which __FILE__ and __LINE__ the binding is at, we can hope to
|
7810
7980
|
# disambiguate these cases.
|
7811
7981
|
#
|
7812
|
-
# This obviously won't work if the source is
|
7982
|
+
# This obviously won't work if the source is unavailable for some reason,
|
7813
7983
|
# or if both methods have the same __FILE__ and __LINE__.
|
7814
7984
|
#
|
7815
7985
|
# @return [Pry::Method, nil] The Pry::Method representing the
|
@@ -8403,12 +8573,17 @@ class Pry::REPL
|
|
8403
8573
|
# indicators in 99% of cases.
|
8404
8574
|
# @return [Integer]
|
8405
8575
|
#
|
8406
|
-
# source://pry//lib/pry/repl.rb#
|
8576
|
+
# source://pry//lib/pry/repl.rb#307
|
8407
8577
|
def calculate_overhang(current_prompt, original_val, indented_val); end
|
8408
8578
|
|
8409
8579
|
# @return [Boolean]
|
8410
8580
|
#
|
8411
|
-
# source://pry//lib/pry/repl.rb#
|
8581
|
+
# source://pry//lib/pry/repl.rb#287
|
8582
|
+
def complete_expression?(multiline_input); end
|
8583
|
+
|
8584
|
+
# @return [Boolean]
|
8585
|
+
#
|
8586
|
+
# source://pry//lib/pry/repl.rb#246
|
8412
8587
|
def coolline_available?; end
|
8413
8588
|
|
8414
8589
|
# Clean up after the repl session.
|
@@ -8426,9 +8601,17 @@ class Pry::REPL
|
|
8426
8601
|
# source://pry//lib/pry/repl.rb#127
|
8427
8602
|
def handle_read_errors; end
|
8428
8603
|
|
8429
|
-
#
|
8604
|
+
# @return [Boolean]
|
8605
|
+
#
|
8606
|
+
# source://pry//lib/pry/repl.rb#234
|
8607
|
+
def input_multiline?; end
|
8608
|
+
|
8609
|
+
# source://pry//lib/pry/repl.rb#228
|
8430
8610
|
def input_readline(*args); end
|
8431
8611
|
|
8612
|
+
# source://pry//lib/pry/repl.rb#219
|
8613
|
+
def input_readmultiline(*args); end
|
8614
|
+
|
8432
8615
|
# If `$stdout` is not a tty, it's probably a pipe.
|
8433
8616
|
#
|
8434
8617
|
# @example
|
@@ -8440,9 +8623,14 @@ class Pry::REPL
|
|
8440
8623
|
# % pry | tee log
|
8441
8624
|
# @return [Boolean]
|
8442
8625
|
#
|
8443
|
-
# source://pry//lib/pry/repl.rb#
|
8626
|
+
# source://pry//lib/pry/repl.rb#272
|
8444
8627
|
def piping?; end
|
8445
8628
|
|
8629
|
+
# @return [Boolean]
|
8630
|
+
#
|
8631
|
+
# source://pry//lib/pry/repl.rb#250
|
8632
|
+
def prism_available?; end
|
8633
|
+
|
8446
8634
|
# Set up the repl session.
|
8447
8635
|
#
|
8448
8636
|
# @return [void]
|
@@ -8465,14 +8653,19 @@ class Pry::REPL
|
|
8465
8653
|
# @param current_prompt [String] The prompt to use for input.
|
8466
8654
|
# @return [String?] The next line of input, or `nil` on <Ctrl-D>.
|
8467
8655
|
#
|
8468
|
-
# source://pry//lib/pry/repl.rb#
|
8656
|
+
# source://pry//lib/pry/repl.rb#169
|
8469
8657
|
def read_line(current_prompt); end
|
8470
8658
|
|
8471
8659
|
# @return [Boolean]
|
8472
8660
|
#
|
8473
|
-
# source://pry//lib/pry/repl.rb#
|
8661
|
+
# source://pry//lib/pry/repl.rb#242
|
8474
8662
|
def readline_available?; end
|
8475
8663
|
|
8664
|
+
# @return [Boolean]
|
8665
|
+
#
|
8666
|
+
# source://pry//lib/pry/repl.rb#238
|
8667
|
+
def reline_available?; end
|
8668
|
+
|
8476
8669
|
# The actual read-eval-print loop.
|
8477
8670
|
#
|
8478
8671
|
# The {REPL} instance is responsible for reading and looping, whereas the
|
@@ -8489,7 +8682,7 @@ class Pry::REPL
|
|
8489
8682
|
|
8490
8683
|
# @return [void]
|
8491
8684
|
#
|
8492
|
-
# source://pry//lib/pry/repl.rb#
|
8685
|
+
# source://pry//lib/pry/repl.rb#279
|
8493
8686
|
def set_readline_output; end
|
8494
8687
|
|
8495
8688
|
class << self
|
@@ -8504,6 +8697,9 @@ class Pry::REPL
|
|
8504
8697
|
end
|
8505
8698
|
end
|
8506
8699
|
|
8700
|
+
# source://pry//lib/pry/repl.rb#285
|
8701
|
+
Pry::REPL::UNEXPECTED_TOKENS = T.let(T.unsafe(nil), Array)
|
8702
|
+
|
8507
8703
|
# A class to manage the loading of files through the REPL loop.
|
8508
8704
|
# This is an interesting trick as it processes your file as if it
|
8509
8705
|
# was user input in an interactive session. As a result, all Pry
|
@@ -8596,7 +8792,7 @@ end
|
|
8596
8792
|
|
8597
8793
|
# A ring is a thread-safe fixed-capacity array to which you can only add
|
8598
8794
|
# elements. Older entries are overwritten as you add new elements, so that the
|
8599
|
-
# ring can never contain more than `max_size`
|
8795
|
+
# ring can never contain more than `max_size` elements.
|
8600
8796
|
#
|
8601
8797
|
# @api public
|
8602
8798
|
# @example
|
@@ -9106,7 +9302,7 @@ class Pry::Slop
|
|
9106
9302
|
# Build a Slop object from a option specification.
|
9107
9303
|
#
|
9108
9304
|
# This allows you to design your options via a simple String rather
|
9109
|
-
# than
|
9305
|
+
# than programmatically. Do note though that with this method, you're
|
9110
9306
|
# unable to pass any advanced options to the on() method when creating
|
9111
9307
|
# options.
|
9112
9308
|
#
|
@@ -9668,14 +9864,9 @@ class Pry::WrappedModule
|
|
9668
9864
|
# source://pry//lib/pry/wrapped_module.rb#239
|
9669
9865
|
def candidate(rank); end
|
9670
9866
|
|
9671
|
-
# @
|
9672
|
-
# away its ability to be quick (when there are lots of monkey patches,
|
9673
|
-
# like in Rails). However, it should be efficient enough on other rubies.
|
9674
|
-
# @return [Enumerator, Array] on JRuby 1.9 and higher returns Array, on
|
9675
|
-
# other rubies returns Enumerator
|
9676
|
-
# @see https://github.com/jruby/jruby/issues/525
|
9867
|
+
# @return [Array]
|
9677
9868
|
#
|
9678
|
-
# source://pry//lib/pry/wrapped_module.rb#
|
9869
|
+
# source://pry//lib/pry/wrapped_module.rb#250
|
9679
9870
|
def candidates; end
|
9680
9871
|
|
9681
9872
|
# Is this strictly a class?
|
@@ -9809,7 +10000,7 @@ class Pry::WrappedModule
|
|
9809
10000
|
# nth ancestor, otherwise (in the case of classes) return the
|
9810
10001
|
# nth ancestor that is a class.
|
9811
10002
|
#
|
9812
|
-
# source://pry//lib/pry/wrapped_module.rb#
|
10003
|
+
# source://pry//lib/pry/wrapped_module.rb#270
|
9813
10004
|
def super(times = T.unsafe(nil)); end
|
9814
10005
|
|
9815
10006
|
# Returns the value of attribute wrapped.
|
@@ -9824,7 +10015,7 @@ class Pry::WrappedModule
|
|
9824
10015
|
|
9825
10016
|
# @return [Boolean] Whether YARD docs are available for this module.
|
9826
10017
|
#
|
9827
|
-
# source://pry//lib/pry/wrapped_module.rb#
|
10018
|
+
# source://pry//lib/pry/wrapped_module.rb#260
|
9828
10019
|
def yard_docs?; end
|
9829
10020
|
|
9830
10021
|
# @return [String] Return the associated file for the
|
@@ -9846,7 +10037,7 @@ class Pry::WrappedModule
|
|
9846
10037
|
#
|
9847
10038
|
# @return [Array<Pry::Method>]
|
9848
10039
|
#
|
9849
|
-
# source://pry//lib/pry/wrapped_module.rb#
|
10040
|
+
# source://pry//lib/pry/wrapped_module.rb#347
|
9850
10041
|
def all_methods_for(mod); end
|
9851
10042
|
|
9852
10043
|
# We only want methods that have a non-nil `source_location`. We also
|
@@ -9854,17 +10045,17 @@ class Pry::WrappedModule
|
|
9854
10045
|
#
|
9855
10046
|
# @return [Array<Pry::Method>]
|
9856
10047
|
#
|
9857
|
-
# source://pry//lib/pry/wrapped_module.rb#
|
10048
|
+
# source://pry//lib/pry/wrapped_module.rb#329
|
9858
10049
|
def all_relevant_methods_for(mod); end
|
9859
10050
|
|
9860
10051
|
# A helper method.
|
9861
10052
|
#
|
9862
|
-
# source://pry//lib/pry/wrapped_module.rb#
|
10053
|
+
# source://pry//lib/pry/wrapped_module.rb#310
|
9863
10054
|
def all_source_locations_by_popularity; end
|
9864
10055
|
|
9865
10056
|
# memoized lines for file
|
9866
10057
|
#
|
9867
|
-
# source://pry//lib/pry/wrapped_module.rb#
|
10058
|
+
# source://pry//lib/pry/wrapped_module.rb#371
|
9868
10059
|
def lines_for_file(file); end
|
9869
10060
|
|
9870
10061
|
# @return [Array<Array<Pry::Method>>] The array of `Pry::Method` objects,
|
@@ -9874,7 +10065,7 @@ class Pry::WrappedModule
|
|
9874
10065
|
# the last method defined for that candidate and it is used to
|
9875
10066
|
# speed up source code extraction.
|
9876
10067
|
#
|
9877
|
-
# source://pry//lib/pry/wrapped_module.rb#
|
10068
|
+
# source://pry//lib/pry/wrapped_module.rb#302
|
9878
10069
|
def method_candidates; end
|
9879
10070
|
|
9880
10071
|
# Detect methods that are defined with `def_delegator` from the Forwardable
|
@@ -9885,23 +10076,23 @@ class Pry::WrappedModule
|
|
9885
10076
|
#
|
9886
10077
|
# @return [Boolean]
|
9887
10078
|
#
|
9888
|
-
# source://pry//lib/pry/wrapped_module.rb#
|
10079
|
+
# source://pry//lib/pry/wrapped_module.rb#366
|
9889
10080
|
def method_defined_by_forwardable_module?(method); end
|
9890
10081
|
|
9891
10082
|
# @return [Boolean]
|
9892
10083
|
#
|
9893
|
-
# source://pry//lib/pry/wrapped_module.rb#
|
10084
|
+
# source://pry//lib/pry/wrapped_module.rb#351
|
9894
10085
|
def nested_module?(parent, name); end
|
9895
10086
|
|
9896
10087
|
# @return [Pry::WrappedModule::Candidate] The candidate with the
|
9897
10088
|
# highest rank, that is the 'monkey patch' of this module with the
|
9898
10089
|
# highest number of methods, which contains a source code line that
|
9899
10090
|
# defines the module. It is considered the 'canonical' definition
|
9900
|
-
# for the module. In the
|
10091
|
+
# for the module. In the absence of a suitable candidate, the
|
9901
10092
|
# candidate of rank 0 will be returned, or a CommandError raised if
|
9902
10093
|
# there are no candidates at all.
|
9903
10094
|
#
|
9904
|
-
# source://pry//lib/pry/wrapped_module.rb#
|
10095
|
+
# source://pry//lib/pry/wrapped_module.rb#292
|
9905
10096
|
def primary_candidate; end
|
9906
10097
|
|
9907
10098
|
# @return [Boolean]
|
@@ -10018,9 +10209,6 @@ class Pry::WrappedModule::Candidate
|
|
10018
10209
|
|
10019
10210
|
private
|
10020
10211
|
|
10021
|
-
# source://pry//lib/pry/wrapped_module/candidate.rb#104
|
10022
|
-
def class_regexes; end
|
10023
|
-
|
10024
10212
|
# Locate the first line of the module definition.
|
10025
10213
|
#
|
10026
10214
|
# @param file [String] The file that contains the module
|
@@ -10039,13 +10227,13 @@ class Pry::WrappedModule::Candidate
|
|
10039
10227
|
# @return [Array] The source location of the base method used to
|
10040
10228
|
# calculate the source location of the candidate.
|
10041
10229
|
#
|
10042
|
-
# source://pry//lib/pry/wrapped_module/candidate.rb#
|
10230
|
+
# source://pry//lib/pry/wrapped_module/candidate.rb#116
|
10043
10231
|
def first_method_source_location; end
|
10044
10232
|
|
10045
10233
|
# @return [Array] The source location of the last method in this
|
10046
10234
|
# candidate's module definition.
|
10047
10235
|
#
|
10048
|
-
# source://pry//lib/pry/wrapped_module/candidate.rb#
|
10236
|
+
# source://pry//lib/pry/wrapped_module/candidate.rb#122
|
10049
10237
|
def last_method_source_location; end
|
10050
10238
|
|
10051
10239
|
# source://pry//lib/pry/forwardable.rb#18
|
@@ -10054,6 +10242,11 @@ class Pry::WrappedModule::Candidate
|
|
10054
10242
|
# source://pry//lib/pry/forwardable.rb#18
|
10055
10243
|
def method_candidates(*a, &b); end
|
10056
10244
|
|
10245
|
+
# @return [Boolean]
|
10246
|
+
#
|
10247
|
+
# source://pry//lib/pry/wrapped_module/candidate.rb#104
|
10248
|
+
def module_definition_first_line?(line); end
|
10249
|
+
|
10057
10250
|
# source://pry//lib/pry/forwardable.rb#18
|
10058
10251
|
def name(*a, &b); end
|
10059
10252
|
|
@@ -10064,7 +10257,7 @@ class Pry::WrappedModule::Candidate
|
|
10064
10257
|
#
|
10065
10258
|
# @return [Integer] number of lines.
|
10066
10259
|
#
|
10067
|
-
# source://pry//lib/pry/wrapped_module/candidate.rb#
|
10260
|
+
# source://pry//lib/pry/wrapped_module/candidate.rb#132
|
10068
10261
|
def number_of_lines_in_first_chunk; end
|
10069
10262
|
|
10070
10263
|
# source://pry//lib/pry/forwardable.rb#18
|