sorbet-struct-comparable 1.1.0 → 1.2.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.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +47 -52
  3. data/.gitignore +3 -0
  4. data/CHANGELOG.md +4 -0
  5. data/Gemfile +3 -8
  6. data/lib/sorbet-struct-comparable/version.rb +1 -1
  7. data/lib/t/struct/acts_as_comparable.rb +5 -0
  8. data/nix/sources.json +14 -0
  9. data/nix/sources.nix +174 -0
  10. data/run_ci.sh +6 -0
  11. data/shell.nix +20 -0
  12. data/sorbet/config +2 -0
  13. data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
  14. data/sorbet/rbi/gems/byebug@11.1.3.rbi +1568 -0
  15. data/sorbet/rbi/gems/coderay@1.1.3.rbi +1005 -0
  16. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +8 -0
  17. data/sorbet/rbi/gems/docile@1.4.0.rbi +54 -0
  18. data/sorbet/rbi/gems/method_source@1.0.0.rbi +72 -0
  19. data/sorbet/rbi/gems/parser@3.0.2.0.rbi +1188 -0
  20. data/sorbet/rbi/gems/pry-byebug@3.9.0.rbi +461 -0
  21. data/sorbet/rbi/gems/{pry.rbi → pry@0.13.1.rbi} +2308 -1706
  22. data/sorbet/rbi/{sorbet-typed/lib/rake/all/rake.rbi → gems/rake@13.0.6.rbi} +580 -430
  23. data/sorbet/rbi/gems/rbi@0.0.6.rbi +1405 -0
  24. data/sorbet/rbi/gems/{rspec-core.rbi → rspec-core@3.10.1.rbi} +2303 -1735
  25. data/sorbet/rbi/gems/{rspec-expectations.rbi → rspec-expectations@3.10.1.rbi} +1133 -707
  26. data/sorbet/rbi/gems/{rspec-mocks.rbi → rspec-mocks@3.10.2.rbi} +1299 -937
  27. data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +509 -0
  28. data/sorbet/rbi/gems/rspec@3.10.0.rbi +38 -0
  29. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
  30. data/sorbet/rbi/gems/{simplecov.rbi → simplecov@0.21.2.rbi} +451 -293
  31. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +8 -0
  32. data/sorbet/rbi/gems/spoom@1.1.5.rbi +1241 -0
  33. data/sorbet/rbi/gems/tapioca@0.5.2.rbi +949 -0
  34. data/sorbet/rbi/gems/thor@1.1.0.rbi +839 -0
  35. data/sorbet/rbi/gems/unparser@0.6.0.rbi +8 -0
  36. metadata +34 -29
  37. data/.ruby-version +0 -1
  38. data/sorbet/rbi/gems/byebug.rbi +0 -1041
  39. data/sorbet/rbi/gems/coderay.rbi +0 -92
  40. data/sorbet/rbi/gems/docile.rbi +0 -36
  41. data/sorbet/rbi/gems/listen.rbi +0 -301
  42. data/sorbet/rbi/gems/method_source.rbi +0 -64
  43. data/sorbet/rbi/gems/pry-byebug.rbi +0 -155
  44. data/sorbet/rbi/gems/rake.rbi +0 -642
  45. data/sorbet/rbi/gems/rspec-support.rbi +0 -280
  46. data/sorbet/rbi/gems/rspec.rbi +0 -15
  47. data/sorbet/rbi/gems/simplecov-html.rbi +0 -35
  48. data/sorbet/rbi/gems/simplecov_json_formatter.rbi +0 -45
  49. data/sorbet/rbi/hidden-definitions/errors.txt +0 -2742
  50. data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -6540
  51. data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +0 -1891
  52. data/sorbet/rbi/todo.rbi +0 -6
@@ -1,20 +1,33 @@
1
- # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
- # srb rbi gems
1
+ # DO NOT EDIT MANUALLY
2
+ # This is an autogenerated file for types exported from the `pry` gem.
3
+ # Please instead update this file by running `bin/tapioca gem pry`.
3
4
 
4
5
  # typed: true
5
- #
6
- # If you would like to make changes to this file, great! Please create the gem's shim here:
7
- #
8
- # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/pry/all/pry.rbi
9
- #
10
- # pry-0.13.1
6
+
7
+ class BasicObject
8
+ def __binding__; end
9
+ end
10
+
11
+ class Object < ::BasicObject
12
+ include ::Kernel
13
+ include ::JSON::Ext::Generator::GeneratorMethods::Object
14
+ include ::PP::ObjectMixin
15
+
16
+ def __binding__; end
17
+ def pry(object = T.unsafe(nil), hash = T.unsafe(nil)); end
18
+ end
11
19
 
12
20
  class Pry
21
+ extend ::Forwardable
22
+ extend ::Pry::Forwardable
23
+
24
+ def initialize(options = T.unsafe(nil)); end
25
+
13
26
  def add_sticky_local(name, &block); end
14
27
  def backtrace; end
15
- def backtrace=(arg0); end
28
+ def backtrace=(_arg0); end
16
29
  def binding_stack; end
17
- def binding_stack=(arg0); end
30
+ def binding_stack=(_arg0); end
18
31
  def color(*args, &block); end
19
32
  def color=(*args, &block); end
20
33
  def commands(*args, &block); end
@@ -24,13 +37,12 @@ class Pry
24
37
  def current_binding; end
25
38
  def current_context; end
26
39
  def custom_completions; end
27
- def custom_completions=(arg0); end
40
+ def custom_completions=(_arg0); end
28
41
  def editor(*args, &block); end
29
42
  def editor=(*args, &block); end
30
- def ensure_correct_encoding!(val); end
31
- def eval(line, options = nil); end
43
+ def eval(line, options = T.unsafe(nil)); end
32
44
  def eval_string; end
33
- def eval_string=(arg0); end
45
+ def eval_string=(_arg0); end
34
46
  def evaluate_ruby(code); end
35
47
  def exception_handler(*args, &block); end
36
48
  def exception_handler=(*args, &block); end
@@ -38,24 +50,21 @@ class Pry
38
50
  def exit_value; end
39
51
  def extra_sticky_locals(*args, &block); end
40
52
  def extra_sticky_locals=(*args, &block); end
41
- def generate_prompt(prompt_proc, conf); end
42
- def handle_line(line, options); end
43
53
  def hooks(*args, &block); end
44
54
  def hooks=(*args, &block); end
45
- def initialize(options = nil); end
46
55
  def inject_local(name, value, binding); end
47
56
  def inject_sticky_locals!; end
48
57
  def input(*args, &block); end
49
58
  def input=(*args, &block); end
50
59
  def input_ring; end
51
60
  def last_dir; end
52
- def last_dir=(arg0); end
61
+ def last_dir=(_arg0); end
53
62
  def last_exception; end
54
63
  def last_exception=(exception); end
55
64
  def last_file; end
56
- def last_file=(arg0); end
65
+ def last_file=(_arg0); end
57
66
  def last_result; end
58
- def last_result=(arg0); end
67
+ def last_result=(_arg0); end
59
68
  def last_result_is_exception?; end
60
69
  def memory_size; end
61
70
  def memory_size=(size); end
@@ -71,1879 +80,2472 @@ class Pry
71
80
  def process_command_safely(val); end
72
81
  def prompt; end
73
82
  def prompt=(new_prompt); end
74
- def prompt_stack; end
75
83
  def push_binding(object); end
76
- def push_initial_binding(target = nil); end
84
+ def push_initial_binding(target = T.unsafe(nil)); end
77
85
  def push_prompt(new_prompt); end
78
86
  def quiet?; end
79
- def raise_up!(*args); end
80
87
  def raise_up(*args); end
88
+ def raise_up!(*args); end
81
89
  def raise_up_common(force, *args); end
82
- def repl(target = nil); end
90
+ def repl(target = T.unsafe(nil)); end
83
91
  def reset_eval_string; end
84
92
  def run_command(val); end
85
93
  def select_prompt; end
86
- def self.Code(obj); end
87
- def self.Method(obj); end
88
- def self.WrappedModule(obj); end
89
- def self.auto_resize!; end
90
- def self.binding_for(target); end
91
- def self.cli; end
92
- def self.cli=(arg0); end
93
- def self.color(*args, &block); end
94
- def self.color=(*args, &block); end
95
- def self.commands(*args, &block); end
96
- def self.commands=(*args, &block); end
97
- def self.config; end
98
- def self.config=(arg0); end
99
- def self.configure; end
100
- def self.critical_section; end
101
- def self.current; end
102
- def self.current_line; end
103
- def self.current_line=(arg0); end
104
- def self.custom_completions; end
105
- def self.custom_completions=(arg0); end
106
- def self.editor(*args, &block); end
107
- def self.editor=(*args, &block); end
108
- def self.eval_path; end
109
- def self.eval_path=(arg0); end
110
- def self.exception_handler(*args, &block); end
111
- def self.exception_handler=(*args, &block); end
112
- def self.extra_sticky_locals(*args, &block); end
113
- def self.extra_sticky_locals=(*args, &block); end
114
- def self.final_session_setup; end
115
- def self.history(*args, &block); end
116
- def self.history=(*args, &block); end
117
- def self.hooks(*args, &block); end
118
- def self.hooks=(*args, &block); end
119
- def self.in_critical_section?; end
120
- def self.init; end
121
- def self.initial_session?; end
122
- def self.initial_session_setup; end
123
- def self.input(*args, &block); end
124
- def self.input=(*args, &block); end
125
- def self.last_internal_error; end
126
- def self.last_internal_error=(arg0); end
127
- def self.line_buffer; end
128
- def self.line_buffer=(arg0); end
129
- def self.load_file_at_toplevel(file); end
130
- def self.load_file_through_repl(file_name); end
131
- def self.load_history; end
132
- def self.load_plugins(*args, &block); end
133
- def self.load_rc_files; end
134
- def self.load_requires; end
135
- def self.load_traps; end
136
- def self.load_win32console; end
137
- def self.locate_plugins(*args, &block); end
138
- def self.main; end
139
- def self.memory_size(*args, &block); end
140
- def self.memory_size=(*args, &block); end
141
- def self.output(*args, &block); end
142
- def self.output=(*args, &block); end
143
- def self.pager(*args, &block); end
144
- def self.pager=(*args, &block); end
145
- def self.plugins(*args, &block); end
146
- def self.print(*args, &block); end
147
- def self.print=(*args, &block); end
148
- def self.prompt(*args, &block); end
149
- def self.prompt=(*args, &block); end
150
- def self.quiet; end
151
- def self.quiet=(arg0); end
152
- def self.rc_files_to_load; end
153
- def self.real_path_to(file); end
154
- def self.reset_defaults; end
155
- def self.run_command(command_string, options = nil); end
156
- def self.start(target = nil, options = nil); end
157
- def self.toplevel_binding; end
158
- def self.toplevel_binding=(arg0); end
159
- def self.view_clip(obj, options = nil); end
160
- def set_last_result(result, code = nil); end
94
+ def set_last_result(result, code = T.unsafe(nil)); end
161
95
  def should_print?; end
162
96
  def show_result(result); end
163
97
  def sticky_locals; end
164
98
  def suppress_output; end
165
- def suppress_output=(arg0); end
99
+ def suppress_output=(_arg0); end
166
100
  def update_input_history(code); end
167
- extend Pry::Forwardable
101
+
102
+ private
103
+
104
+ def ensure_correct_encoding!(val); end
105
+ def generate_prompt(prompt_proc, conf); end
106
+ def handle_line(line, options); end
107
+ def prompt_stack; end
108
+
109
+ class << self
110
+ def Code(obj); end
111
+ def Method(obj); end
112
+ def WrappedModule(obj); end
113
+ def auto_resize!; end
114
+ def binding_for(target); end
115
+ def cli; end
116
+ def cli=(_arg0); end
117
+ def color(*args, &block); end
118
+ def color=(*args, &block); end
119
+ def commands(*args, &block); end
120
+ def commands=(*args, &block); end
121
+ def config; end
122
+ def config=(_arg0); end
123
+ def configure; end
124
+ def critical_section; end
125
+ def current; end
126
+ def current_line; end
127
+ def current_line=(_arg0); end
128
+ def custom_completions; end
129
+ def custom_completions=(_arg0); end
130
+ def editor(*args, &block); end
131
+ def editor=(*args, &block); end
132
+ def eval_path; end
133
+ def eval_path=(_arg0); end
134
+ def exception_handler(*args, &block); end
135
+ def exception_handler=(*args, &block); end
136
+ def extra_sticky_locals(*args, &block); end
137
+ def extra_sticky_locals=(*args, &block); end
138
+ def final_session_setup; end
139
+ def history(*args, &block); end
140
+ def history=(*args, &block); end
141
+ def hooks(*args, &block); end
142
+ def hooks=(*args, &block); end
143
+ def in_critical_section?; end
144
+ def init; end
145
+ def initial_session?; end
146
+ def initial_session_setup; end
147
+ def input(*args, &block); end
148
+ def input=(*args, &block); end
149
+ def last_internal_error; end
150
+ def last_internal_error=(_arg0); end
151
+ def line_buffer; end
152
+ def line_buffer=(_arg0); end
153
+ def load_file_at_toplevel(file); end
154
+ def load_file_through_repl(file_name); end
155
+ def load_history; end
156
+ def load_plugins(*args, &block); end
157
+ def load_rc_files; end
158
+ def load_requires; end
159
+ def load_traps; end
160
+ def load_win32console; end
161
+ def locate_plugins(*args, &block); end
162
+ def main; end
163
+ def memory_size(*args, &block); end
164
+ def memory_size=(*args, &block); end
165
+ def output(*args, &block); end
166
+ def output=(*args, &block); end
167
+ def pager(*args, &block); end
168
+ def pager=(*args, &block); end
169
+ def plugins(*args, &block); end
170
+ def print(*args, &block); end
171
+ def print=(*args, &block); end
172
+ def prompt(*args, &block); end
173
+ def prompt=(*args, &block); end
174
+ def quiet; end
175
+ def quiet=(_arg0); end
176
+ def rc_files_to_load; end
177
+ def real_path_to(file); end
178
+ def reset_defaults; end
179
+ def run_command(command_string, options = T.unsafe(nil)); end
180
+ def start(target = T.unsafe(nil), options = T.unsafe(nil)); end
181
+ def start_with_pry_byebug(target = T.unsafe(nil), options = T.unsafe(nil)); end
182
+ def start_without_pry_byebug(target = T.unsafe(nil), options = T.unsafe(nil)); end
183
+ def toplevel_binding; end
184
+ def toplevel_binding=(_arg0); end
185
+ def view_clip(obj, options = T.unsafe(nil)); end
186
+ end
168
187
  end
169
- class Pry::LastException < BasicObject
170
- def bt_index; end
171
- def bt_index=(arg0); end
172
- def bt_source_location_for(index); end
173
- def file; end
174
- def inc_bt_index; end
175
- def initialize(exception); end
188
+
189
+ Pry::BINDING_METHOD_IMPL = T.let(T.unsafe(nil), Array)
190
+
191
+ class Pry::BasicObject < ::BasicObject
192
+ include ::Kernel
193
+ end
194
+
195
+ Pry::BasicObject::Dir = Dir
196
+ Pry::BasicObject::ENV = T.let(T.unsafe(nil), Object)
197
+ Pry::BasicObject::File = File
198
+ Pry::BasicObject::Kernel = Kernel
199
+ Pry::BasicObject::LoadError = LoadError
200
+ Pry::BasicObject::Pry = Pry
201
+
202
+ class Pry::BlockCommand < ::Pry::Command
203
+ def call(*args); end
204
+ def help; end
205
+ end
206
+
207
+ class Pry::CLI
208
+ class << self
209
+ def add_option_processor(&block); end
210
+ def add_options(&block); end
211
+ def add_plugin_options; end
212
+ def input_args; end
213
+ def input_args=(_arg0); end
214
+ def option_processors; end
215
+ def option_processors=(_arg0); end
216
+ def options; end
217
+ def options=(_arg0); end
218
+ def parse_options(args = T.unsafe(nil)); end
219
+ def reset; end
220
+ def start(opts); end
221
+ end
222
+ end
223
+
224
+ class Pry::CLI::NoOptionsError < ::StandardError; end
225
+
226
+ class Pry::ClassCommand < ::Pry::Command
227
+ def args; end
228
+ def args=(_arg0); end
229
+ def call(*args); end
230
+ def complete(search); end
231
+ def help; end
232
+ def options(opt); end
233
+ def opts; end
234
+ def opts=(_arg0); end
235
+ def process; end
236
+ def setup; end
237
+ def slop; end
238
+ def subcommands(cmd); end
239
+
240
+ class << self
241
+ def doc; end
242
+ def file; end
243
+ def inherited(klass); end
244
+ def line; end
245
+ def source; end
246
+ def source_file; end
247
+ def source_line; end
248
+ def source_location; end
249
+
250
+ private
251
+
252
+ def source_object; end
253
+ end
254
+ end
255
+
256
+ class Pry::Code
257
+ extend ::MethodSource::CodeHelpers
258
+
259
+ def initialize(lines = T.unsafe(nil), start_line = T.unsafe(nil), code_type = T.unsafe(nil)); end
260
+
261
+ def <<(line); end
262
+ def ==(other); end
263
+ def after(lineno, lines = T.unsafe(nil)); end
264
+ def around(lineno, lines = T.unsafe(nil)); end
265
+ def before(lineno, lines = T.unsafe(nil)); end
266
+ def between(start_line, end_line = T.unsafe(nil)); end
267
+ def code_type; end
268
+ def code_type=(_arg0); end
269
+ def comment_describing(line_number); end
270
+ def expression_at(line_number, consume = T.unsafe(nil)); end
271
+ def grep(pattern); end
272
+ def highlighted; end
273
+ def length; end
274
+ def max_lineno_width; end
275
+ def method_missing(method_name, *args, &block); end
276
+ def nesting_at(line_number); end
277
+ def print_to_output(output, color = T.unsafe(nil)); end
278
+ def push(line); end
279
+ def raw; end
280
+ def reject(&block); end
281
+ def select(&block); end
282
+ def take_lines(start_line, num_lines); end
283
+ def to_s; end
284
+ def with_indentation(spaces = T.unsafe(nil)); end
285
+ def with_line_numbers(y_n = T.unsafe(nil)); end
286
+ def with_marker(lineno = T.unsafe(nil)); end
287
+
288
+ protected
289
+
290
+ def alter(&block); end
291
+
292
+ private
293
+
294
+ def respond_to_missing?(method_name, include_private = T.unsafe(nil)); end
295
+
296
+ class << self
297
+ def from_file(filename, code_type = T.unsafe(nil)); end
298
+ def from_method(meth, start_line = T.unsafe(nil)); end
299
+ def from_module(mod, candidate_rank = T.unsafe(nil), start_line = T.unsafe(nil)); end
300
+ end
301
+ end
302
+
303
+ class Pry::Code::CodeRange
304
+ def initialize(start_line, end_line = T.unsafe(nil)); end
305
+
306
+ def indices_range(lines); end
307
+
308
+ private
309
+
310
+ def end_line; end
311
+ def find_end_index(lines); end
312
+ def find_start_index(lines); end
313
+ def force_set_end_line; end
314
+ def indices(lines); end
315
+ def set_end_line_from_range; end
316
+ def start_line; end
317
+ end
318
+
319
+ class Pry::Code::LOC
320
+ def initialize(line, lineno); end
321
+
322
+ def ==(other); end
323
+ def add_line_number(max_width = T.unsafe(nil), color = T.unsafe(nil)); end
324
+ def add_marker(marker_lineno); end
325
+ def colorize(code_type); end
326
+ def dup; end
327
+ def handle_multiline_entries_from_edit_command(line, max_width); end
328
+ def indent(distance); end
176
329
  def line; end
177
- def method_missing(name, *args, &block); end
178
- def respond_to_missing?(name, include_all = nil); end
179
- def wrapped_exception; end
330
+ def lineno; end
331
+ def tuple; end
180
332
  end
181
- module Pry::Forwardable
182
- def def_private_delegators(target, *private_delegates); end
183
- include Forwardable
333
+
334
+ class Pry::CodeFile
335
+ def initialize(filename, code_type = T.unsafe(nil)); end
336
+
337
+ def code; end
338
+ def code_type; end
339
+
340
+ private
341
+
342
+ def abs_path; end
343
+ def code_path; end
344
+ def from_load_path; end
345
+ def from_pry_init_pwd; end
346
+ def from_pwd; end
347
+ def readable?(path); end
348
+ def type_from_filename(filename, default = T.unsafe(nil)); end
184
349
  end
185
- module Pry::Helpers
186
- def self.tablify(things, line_length, pry_instance = nil); end
187
- def self.tablify_or_one_line(heading, things, pry_instance = nil); end
188
- def self.tablify_to_screen_width(things, options, pry_instance = nil); end
350
+
351
+ Pry::CodeFile::DEFAULT_EXT = T.let(T.unsafe(nil), String)
352
+ Pry::CodeFile::EXTENSIONS = T.let(T.unsafe(nil), Hash)
353
+ Pry::CodeFile::FILES = T.let(T.unsafe(nil), Hash)
354
+ Pry::CodeFile::INITIAL_PWD = T.let(T.unsafe(nil), String)
355
+
356
+ class Pry::CodeObject
357
+ include ::Pry::Helpers::OptionsHelpers
358
+ include ::Pry::Helpers::CommandHelpers
359
+
360
+ def initialize(str, pry_instance, options = T.unsafe(nil)); end
361
+
362
+ def command_lookup; end
363
+ def default_lookup; end
364
+ def empty_lookup; end
365
+ def method_or_class_lookup; end
366
+ def pry_instance; end
367
+ def pry_instance=(_arg0); end
368
+ def str; end
369
+ def str=(_arg0); end
370
+ def super_level; end
371
+ def super_level=(_arg0); end
372
+ def target; end
373
+ def target=(_arg0); end
374
+
375
+ private
376
+
377
+ def looks_like_an_instance_method?(str); end
378
+ def lookup_super(obj, super_level); end
379
+ def safe_to_evaluate?(str); end
380
+ def sourcable_object?(obj); end
381
+ def target_self; end
382
+
383
+ class << self
384
+ def lookup(str, pry_instance, options = T.unsafe(nil)); end
385
+ end
189
386
  end
190
- module Pry::Helpers::BaseHelpers
191
- def colorize_code(code); end
192
- def find_command(name, set = nil); end
193
- def heading(text); end
194
- def highlight(string, regexp, highlight_color = nil); end
195
- def not_a_real_file?(file); end
196
- def safe_send(obj, method, *args, &block); end
197
- def silence_warnings; end
198
- def stagger_output(text, _out = nil); end
199
- def use_ansi_codes?; end
200
- extend Pry::Helpers::BaseHelpers
387
+
388
+ module Pry::CodeObject::Helpers
389
+ def c_method?; end
390
+ def c_module?; end
391
+ def command?; end
392
+ def module_with_yard_docs?; end
393
+ def real_method_object?; end
201
394
  end
202
- module Pry::Helpers::DocumentationHelpers
203
- def get_comment_content(comment); end
204
- def process_comment_markup(comment); end
205
- def process_rdoc(comment); end
206
- def process_yardoc(comment); end
207
- def process_yardoc_tag(comment, tag); end
208
- def self.get_comment_content(comment); end
209
- def self.process_comment_markup(comment); end
210
- def self.process_rdoc(comment); end
211
- def self.process_yardoc(comment); end
212
- def self.process_yardoc_tag(comment, tag); end
213
- def self.strip_comments_from_c_code(code); end
214
- def self.strip_leading_whitespace(text); end
215
- def strip_comments_from_c_code(code); end
216
- def strip_leading_whitespace(text); end
395
+
396
+ class Pry::ColorPrinter < ::PP
397
+ def pp(object); end
398
+ def text(str, max_width = T.unsafe(nil)); end
399
+
400
+ private
401
+
402
+ def highlight_object_literal(object_literal); end
403
+ def inspect_object(object); end
404
+
405
+ class << self
406
+ def default(_output, value, pry_instance); end
407
+ def pp(obj, output = T.unsafe(nil), max_width = T.unsafe(nil)); end
408
+ end
217
409
  end
218
- module Pry::Helpers::OptionsHelpers
219
- def method_object; end
220
- def method_options(opt); end
221
- def self.method_object; end
222
- def self.method_options(opt); end
410
+
411
+ class Pry::Command
412
+ include ::Pry::Helpers::BaseHelpers
413
+ include ::Pry::Helpers::OptionsHelpers
414
+ include ::Pry::Helpers::CommandHelpers
415
+ include ::Pry::Helpers::Text
416
+ extend ::Pry::Helpers::DocumentationHelpers
417
+ extend ::Pry::CodeObject::Helpers
418
+
419
+ def initialize(context = T.unsafe(nil)); end
420
+
421
+ def _pry_; end
422
+ def _pry_=(_arg0); end
423
+ def arg_string; end
424
+ def arg_string=(_arg0); end
425
+ def block; end
426
+ def captures; end
427
+ def captures=(_arg0); end
428
+ def check_for_command_collision(command_match, arg_string); end
429
+ def command_block; end
430
+ def command_block=(_arg0); end
431
+ def command_name; end
432
+ def command_options; end
433
+ def command_set; end
434
+ def command_set=(_arg0); end
435
+ def commands; end
436
+ def complete(_search); end
437
+ def context; end
438
+ def context=(_arg0); end
439
+ def description; end
440
+ def eval_string; end
441
+ def eval_string=(_arg0); end
442
+ def hooks; end
443
+ def hooks=(_arg0); end
444
+ def interpolate_string(str); end
445
+ def match; end
446
+ def name; end
447
+ def output; end
448
+ def output=(_arg0); end
449
+ def process_line(line); end
450
+ def pry_instance; end
451
+ def pry_instance=(_arg0); end
452
+ def run(command_string, *args); end
453
+ def source; end
454
+ def state; end
455
+ def target; end
456
+ def target=(_arg0); end
457
+ def target_self; end
458
+ def tokenize(val); end
459
+ def void; end
460
+
461
+ private
462
+
463
+ def after_hooks; end
464
+ def before_hooks; end
465
+ def call_safely(*args); end
466
+ def call_with_hooks(*args); end
467
+ def find_hooks(event); end
468
+ def normalize_method_args(method, args); end
469
+ def pass_block(arg_string); end
470
+ def use_unpatched_symbol; end
471
+
472
+ class << self
473
+ def banner(arg = T.unsafe(nil)); end
474
+ def block; end
475
+ def block=(_arg0); end
476
+ def command_name; end
477
+ def command_options(arg = T.unsafe(nil)); end
478
+ def command_options=(_arg0); end
479
+ def command_regex; end
480
+ def convert_to_regex(obj); end
481
+ def default_options(match); end
482
+ def description(arg = T.unsafe(nil)); end
483
+ def description=(_arg0); end
484
+ def doc; end
485
+ def file; end
486
+ def group(name = T.unsafe(nil)); end
487
+ def inspect; end
488
+ def line; end
489
+ def match(arg = T.unsafe(nil)); end
490
+ def match=(_arg0); end
491
+ def match_score(val); end
492
+ def matches?(val); end
493
+ def name; end
494
+ def options(arg = T.unsafe(nil)); end
495
+ def options=(_arg0); end
496
+ def source; end
497
+ def source_file; end
498
+ def source_line; end
499
+ def state; end
500
+ def subclass(match, description, options, helpers, &block); end
501
+ end
223
502
  end
224
- module Pry::Helpers::CommandHelpers
225
- def absolute_index_number(line_number, array_length); end
226
- def absolute_index_range(range_or_number, array_length); end
227
- def get_method_or_raise(method_name, context, opts = nil); end
228
- def internal_binding?(context); end
229
- def one_index_number(line_number); end
230
- def one_index_range(range); end
231
- def one_index_range_or_number(range_or_number); end
232
- def restrict_to_lines(content, lines); end
233
- def set_file_and_dir_locals(file_name, pry = nil, ctx = nil); end
234
- def temp_file(ext = nil); end
235
- def unindent(dirty_text, left_padding = nil); end
236
- extend Pry::Helpers::CommandHelpers
237
- include Pry::Helpers::OptionsHelpers
503
+
504
+ class Pry::Command::AmendLine < ::Pry::ClassCommand
505
+ def process; end
506
+
507
+ private
508
+
509
+ def amend_input; end
510
+ def delete_from_array(array, range); end
511
+ def insert_into_array(array, range); end
512
+ def line_count; end
513
+ def line_range; end
514
+ def replace_in_array(array, range); end
515
+ def start_and_end_line_number; end
516
+ def zero_indexed_range_from_one_indexed_numbers(start_line_number, end_line_number); end
238
517
  end
239
- module Pry::Helpers::Text
240
- def black(text); end
241
- def black_on_black(text); end
242
- def black_on_blue(text); end
243
- def black_on_cyan(text); end
244
- def black_on_green(text); end
245
- def black_on_magenta(text); end
246
- def black_on_purple(text); end
247
- def black_on_red(text); end
248
- def black_on_white(text); end
249
- def black_on_yellow(text); end
250
- def blue(text); end
251
- def blue_on_black(text); end
252
- def blue_on_blue(text); end
253
- def blue_on_cyan(text); end
254
- def blue_on_green(text); end
255
- def blue_on_magenta(text); end
256
- def blue_on_purple(text); end
257
- def blue_on_red(text); end
258
- def blue_on_white(text); end
259
- def blue_on_yellow(text); end
260
- def bold(text); end
261
- def bright_black(text); end
262
- def bright_black_on_black(text); end
263
- def bright_black_on_blue(text); end
264
- def bright_black_on_cyan(text); end
265
- def bright_black_on_green(text); end
266
- def bright_black_on_magenta(text); end
267
- def bright_black_on_purple(text); end
268
- def bright_black_on_red(text); end
269
- def bright_black_on_white(text); end
270
- def bright_black_on_yellow(text); end
271
- def bright_blue(text); end
272
- def bright_blue_on_black(text); end
273
- def bright_blue_on_blue(text); end
274
- def bright_blue_on_cyan(text); end
275
- def bright_blue_on_green(text); end
276
- def bright_blue_on_magenta(text); end
277
- def bright_blue_on_purple(text); end
278
- def bright_blue_on_red(text); end
279
- def bright_blue_on_white(text); end
280
- def bright_blue_on_yellow(text); end
281
- def bright_cyan(text); end
282
- def bright_cyan_on_black(text); end
283
- def bright_cyan_on_blue(text); end
284
- def bright_cyan_on_cyan(text); end
285
- def bright_cyan_on_green(text); end
286
- def bright_cyan_on_magenta(text); end
287
- def bright_cyan_on_purple(text); end
288
- def bright_cyan_on_red(text); end
289
- def bright_cyan_on_white(text); end
290
- def bright_cyan_on_yellow(text); end
291
- def bright_green(text); end
292
- def bright_green_on_black(text); end
293
- def bright_green_on_blue(text); end
294
- def bright_green_on_cyan(text); end
295
- def bright_green_on_green(text); end
296
- def bright_green_on_magenta(text); end
297
- def bright_green_on_purple(text); end
298
- def bright_green_on_red(text); end
299
- def bright_green_on_white(text); end
300
- def bright_green_on_yellow(text); end
301
- def bright_magenta(text); end
302
- def bright_magenta_on_black(text); end
303
- def bright_magenta_on_blue(text); end
304
- def bright_magenta_on_cyan(text); end
305
- def bright_magenta_on_green(text); end
306
- def bright_magenta_on_magenta(text); end
307
- def bright_magenta_on_purple(text); end
308
- def bright_magenta_on_red(text); end
309
- def bright_magenta_on_white(text); end
310
- def bright_magenta_on_yellow(text); end
311
- def bright_purple(text); end
312
- def bright_purple_on_black(text); end
313
- def bright_purple_on_blue(text); end
314
- def bright_purple_on_cyan(text); end
315
- def bright_purple_on_green(text); end
316
- def bright_purple_on_magenta(text); end
317
- def bright_purple_on_purple(text); end
318
- def bright_purple_on_red(text); end
319
- def bright_purple_on_white(text); end
320
- def bright_purple_on_yellow(text); end
321
- def bright_red(text); end
322
- def bright_red_on_black(text); end
323
- def bright_red_on_blue(text); end
324
- def bright_red_on_cyan(text); end
325
- def bright_red_on_green(text); end
326
- def bright_red_on_magenta(text); end
327
- def bright_red_on_purple(text); end
328
- def bright_red_on_red(text); end
329
- def bright_red_on_white(text); end
330
- def bright_red_on_yellow(text); end
331
- def bright_white(text); end
332
- def bright_white_on_black(text); end
333
- def bright_white_on_blue(text); end
334
- def bright_white_on_cyan(text); end
335
- def bright_white_on_green(text); end
336
- def bright_white_on_magenta(text); end
337
- def bright_white_on_purple(text); end
338
- def bright_white_on_red(text); end
339
- def bright_white_on_white(text); end
340
- def bright_white_on_yellow(text); end
341
- def bright_yellow(text); end
342
- def bright_yellow_on_black(text); end
343
- def bright_yellow_on_blue(text); end
344
- def bright_yellow_on_cyan(text); end
345
- def bright_yellow_on_green(text); end
346
- def bright_yellow_on_magenta(text); end
347
- def bright_yellow_on_purple(text); end
348
- def bright_yellow_on_red(text); end
349
- def bright_yellow_on_white(text); end
350
- def bright_yellow_on_yellow(text); end
351
- def cyan(text); end
352
- def cyan_on_black(text); end
353
- def cyan_on_blue(text); end
354
- def cyan_on_cyan(text); end
355
- def cyan_on_green(text); end
356
- def cyan_on_magenta(text); end
357
- def cyan_on_purple(text); end
358
- def cyan_on_red(text); end
359
- def cyan_on_white(text); end
360
- def cyan_on_yellow(text); end
361
- def default(text); end
362
- def green(text); end
363
- def green_on_black(text); end
364
- def green_on_blue(text); end
365
- def green_on_cyan(text); end
366
- def green_on_green(text); end
367
- def green_on_magenta(text); end
368
- def green_on_purple(text); end
369
- def green_on_red(text); end
370
- def green_on_white(text); end
371
- def green_on_yellow(text); end
372
- def indent(text, chars); end
373
- def magenta(text); end
374
- def magenta_on_black(text); end
375
- def magenta_on_blue(text); end
376
- def magenta_on_cyan(text); end
377
- def magenta_on_green(text); end
378
- def magenta_on_magenta(text); end
379
- def magenta_on_purple(text); end
380
- def magenta_on_red(text); end
381
- def magenta_on_white(text); end
382
- def magenta_on_yellow(text); end
383
- def no_color; end
384
- def no_pager; end
385
- def purple(text); end
386
- def purple_on_black(text); end
387
- def purple_on_blue(text); end
388
- def purple_on_cyan(text); end
389
- def purple_on_green(text); end
390
- def purple_on_magenta(text); end
391
- def purple_on_purple(text); end
392
- def purple_on_red(text); end
393
- def purple_on_white(text); end
394
- def purple_on_yellow(text); end
395
- def red(text); end
396
- def red_on_black(text); end
397
- def red_on_blue(text); end
398
- def red_on_cyan(text); end
399
- def red_on_green(text); end
400
- def red_on_magenta(text); end
401
- def red_on_purple(text); end
402
- def red_on_red(text); end
403
- def red_on_white(text); end
404
- def red_on_yellow(text); end
405
- def strip_color(text); end
406
- def white(text); end
407
- def white_on_black(text); end
408
- def white_on_blue(text); end
409
- def white_on_cyan(text); end
410
- def white_on_green(text); end
411
- def white_on_magenta(text); end
412
- def white_on_purple(text); end
413
- def white_on_red(text); end
414
- def white_on_white(text); end
415
- def white_on_yellow(text); end
416
- def with_line_numbers(text, offset, color = nil); end
417
- def yellow(text); end
418
- def yellow_on_black(text); end
419
- def yellow_on_blue(text); end
420
- def yellow_on_cyan(text); end
421
- def yellow_on_green(text); end
422
- def yellow_on_magenta(text); end
423
- def yellow_on_purple(text); end
424
- def yellow_on_red(text); end
425
- def yellow_on_white(text); end
426
- def yellow_on_yellow(text); end
427
- extend Pry::Helpers::Text
518
+
519
+ class Pry::Command::Bang < ::Pry::ClassCommand
520
+ def process; end
428
521
  end
429
- class Pry::Helpers::Table
430
- def ==(other); end
431
- def _max_width(things); end
432
- def _rebuild_colorless_cache; end
433
- def _recall_color_for(thing); end
434
- def _recolumn; end
435
- def column_count; end
436
- def column_count=(count); end
437
- def columns; end
438
- def fits_on_line?(line_length); end
439
- def initialize(items, args, pry_instance = nil); end
440
- def items; end
441
- def items=(items); end
442
- def rows_to_s(style = nil); end
443
- def to_a; end
444
- def to_s; end
522
+
523
+ class Pry::Command::BangPry < ::Pry::ClassCommand
524
+ def process; end
445
525
  end
446
- module Pry::Helpers::Platform
447
- def self.jruby?; end
448
- def self.jruby_19?; end
449
- def self.linux?; end
450
- def self.mac_osx?; end
451
- def self.mri?; end
452
- def self.mri_19?; end
453
- def self.mri_2?; end
454
- def self.windows?; end
455
- def self.windows_ansi?; end
456
- end
457
- class Pry::BasicObject < BasicObject
458
- include Kernel
526
+
527
+ class Pry::Command::Cat < ::Pry::ClassCommand
528
+ def complete(search); end
529
+ def load_path_completions; end
530
+ def options(opt); end
531
+ def process; end
459
532
  end
460
- class Pry::Prompt
461
- def [](key); end
462
- def description; end
463
- def incomplete_proc; end
464
- def initialize(name, description, prompt_procs); end
465
- def name; end
466
- def prompt_procs; end
467
- def self.[](name); end
468
- def self.add(name, description = nil, separators = nil); end
469
- def self.all; end
470
- def wait_proc; end
533
+
534
+ class Pry::Command::Cat::AbstractFormatter
535
+ include ::Pry::Helpers::OptionsHelpers
536
+ include ::Pry::Helpers::CommandHelpers
537
+ include ::Pry::Helpers::BaseHelpers
538
+
539
+ private
540
+
541
+ def between_lines; end
542
+ def code_type; end
543
+ def decorate(content); end
544
+ def use_line_numbers?; end
471
545
  end
472
- class Pry::PluginManager
473
- def gem_list; end
474
- def initialize; end
475
- def load_plugins; end
476
- def locate_plugins; end
477
- def plugin_located?(plugin); end
478
- def plugins; end
546
+
547
+ class Pry::Command::Cat::ExceptionFormatter < ::Pry::Command::Cat::AbstractFormatter
548
+ include ::Pry::Helpers::Text
549
+
550
+ def initialize(exception, pry_instance, opts); end
551
+
552
+ def ex; end
553
+ def format; end
554
+ def opts; end
555
+ def pry_instance; end
556
+
557
+ private
558
+
559
+ def backtrace_file; end
560
+ def backtrace_level; end
561
+ def backtrace_line; end
562
+ def check_for_errors; end
563
+ def code_window_size; end
564
+ def header; end
565
+ def increment_backtrace_level; end
566
+ def start_and_end_line_for_code_window; end
479
567
  end
480
- class Pry::PluginManager::NoPlugin
481
- def initialize(name); end
482
- def method_missing(*arg0); end
483
- def respond_to_missing?(*arg0); end
568
+
569
+ class Pry::Command::Cat::FileFormatter < ::Pry::Command::Cat::AbstractFormatter
570
+ def initialize(file_with_embedded_line, pry_instance, opts); end
571
+
572
+ def file_and_line; end
573
+ def file_with_embedded_line; end
574
+ def format; end
575
+ def opts; end
576
+ def pry_instance; end
577
+
578
+ private
579
+
580
+ def code_type; end
581
+ def code_window_size; end
582
+ def decorate(content); end
583
+ def detect_code_type_from_file(file_name); end
584
+ def file_name; end
585
+ def line_number; end
484
586
  end
485
- class Pry::PluginManager::Plugin
486
- def activate!; end
487
- def active; end
488
- def active=(arg0); end
489
- def active?; end
490
- def disable!; end
491
- def enable!; end
492
- def enabled; end
493
- def enabled=(arg0); end
494
- def enabled?; end
495
- def gem_name; end
496
- def gem_name=(arg0); end
497
- def initialize(name, gem_name, spec, enabled); end
498
- def load_cli_options; end
499
- def name; end
500
- def name=(arg0); end
501
- def spec; end
502
- def spec=(arg0); end
503
- def supported?; end
587
+
588
+ class Pry::Command::Cat::InputExpressionFormatter < ::Pry::Command::Cat::AbstractFormatter
589
+ def initialize(input_expressions, opts); end
590
+
591
+ def format; end
592
+ def input_expressions; end
593
+ def input_expressions=(_arg0); end
594
+ def opts; end
595
+ def opts=(_arg0); end
596
+
597
+ private
598
+
599
+ def normalized_expression_range; end
600
+ def numbered_input_items; end
601
+ def selected_input_items; end
504
602
  end
505
- class Pry::CodeObject
506
- def command_lookup; end
507
- def default_lookup; end
508
- def empty_lookup; end
509
- def initialize(str, pry_instance, options = nil); end
510
- def looks_like_an_instance_method?(str); end
511
- def lookup_super(obj, super_level); end
512
- def method_or_class_lookup; end
603
+
604
+ class Pry::Command::Cd < ::Pry::ClassCommand
605
+ def process; end
606
+ end
607
+
608
+ class Pry::Command::ChangeInspector < ::Pry::ClassCommand
609
+ def process(inspector); end
610
+
611
+ private
612
+
613
+ def inspector_map; end
614
+ end
615
+
616
+ class Pry::Command::ChangePrompt < ::Pry::ClassCommand
617
+ def options(opt); end
618
+ def process(prompt); end
619
+
620
+ private
621
+
622
+ def change_prompt(prompt); end
623
+ def list_prompts; end
624
+ end
625
+
626
+ class Pry::Command::ClearScreen < ::Pry::ClassCommand
627
+ def process; end
628
+ end
629
+
630
+ class Pry::Command::CodeCollector
631
+ include ::Pry::Helpers::OptionsHelpers
632
+ include ::Pry::Helpers::CommandHelpers
633
+
634
+ def initialize(args, opts, pry_instance); end
635
+
636
+ def args; end
637
+ def code_object; end
638
+ def content; end
639
+ def file; end
640
+ def file=(_arg0); end
641
+ def line_range; end
642
+ def obj_name; end
643
+ def opts; end
644
+ def pry_input_content; end
513
645
  def pry_instance; end
514
- def pry_instance=(arg0); end
515
- def safe_to_evaluate?(str); end
516
- def self.lookup(str, pry_instance, options = nil); end
517
- def sourcable_object?(obj); end
518
- def str; end
519
- def str=(arg0); end
520
- def super_level; end
521
- def super_level=(arg0); end
522
- def target; end
523
- def target=(arg0); end
524
- def target_self; end
525
- include Pry::Helpers::CommandHelpers
646
+ def pry_output_content; end
647
+ def restrict_to_lines(content, range); end
648
+
649
+ private
650
+
651
+ def bad_option_combination?; end
652
+ def code_object_doc; end
653
+ def code_object_source_or_file; end
654
+ def convert_to_range(range); end
655
+ def could_not_locate(name); end
656
+ def file_content; end
657
+ def pry_array_content_as_string(array, ranges); end
658
+
659
+ class << self
660
+ def inject_options(opt); end
661
+ def input_expression_ranges; end
662
+ def input_expression_ranges=(_arg0); end
663
+ def output_result_ranges; end
664
+ def output_result_ranges=(_arg0); end
665
+ end
526
666
  end
527
- module Pry::CodeObject::Helpers
528
- def c_method?; end
529
- def c_module?; end
530
- def command?; end
531
- def module_with_yard_docs?; end
532
- def real_method_object?; end
667
+
668
+ class Pry::Command::DisablePry < ::Pry::ClassCommand
669
+ def process; end
533
670
  end
534
- module Pry::RescuableException
535
- def self.===(exception); end
671
+
672
+ class Pry::Command::Edit < ::Pry::ClassCommand
673
+ def apply_runtime_patch; end
674
+ def bad_option_combination?; end
675
+ def code_object; end
676
+ def ensure_file_name_is_valid(file_name); end
677
+ def file_and_line; end
678
+ def file_and_line_for_current_exception; end
679
+ def file_based_exception?; end
680
+ def file_edit; end
681
+ def filename_argument; end
682
+ def initial_temp_file_content; end
683
+ def input_expression; end
684
+ def never_reload?; end
685
+ def options(opt); end
686
+ def patch_exception?; end
687
+ def previously_patched?(code_object); end
688
+ def probably_a_file?(str); end
689
+ def process; end
690
+ def pry_method?(code_object); end
691
+ def reload?(file_name = T.unsafe(nil)); end
692
+ def reloadable?; end
693
+ def repl_edit; end
694
+ def repl_edit?; end
695
+ def runtime_patch?; end
696
+ end
697
+
698
+ class Pry::Command::Edit::ExceptionPatcher
699
+ def initialize(pry_instance, state, exception_file_and_line); end
700
+
701
+ def file_and_line; end
702
+ def file_and_line=(_arg0); end
703
+ def perform_patch; end
704
+ def pry_instance; end
705
+ def pry_instance=(_arg0); end
706
+ def state; end
707
+ def state=(_arg0); end
708
+ end
709
+
710
+ module Pry::Command::Edit::FileAndLineLocator
711
+ class << self
712
+ def from_binding(target); end
713
+ def from_code_object(code_object, filename_argument); end
714
+ def from_exception(exception, backtrace_level); end
715
+ def from_filename_argument(filename_argument); end
716
+ end
717
+ end
718
+
719
+ class Pry::Command::Exit < ::Pry::ClassCommand
720
+ def process; end
721
+ def process_pop_and_return; end
722
+ end
723
+
724
+ class Pry::Command::ExitAll < ::Pry::ClassCommand
725
+ def process; end
726
+ end
727
+
728
+ class Pry::Command::ExitProgram < ::Pry::ClassCommand
729
+ def process; end
730
+ end
731
+
732
+ class Pry::Command::FindMethod < ::Pry::ClassCommand
733
+ extend ::Pry::Helpers::BaseHelpers
734
+
735
+ def options(opt); end
736
+ def process; end
737
+
738
+ private
739
+
740
+ def additional_info(header, method); end
741
+ def content_search(namespace); end
742
+ def matched_method_lines(header, method); end
743
+ def name_search(namespace); end
744
+ def pattern; end
745
+ def print_matches(matches); end
746
+ def print_matches_for_class(klass, grouped); end
747
+ def recurse_namespace(klass, done = T.unsafe(nil), &block); end
748
+ def search_all_methods(namespace); end
749
+ def search_class; end
750
+ def show_search_results(matches); end
751
+ end
752
+
753
+ class Pry::Command::FixIndent < ::Pry::ClassCommand
754
+ def process; end
755
+ end
756
+
757
+ class Pry::Command::Help < ::Pry::ClassCommand
758
+ def command_groups; end
759
+ def display_command(command); end
760
+ def display_filtered_commands(search); end
761
+ def display_filtered_search_results(search); end
762
+ def display_index(groups); end
763
+ def display_search(search); end
764
+ def group_sort_key(group_name); end
765
+ def help_text_for_commands(name, commands); end
766
+ def normalize(key); end
767
+ def process; end
768
+ def search_hash(search, hash); end
769
+ def sorted_commands(commands); end
770
+ def sorted_group_names(groups); end
771
+ def visible_commands; end
772
+ end
773
+
774
+ class Pry::Command::Hist < ::Pry::ClassCommand
775
+ def options(opt); end
776
+ def process; end
777
+
778
+ private
779
+
780
+ def check_for_juxtaposed_replay(replay_sequence); end
781
+ def find_history; end
782
+ def process_clear; end
783
+ def process_display; end
784
+ def process_replay; end
785
+ def process_save; end
536
786
  end
537
- module Pry::TooSafeException
538
- def self.===(exception); end
787
+
788
+ class Pry::Command::ImportSet < ::Pry::ClassCommand
789
+ def process(_command_set_name); end
539
790
  end
540
- module Pry::UserError
791
+
792
+ class Pry::Command::JumpTo < ::Pry::ClassCommand
793
+ def process(break_level); end
541
794
  end
542
- module Pry::FrozenObjectException
543
- def self.===(exception); end
795
+
796
+ class Pry::Command::ListInspectors < ::Pry::ClassCommand
797
+ def process; end
798
+
799
+ private
800
+
801
+ def inspector_map; end
802
+ def selected_inspector?(inspector); end
803
+ def selected_text; end
544
804
  end
545
- class Pry::CommandError < StandardError
805
+
806
+ class Pry::Command::Ls < ::Pry::ClassCommand
807
+ def no_user_opts?; end
808
+ def options(opt); end
809
+ def process; end
810
+
811
+ private
812
+
813
+ def error_list; end
814
+ def raise_errors_if_arguments_are_weird; end
546
815
  end
547
- class Pry::MethodNotFound < Pry::CommandError
816
+
817
+ class Pry::Command::Ls::Constants < ::Pry::Command::Ls::Formatter
818
+ include ::Pry::Command::Ls::Interrogatable
819
+
820
+ def initialize(interrogatee, no_user_opts, opts, pry_instance); end
821
+
822
+ def correct_opts?; end
823
+ def output_self; end
824
+
825
+ private
826
+
827
+ def format(mod, constants); end
828
+ def show_deprecated_constants?; end
548
829
  end
549
- class Pry::ObsoleteError < StandardError
830
+
831
+ Pry::Command::Ls::Constants::DEPRECATED_CONSTANTS = T.let(T.unsafe(nil), Array)
832
+ Pry::Command::Ls::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
833
+
834
+ class Pry::Command::Ls::Formatter
835
+ def initialize(pry_instance); end
836
+
837
+ def grep=(_arg0); end
838
+ def pry_instance; end
839
+ def write_out; end
840
+
841
+ private
842
+
843
+ def color(type, str); end
844
+ def correct_opts?; end
845
+ def format_value(value); end
846
+ def grep; end
847
+ def output_section(heading, body); end
848
+ def output_self; end
550
849
  end
551
- class Pry::Hooks
552
- def add_hook(event_name, hook_name, callable = nil, &block); end
553
- def clear_event_hooks(event_name); end
554
- def delete_hook(event_name, hook_name); end
555
- def errors; end
556
- def exec_hook(event_name, *args, &block); end
557
- def get_hook(event_name, hook_name); end
558
- def get_hooks(event_name); end
559
- def hook_count(event_name); end
560
- def hook_exists?(event_name, hook_name); end
561
- def hooks; end
562
- def initialize; end
563
- def initialize_copy(_orig); end
564
- def merge!(other); end
565
- def merge(other); end
566
- def self.default; end
850
+
851
+ class Pry::Command::Ls::Globals < ::Pry::Command::Ls::Formatter
852
+ def initialize(opts, pry_instance); end
853
+
854
+ def output_self; end
855
+
856
+ private
857
+
858
+ def format(globals); end
567
859
  end
568
- class Pry::InputCompleter
569
- def build_path(input); end
570
- def call(str, options = nil); end
571
- def ignored_modules; end
572
- def initialize(input, pry = nil); end
573
- def select_message(path, receiver, message, candidates); end
860
+
861
+ Pry::Command::Ls::Globals::BUILTIN_GLOBALS = T.let(T.unsafe(nil), Array)
862
+ Pry::Command::Ls::Globals::PSEUDO_GLOBALS = T.let(T.unsafe(nil), Array)
863
+
864
+ class Pry::Command::Ls::Grep
865
+ def initialize(grep_regexp); end
866
+
867
+ def regexp; end
574
868
  end
575
- class Pry::Command
576
- def _pry_; end
577
- def _pry_=(arg0); end
578
- def after_hooks; end
579
- def arg_string; end
580
- def arg_string=(arg0); end
581
- def before_hooks; end
582
- def block; end
583
- def call_safely(*args); end
584
- def call_with_hooks(*args); end
585
- def captures; end
586
- def captures=(arg0); end
587
- def check_for_command_collision(command_match, arg_string); end
588
- def command_block; end
589
- def command_block=(arg0); end
590
- def command_name; end
591
- def command_options; end
592
- def command_set; end
593
- def command_set=(arg0); end
594
- def commands; end
595
- def complete(_search); end
596
- def context; end
597
- def context=(arg0); end
598
- def description; end
599
- def eval_string; end
600
- def eval_string=(arg0); end
601
- def find_hooks(event); end
602
- def hooks; end
603
- def hooks=(arg0); end
604
- def initialize(context = nil); end
605
- def interpolate_string(str); end
606
- def match; end
607
- def name; end
608
- def normalize_method_args(method, args); end
609
- def output; end
610
- def output=(arg0); end
611
- def pass_block(arg_string); end
612
- def process_line(line); end
613
- def pry_instance; end
614
- def pry_instance=(arg0); end
615
- def run(command_string, *args); end
616
- def self.banner(arg = nil); end
617
- def self.block; end
618
- def self.block=(arg0); end
619
- def self.command_name; end
620
- def self.command_options(arg = nil); end
621
- def self.command_options=(arg0); end
622
- def self.command_regex; end
623
- def self.convert_to_regex(obj); end
624
- def self.default_options(match); end
625
- def self.description(arg = nil); end
626
- def self.description=(arg0); end
627
- def self.doc; end
628
- def self.file; end
629
- def self.group(name = nil); end
630
- def self.inspect; end
631
- def self.line; end
632
- def self.match(arg = nil); end
633
- def self.match=(arg0); end
634
- def self.match_score(val); end
635
- def self.matches?(val); end
636
- def self.name; end
637
- def self.options(arg = nil); end
638
- def self.options=(arg0); end
639
- def self.source; end
640
- def self.source_file; end
641
- def self.source_line; end
642
- def self.state; end
643
- def self.subclass(match, description, options, helpers, &block); end
644
- def source; end
645
- def state; end
646
- def target; end
647
- def target=(arg0); end
648
- def target_self; end
649
- def tokenize(val); end
650
- def use_unpatched_symbol; end
651
- def void; end
652
- extend Pry::CodeObject::Helpers
653
- extend Pry::Helpers::DocumentationHelpers
654
- include Pry::Helpers::BaseHelpers
655
- include Pry::Helpers::CommandHelpers
656
- include Pry::Helpers::Text
869
+
870
+ class Pry::Command::Ls::InstanceVars < ::Pry::Command::Ls::Formatter
871
+ include ::Pry::Command::Ls::Interrogatable
872
+
873
+ def initialize(interrogatee, no_user_opts, opts, pry_instance); end
874
+
875
+ def correct_opts?; end
876
+ def output_self; end
877
+
878
+ private
879
+
880
+ def format(type, vars); end
657
881
  end
658
- class Pry::ClassCommand < Pry::Command
659
- def args; end
660
- def args=(arg0); end
661
- def call(*args); end
662
- def complete(search); end
663
- def help; end
664
- def options(opt); end
665
- def opts; end
666
- def opts=(arg0); end
667
- def process; end
668
- def self.doc; end
669
- def self.file; end
670
- def self.inherited(klass); end
671
- def self.line; end
672
- def self.source; end
673
- def self.source_file; end
674
- def self.source_line; end
675
- def self.source_location; end
676
- def self.source_object; end
677
- def setup; end
678
- def slop; end
679
- def subcommands(cmd); end
882
+
883
+ module Pry::Command::Ls::Interrogatable
884
+ private
885
+
886
+ def interrogatee_mod; end
887
+ def interrogating_a_module?; end
680
888
  end
681
- class Pry::BlockCommand < Pry::Command
682
- def call(*args); end
683
- def help; end
889
+
890
+ module Pry::Command::Ls::JRubyHacks
891
+ private
892
+
893
+ def rubbishness(name); end
894
+ def trim_jruby_aliases(methods); end
684
895
  end
685
- class Pry::NoCommandError < StandardError
686
- def initialize(match, owner); end
896
+
897
+ class Pry::Command::Ls::LocalNames < ::Pry::Command::Ls::Formatter
898
+ def initialize(no_user_opts, args, pry_instance); end
899
+
900
+ def correct_opts?; end
901
+ def output_self; end
902
+
903
+ private
904
+
905
+ def format(locals); end
687
906
  end
688
- class Pry::CommandSet
689
- def [](pattern); end
690
- def []=(pattern, command); end
691
- def add_command(command); end
692
- def alias_command(match, action, options = nil); end
693
- def block_command(match, description = nil, options = nil, &block); end
694
- def command(match, description = nil, options = nil, &block); end
695
- def complete(search, context = nil); end
696
- def create_command(match, description = nil, options = nil, &block); end
697
- def delete(*searches); end
698
- def desc(search, description = nil); end
699
- def each(&block); end
700
- def find_command(pattern); end
701
- def find_command_by_match_or_listing(match_or_listing); end
702
- def find_command_for_help(search); end
703
- def helper_module; end
704
- def helpers(&block); end
705
- def import(*sets); end
706
- def import_from(set, *matches); end
707
- def initialize(*imported_sets, &block); end
708
- def keys; end
709
- def list_commands; end
710
- def process_line(val, context = nil); end
711
- def rename_command(new_match, search, options = nil); end
712
- def to_h; end
713
- def to_hash; end
714
- def valid_command?(val); end
715
- include Enumerable
716
- include Pry::Helpers::BaseHelpers
907
+
908
+ class Pry::Command::Ls::LocalVars < ::Pry::Command::Ls::Formatter
909
+ def initialize(opts, pry_instance); end
910
+
911
+ def output_self; end
912
+
913
+ private
914
+
915
+ def colorized_assignment_style(lhs, rhs, desired_width = T.unsafe(nil)); end
916
+ def format(name_value_pairs); end
717
917
  end
718
- class Pry::Result
719
- def command?; end
720
- def initialize(is_command, retval = nil); end
721
- def retval; end
722
- def void_command?; end
918
+
919
+ class Pry::Command::Ls::LsEntity
920
+ def initialize(opts); end
921
+
922
+ def entities_table; end
923
+ def pry_instance; end
924
+
925
+ private
926
+
927
+ def constants; end
928
+ def entities; end
929
+ def globals; end
930
+ def grep(entity); end
931
+ def instance_vars; end
932
+ def local_names; end
933
+ def local_vars; end
934
+ def methods; end
935
+ def self_methods; end
723
936
  end
724
- class Pry::SyntaxHighlighter
725
- def self.highlight(code, language = nil); end
726
- def self.keyword_token_color; end
727
- def self.overwrite_coderay_comment_token!; end
728
- def self.tokenize(code, language = nil); end
937
+
938
+ class Pry::Command::Ls::Methods < ::Pry::Command::Ls::Formatter
939
+ include ::Pry::Command::Ls::Interrogatable
940
+ include ::Pry::Command::Ls::JRubyHacks
941
+ include ::Pry::Command::Ls::MethodsHelper
942
+
943
+ def initialize(interrogatee, no_user_opts, opts, pry_instance); end
944
+
945
+ def output_self; end
946
+
947
+ private
948
+
949
+ def below_ceiling; end
950
+ def correct_opts?; end
729
951
  end
730
- class Pry::Editor
731
- def blocking_flag_for_editor(blocking); end
732
- def build_editor_invocation_string(file, line, blocking); end
733
- def edit_tempfile_with_content(initial_content, line = nil); end
734
- def editor_name; end
735
- def initialize(pry_instance); end
736
- def invoke_editor(file, line, blocking = nil); end
737
- def open_editor(editor_invocation); end
738
- def open_editor_on_jruby(editor_invocation); end
739
- def pry_instance; end
740
- def self.default; end
741
- def start_line_syntax_for_editor(file_name, line_number); end
742
- include Pry::Helpers::CommandHelpers
952
+
953
+ module Pry::Command::Ls::MethodsHelper
954
+ include ::Pry::Command::Ls::JRubyHacks
955
+
956
+ private
957
+
958
+ def all_methods(instance_methods = T.unsafe(nil)); end
959
+ def format(methods); end
960
+ def resolution_order; end
743
961
  end
744
- class Pry::History
745
- def <<(line); end
746
- def clear; end
747
- def filter(history); end
748
- def history_file; end
749
- def history_file_path; end
750
- def history_line_count; end
751
- def initialize(options = nil); end
752
- def invalid_readline_line?(line); end
753
- def load; end
754
- def loader; end
755
- def loader=(arg0); end
756
- def original_lines; end
757
- def push(line); end
758
- def read_from_file; end
759
- def save_to_file(line); end
760
- def saver; end
761
- def saver=(arg0); end
762
- def self.default_file; end
763
- def session_line_count; end
764
- def should_ignore?(line); end
765
- def to_a; end
962
+
963
+ class Pry::Command::Ls::SelfMethods < ::Pry::Command::Ls::Formatter
964
+ include ::Pry::Command::Ls::Interrogatable
965
+ include ::Pry::Command::Ls::JRubyHacks
966
+ include ::Pry::Command::Ls::MethodsHelper
967
+
968
+ def initialize(interrogatee, no_user_opts, opts, pry_instance); end
969
+
970
+ def output_self; end
971
+
972
+ private
973
+
974
+ def correct_opts?; end
766
975
  end
767
- class Pry::ColorPrinter < PP
768
- def highlight_object_literal(object_literal); end
769
- def inspect_object(object); end
770
- def pp(object); end
771
- def self.default(_output, value, pry_instance); end
772
- def self.pp(obj, output = nil, max_width = nil); end
773
- def text(str, max_width = nil); end
976
+
977
+ class Pry::Command::Nesting < ::Pry::ClassCommand
978
+ def process; end
774
979
  end
775
- module Pry::ExceptionHandler
776
- def self.cause_text(cause); end
777
- def self.exception_text(exception); end
778
- def self.handle_exception(output, exception, _pry_instance); end
779
- def self.standard_error_text_for(exception); end
980
+
981
+ class Pry::Command::Play < ::Pry::ClassCommand
982
+ def code_object; end
983
+ def content; end
984
+ def content_after_options; end
985
+ def content_at_expression; end
986
+ def default_file; end
987
+ def file_content; end
988
+ def options(opt); end
989
+ def perform_play; end
990
+ def process; end
991
+ def should_use_default_file?; end
992
+ def show_input; end
780
993
  end
781
- module Pry::SystemCommandHandler
782
- def self.default(output, command, _pry_instance); end
994
+
995
+ class Pry::Command::PryBacktrace < ::Pry::ClassCommand
996
+ def process; end
783
997
  end
784
- module Pry::ControlDHandler
785
- def self.default(pry_instance); end
998
+
999
+ class Pry::Command::RaiseUp < ::Pry::ClassCommand
1000
+ def process; end
786
1001
  end
787
- class Pry::CommandState
788
- def initialize; end
789
- def reset(command_name); end
790
- def self.default; end
791
- def state_for(command_name); end
1002
+
1003
+ class Pry::Command::ReloadCode < ::Pry::ClassCommand
1004
+ def process; end
1005
+
1006
+ private
1007
+
1008
+ def check_for_reloadability(code_object, identifier); end
1009
+ def current_file; end
1010
+ def reload_current_file; end
1011
+ def reload_object(identifier); end
792
1012
  end
793
- module Pry::Warning
794
- def self.warn(message); end
1013
+
1014
+ class Pry::Command::Reset < ::Pry::ClassCommand
1015
+ def process; end
795
1016
  end
796
- module Pry::Env
797
- def self.[](key); end
1017
+
1018
+ class Pry::Command::Ri < ::Pry::ClassCommand
1019
+ def process(spec); end
798
1020
  end
799
- class Pry::Command::Ls < Pry::ClassCommand
800
- def error_list; end
801
- def no_user_opts?; end
1021
+
1022
+ class Pry::Command::SaveFile < ::Pry::ClassCommand
1023
+ def display_content; end
1024
+ def file_name; end
1025
+ def mode; end
802
1026
  def options(opt); end
803
1027
  def process; end
804
- def raise_errors_if_arguments_are_weird; end
805
- end
806
- module Pry::Command::Ls::JRubyHacks
807
- def rubbishness(name); end
808
- def trim_jruby_aliases(methods); end
1028
+ def save_file; end
809
1029
  end
810
- module Pry::Command::Ls::MethodsHelper
811
- def all_methods(instance_methods = nil); end
812
- def format(methods); end
813
- def resolution_order; end
814
- include Pry::Command::Ls::JRubyHacks
1030
+
1031
+ class Pry::Command::ShellCommand < ::Pry::ClassCommand
1032
+ def process(cmd); end
1033
+
1034
+ private
1035
+
1036
+ def cd_path_env; end
1037
+ def cd_path_exists?; end
1038
+ def parse_destination(dest); end
1039
+ def path_from_cd_path(dest); end
1040
+ def process_cd(dest); end
1041
+ def special_case_path?(dest); end
815
1042
  end
816
- module Pry::Command::Ls::Interrogatable
817
- def interrogatee_mod; end
818
- def interrogating_a_module?; end
1043
+
1044
+ class Pry::Command::ShellMode < ::Pry::ClassCommand
1045
+ def process; end
819
1046
  end
820
- class Pry::Command::Ls::Grep
821
- def initialize(grep_regexp); end
822
- def regexp; end
1047
+
1048
+ class Pry::Command::ShowDoc < ::Pry::Command::ShowInfo
1049
+ include ::Pry::Helpers::DocumentationHelpers
1050
+
1051
+ def content_for(code_object); end
1052
+ def docs_for(code_object); end
1053
+ def header_options; end
1054
+ def process; end
1055
+ def render_doc_markup_for(code_object); end
1056
+ def start_line_for(code_object); end
823
1057
  end
824
- class Pry::Command::Ls::Formatter
825
- def color(type, str); end
826
- def correct_opts?; end
827
- def format_value(value); end
828
- def grep; end
829
- def grep=(arg0); end
830
- def initialize(pry_instance); end
831
- def output_section(heading, body); end
832
- def output_self; end
833
- def pry_instance; end
834
- def write_out; end
1058
+
1059
+ class Pry::Command::ShowInfo < ::Pry::ClassCommand
1060
+ extend ::Pry::Helpers::BaseHelpers
1061
+
1062
+ def initialize(*_arg0); end
1063
+
1064
+ def code_object_header(code_object, line_num); end
1065
+ def code_object_with_accessible_source(code_object); end
1066
+ def complete(input); end
1067
+ def content_and_header_for_code_object(code_object); end
1068
+ def content_and_headers_for_all_module_candidates(mod); end
1069
+ def file_and_line_for(code_object); end
1070
+ def header(code_object); end
1071
+ def header_options; end
1072
+ def method_header(code_object, line_num); end
1073
+ def method_sections(code_object); end
1074
+ def module_header(code_object, line_num); end
1075
+ def no_definition_message; end
1076
+ def obj_name; end
1077
+ def options(opt); end
1078
+ def process; end
1079
+ def show_all_modules?(code_object); end
1080
+ def start_line_for(code_object); end
1081
+ def use_line_numbers?; end
1082
+ def valid_superclass?(code_object); end
835
1083
  end
836
- class Pry::Command::Ls::Globals < Pry::Command::Ls::Formatter
837
- def format(globals); end
838
- def initialize(opts, pry_instance); end
839
- def output_self; end
1084
+
1085
+ class Pry::Command::ShowInput < ::Pry::ClassCommand
1086
+ def process; end
840
1087
  end
841
- class Pry::Command::Ls::Constants < Pry::Command::Ls::Formatter
842
- def correct_opts?; end
843
- def format(mod, constants); end
844
- def initialize(interrogatee, no_user_opts, opts, pry_instance); end
845
- def output_self; end
846
- def show_deprecated_constants?; end
847
- include Pry::Command::Ls::Interrogatable
1088
+
1089
+ class Pry::Command::ShowSource < ::Pry::Command::ShowInfo
1090
+ include ::Pry::Helpers::DocumentationHelpers
1091
+
1092
+ def content_for(code_object); end
1093
+ def docs_for(code_object); end
1094
+ def header_options; end
1095
+ def options(opt); end
1096
+ def process; end
1097
+ def render_doc_markup_for(code_object); end
1098
+ def start_line_for(code_object); end
848
1099
  end
849
- class Pry::Command::Ls::Methods < Pry::Command::Ls::Formatter
850
- def below_ceiling; end
851
- def correct_opts?; end
852
- def initialize(interrogatee, no_user_opts, opts, pry_instance); end
853
- def output_self; end
854
- include Pry::Command::Ls::Interrogatable
855
- include Pry::Command::Ls::MethodsHelper
1100
+
1101
+ class Pry::Command::Stat < ::Pry::ClassCommand
1102
+ def options(opt); end
1103
+ def process; end
856
1104
  end
857
- class Pry::Command::Ls::SelfMethods < Pry::Command::Ls::Formatter
858
- def correct_opts?; end
859
- def initialize(interrogatee, no_user_opts, opts, pry_instance); end
860
- def output_self; end
861
- include Pry::Command::Ls::Interrogatable
862
- include Pry::Command::Ls::MethodsHelper
1105
+
1106
+ class Pry::Command::SwitchTo < ::Pry::ClassCommand
1107
+ def process(selection); end
863
1108
  end
864
- class Pry::Command::Ls::InstanceVars < Pry::Command::Ls::Formatter
865
- def correct_opts?; end
866
- def format(type, vars); end
867
- def initialize(interrogatee, no_user_opts, opts, pry_instance); end
868
- def output_self; end
869
- include Pry::Command::Ls::Interrogatable
1109
+
1110
+ class Pry::Command::ToggleColor < ::Pry::ClassCommand
1111
+ def color_toggle; end
1112
+ def process; end
870
1113
  end
871
- class Pry::Command::Ls::LocalNames < Pry::Command::Ls::Formatter
872
- def correct_opts?; end
873
- def format(locals); end
874
- def initialize(no_user_opts, args, pry_instance); end
875
- def output_self; end
1114
+
1115
+ Pry::Command::VOID_VALUE = T.let(T.unsafe(nil), Object)
1116
+
1117
+ class Pry::Command::Version < ::Pry::ClassCommand
1118
+ def process; end
876
1119
  end
877
- class Pry::Command::Ls::LocalVars < Pry::Command::Ls::Formatter
878
- def colorized_assignment_style(lhs, rhs, desired_width = nil); end
879
- def format(name_value_pairs); end
880
- def initialize(opts, pry_instance); end
881
- def output_self; end
1120
+
1121
+ class Pry::Command::WatchExpression < ::Pry::ClassCommand
1122
+ def options(opt); end
1123
+ def process; end
1124
+
1125
+ private
1126
+
1127
+ def add_expression(_arguments); end
1128
+ def add_hook; end
1129
+ def delete(index); end
1130
+ def eval_and_print_changed(output); end
1131
+ def expressions; end
1132
+ def list; end
882
1133
  end
883
- class Pry::Command::Ls::LsEntity
884
- def constants; end
885
- def entities; end
886
- def entities_table; end
887
- def globals; end
888
- def grep(entity); end
889
- def initialize(opts); end
890
- def instance_vars; end
891
- def local_names; end
892
- def local_vars; end
893
- def methods; end
1134
+
1135
+ class Pry::Command::WatchExpression::Expression
1136
+ def initialize(pry_instance, target, source); end
1137
+
1138
+ def changed?; end
1139
+ def eval!; end
1140
+ def previous_value; end
894
1141
  def pry_instance; end
895
- def self_methods; end
1142
+ def source; end
1143
+ def target; end
1144
+ def to_s; end
1145
+ def value; end
1146
+
1147
+ private
1148
+
1149
+ def target_eval(target, source); end
1150
+ end
1151
+
1152
+ class Pry::Command::Whereami < ::Pry::ClassCommand
1153
+ def initialize(*_arg0); end
1154
+
1155
+ def bad_option_combination?; end
1156
+ def code; end
1157
+ def code?; end
1158
+ def location; end
1159
+ def options(opt); end
1160
+ def process; end
1161
+ def setup; end
1162
+
1163
+ private
1164
+
1165
+ def class_code; end
1166
+ def code_window; end
1167
+ def default_code; end
1168
+ def expand_path(filename); end
1169
+ def handle_internal_binding; end
1170
+ def marker; end
1171
+ def method_code; end
1172
+ def nothing_to_do?; end
1173
+ def small_method?; end
1174
+ def target_class; end
1175
+ def top_level?; end
1176
+ def use_line_numbers?; end
1177
+ def valid_method?; end
1178
+ def window_size; end
1179
+
1180
+ class << self
1181
+ def method_size_cutoff; end
1182
+ def method_size_cutoff=(_arg0); end
1183
+ end
1184
+ end
1185
+
1186
+ class Pry::Command::Wtf < ::Pry::ClassCommand
1187
+ def options(opt); end
1188
+ def process; end
1189
+
1190
+ private
1191
+
1192
+ def format_backtrace(backtrace); end
1193
+ def format_header(title, exception); end
1194
+ def read_line(file, line); end
1195
+ def trim_backtrace(backtrace); end
1196
+ def unwind_exceptions; end
1197
+ end
1198
+
1199
+ Pry::Command::Wtf::RUBY_FRAME_PATTERN = T.let(T.unsafe(nil), Regexp)
1200
+ class Pry::CommandError < ::StandardError; end
1201
+
1202
+ class Pry::CommandSet
1203
+ include ::Enumerable
1204
+ include ::Pry::Helpers::BaseHelpers
1205
+
1206
+ def initialize(*imported_sets, &block); end
1207
+
1208
+ def [](pattern); end
1209
+ def []=(pattern, command); end
1210
+ def add_command(command); end
1211
+ def alias_command(match, action, options = T.unsafe(nil)); end
1212
+ def block_command(match, description = T.unsafe(nil), options = T.unsafe(nil), &block); end
1213
+ def command(match, description = T.unsafe(nil), options = T.unsafe(nil), &block); end
1214
+ def complete(search, context = T.unsafe(nil)); end
1215
+ def create_command(match, description = T.unsafe(nil), options = T.unsafe(nil), &block); end
1216
+ def delete(*searches); end
1217
+ def desc(search, description = T.unsafe(nil)); end
1218
+ def each(&block); end
1219
+ def find_command(pattern); end
1220
+ def find_command_by_match_or_listing(match_or_listing); end
1221
+ def find_command_for_help(search); end
1222
+ def helper_module; end
1223
+ def import(*sets); end
1224
+ def import_from(set, *matches); end
1225
+ def keys; end
1226
+ def list_commands; end
1227
+ def process_line(val, context = T.unsafe(nil)); end
1228
+ def rename_command(new_match, search, options = T.unsafe(nil)); end
1229
+ def to_h; end
1230
+ def to_hash; end
1231
+ def valid_command?(val); end
1232
+
1233
+ private
1234
+
1235
+ def helpers(&block); end
1236
+ end
1237
+
1238
+ class Pry::CommandState
1239
+ def initialize; end
1240
+
1241
+ def reset(command_name); end
1242
+ def state_for(command_name); end
1243
+
1244
+ class << self
1245
+ def default; end
1246
+ end
896
1247
  end
1248
+
1249
+ Pry::Commands = T.let(T.unsafe(nil), Pry::CommandSet)
1250
+
897
1251
  class Pry::Config
1252
+ extend ::Pry::Config::Attributable
1253
+
1254
+ def initialize; end
1255
+
898
1256
  def [](attr); end
899
1257
  def []=(attr, value); end
900
1258
  def auto_indent; end
901
- def auto_indent=(arg0); end
1259
+ def auto_indent=(_arg0); end
902
1260
  def collision_warning; end
903
- def collision_warning=(arg0); end
1261
+ def collision_warning=(_arg0); end
904
1262
  def color; end
905
- def color=(arg0); end
1263
+ def color=(_arg0); end
906
1264
  def command_completions; end
907
- def command_completions=(arg0); end
1265
+ def command_completions=(_arg0); end
908
1266
  def command_prefix; end
909
- def command_prefix=(arg0); end
1267
+ def command_prefix=(_arg0); end
910
1268
  def commands; end
911
- def commands=(arg0); end
1269
+ def commands=(_arg0); end
912
1270
  def completer; end
913
- def completer=(arg0); end
1271
+ def completer=(_arg0); end
914
1272
  def control_d_handler; end
915
1273
  def control_d_handler=(value); end
916
1274
  def correct_indent; end
917
- def correct_indent=(arg0); end
918
- def default_rc_file; end
1275
+ def correct_indent=(_arg0); end
919
1276
  def default_window_size; end
920
- def default_window_size=(arg0); end
1277
+ def default_window_size=(_arg0); end
921
1278
  def disable_auto_reload; end
922
- def disable_auto_reload=(arg0); end
1279
+ def disable_auto_reload=(_arg0); end
923
1280
  def editor; end
924
- def editor=(arg0); end
1281
+ def editor=(_arg0); end
925
1282
  def exception_handler; end
926
- def exception_handler=(arg0); end
1283
+ def exception_handler=(_arg0); end
927
1284
  def exception_whitelist; end
928
- def exception_whitelist=(arg0); end
1285
+ def exception_whitelist=(_arg0); end
929
1286
  def exec_string; end
930
- def exec_string=(arg0); end
1287
+ def exec_string=(_arg0); end
931
1288
  def extra_sticky_locals; end
932
- def extra_sticky_locals=(arg0); end
1289
+ def extra_sticky_locals=(_arg0); end
933
1290
  def file_completions; end
934
- def file_completions=(arg0); end
1291
+ def file_completions=(_arg0); end
935
1292
  def history; end
936
- def history=(arg0); end
1293
+ def history=(_arg0); end
937
1294
  def history_file; end
938
- def history_file=(arg0); end
1295
+ def history_file=(_arg0); end
939
1296
  def history_ignorelist; end
940
- def history_ignorelist=(arg0); end
1297
+ def history_ignorelist=(_arg0); end
941
1298
  def history_load; end
942
- def history_load=(arg0); end
1299
+ def history_load=(_arg0); end
943
1300
  def history_save; end
944
- def history_save=(arg0); end
1301
+ def history_save=(_arg0); end
945
1302
  def hooks; end
946
- def hooks=(arg0); end
947
- def initialize; end
948
- def initialize_dup(other); end
1303
+ def hooks=(_arg0); end
949
1304
  def input; end
950
- def input=(arg0); end
951
- def lazy_readline; end
1305
+ def input=(_arg0); end
952
1306
  def ls; end
953
- def ls=(arg0); end
1307
+ def ls=(_arg0); end
954
1308
  def memory_size; end
955
- def memory_size=(arg0); end
956
- def merge!(config_hash); end
1309
+ def memory_size=(_arg0); end
957
1310
  def merge(config_hash); end
1311
+ def merge!(config_hash); end
958
1312
  def method_missing(method_name, *args, &_block); end
959
1313
  def output; end
960
- def output=(arg0); end
1314
+ def output=(_arg0); end
961
1315
  def output_prefix; end
962
- def output_prefix=(arg0); end
1316
+ def output_prefix=(_arg0); end
963
1317
  def pager; end
964
- def pager=(arg0); end
1318
+ def pager=(_arg0); end
965
1319
  def print; end
966
- def print=(arg0); end
1320
+ def print=(_arg0); end
967
1321
  def prompt; end
968
- def prompt=(arg0); end
1322
+ def prompt=(_arg0); end
969
1323
  def prompt_name; end
970
- def prompt_name=(arg0); end
1324
+ def prompt_name=(_arg0); end
971
1325
  def prompt_safe_contexts; end
972
- def prompt_safe_contexts=(arg0); end
1326
+ def prompt_safe_contexts=(_arg0); end
973
1327
  def quiet; end
974
- def quiet=(arg0); end
1328
+ def quiet=(_arg0); end
975
1329
  def rc_file; end
976
- def rc_file=(arg0); end
1330
+ def rc_file=(_arg0); end
977
1331
  def requires; end
978
- def requires=(arg0); end
979
- def respond_to_missing?(method_name, include_all = nil); end
1332
+ def requires=(_arg0); end
980
1333
  def should_load_local_rc; end
981
- def should_load_local_rc=(arg0); end
1334
+ def should_load_local_rc=(_arg0); end
982
1335
  def should_load_plugins; end
983
- def should_load_plugins=(arg0); end
1336
+ def should_load_plugins=(_arg0); end
984
1337
  def should_load_rc; end
985
- def should_load_rc=(arg0); end
1338
+ def should_load_rc=(_arg0); end
986
1339
  def should_load_requires; end
987
- def should_load_requires=(arg0); end
1340
+ def should_load_requires=(_arg0); end
988
1341
  def should_trap_interrupts; end
989
- def should_trap_interrupts=(arg0); end
1342
+ def should_trap_interrupts=(_arg0); end
990
1343
  def system; end
991
- def system=(arg0); end
1344
+ def system=(_arg0); end
992
1345
  def unrescued_exceptions; end
993
- def unrescued_exceptions=(arg0); end
1346
+ def unrescued_exceptions=(_arg0); end
994
1347
  def windows_console_warning; end
995
- def windows_console_warning=(arg0); end
996
- extend Pry::Config::Attributable
1348
+ def windows_console_warning=(_arg0); end
1349
+
1350
+ private
1351
+
1352
+ def default_rc_file; end
1353
+ def initialize_dup(other); end
1354
+ def lazy_readline; end
1355
+ def respond_to_missing?(method_name, include_all = T.unsafe(nil)); end
997
1356
  end
1357
+
998
1358
  module Pry::Config::Attributable
999
1359
  def attribute(attr_name); end
1000
1360
  end
1001
- class Pry::Config::Value
1361
+
1362
+ class Pry::Config::LazyValue
1363
+ def initialize(&block); end
1364
+
1002
1365
  def call; end
1003
- def initialize(value); end
1004
1366
  end
1367
+
1005
1368
  class Pry::Config::MemoizedValue
1006
- def call; end
1007
1369
  def initialize(&block); end
1008
- end
1009
- class Pry::Config::LazyValue
1370
+
1010
1371
  def call; end
1011
- def initialize(&block); end
1012
- end
1013
- class Pry::Inspector
1014
- end
1015
- class Pry::Pager
1016
- def best_available; end
1017
- def enabled?; end
1018
- def initialize(pry_instance); end
1019
- def open; end
1020
- def output; end
1021
- def page(text); end
1022
- def pry_instance; end
1023
- end
1024
- class Pry::Pager::StopPaging < StandardError
1025
- end
1026
- class Pry::Pager::NullPager
1027
- def <<(str); end
1028
- def close; end
1029
- def height; end
1030
- def initialize(out); end
1031
- def print(str); end
1032
- def puts(str); end
1033
- def width; end
1034
- def write(str); end
1035
- end
1036
- class Pry::Pager::SimplePager < Pry::Pager::NullPager
1037
- def initialize(*arg0); end
1038
- def write(str); end
1039
- end
1040
- class Pry::Pager::SystemPager < Pry::Pager::NullPager
1041
- def close; end
1042
- def initialize(*arg0); end
1043
- def invoked_pager?; end
1044
- def pager; end
1045
- def self.available?; end
1046
- def self.default_pager; end
1047
- def write(str); end
1048
- def write_to_pager(text); end
1049
- end
1050
- class Pry::Pager::PageTracker
1051
- def initialize(rows, cols); end
1052
- def line_length(line); end
1053
- def page?; end
1054
- def record(str); end
1055
- def reset; end
1056
- end
1057
- class Pry::Indent
1058
- def correct_indentation(prompt, code, overhang = nil); end
1059
- def current_prefix; end
1060
- def end_of_statement?(last_token, last_kind); end
1061
- def in_string?; end
1062
- def indent(input); end
1063
- def indent_level; end
1064
- def indentation_delta(tokens); end
1065
- def initialize(pry_instance = nil); end
1066
- def module_nesting; end
1067
- def open_delimiters; end
1068
- def open_delimiters_line; end
1069
- def reset; end
1070
- def self.indent(str); end
1071
- def self.nesting_at(str, line_number); end
1072
- def stack; end
1073
- def tokenize(string); end
1074
- def track_delimiter(token); end
1075
- def track_module_nesting(token, kind); end
1076
- def track_module_nesting_end(token, kind = nil); end
1077
- include Pry::Helpers::BaseHelpers
1078
- end
1079
- class Pry::Indent::UnparseableNestingError < StandardError
1080
- end
1081
- class Pry::ObjectPath
1082
- def complete?(segment); end
1083
- def handle_failure(context, err); end
1084
- def initialize(path_string, current_stack); end
1085
- def resolve; end
1086
- end
1087
- class Pry::Output
1088
- def <<(*objs); end
1089
- def actual_screen_size; end
1090
- def ansicon_env_size; end
1091
- def decolorize_maybe(str); end
1092
- def env_size; end
1093
- def height; end
1094
- def initialize(pry_instance); end
1095
- def io_console_size; end
1096
- def method_missing(method_name, *args, &block); end
1097
- def nonzero_column?(size); end
1098
- def print(*objs); end
1099
- def pry_instance; end
1100
- def puts(*objs); end
1101
- def readline_size; end
1102
- def respond_to_missing?(method_name, include_private = nil); end
1103
- def size; end
1104
- def tty?; end
1105
- def width; end
1106
- def write(*objs); end
1107
- end
1108
- class Pry::InputLock
1109
- def __with_ownership; end
1110
- def enter_interruptible_region; end
1111
- def initialize; end
1112
- def interruptible_region; end
1113
- def leave_interruptible_region; end
1114
- def self.for(input); end
1115
- def self.global_lock; end
1116
- def self.global_lock=(arg0); end
1117
- def self.input_locks; end
1118
- def self.input_locks=(arg0); end
1119
- def with_ownership(&block); end
1120
- end
1121
- class Pry::InputLock::Interrupt < Exception
1122
- end
1123
- class Pry::REPL
1124
- def calculate_overhang(current_prompt, original_val, indented_val); end
1125
- def coolline_available?; end
1126
- def epilogue; end
1127
- def handle_read_errors; end
1128
- def initialize(pry, options = nil); end
1129
- def input(*args, &block); end
1130
- def input_readline(*args); end
1131
- def output(*args, &block); end
1132
- def piping?; end
1133
- def prologue; end
1134
- def pry; end
1135
- def pry=(arg0); end
1136
- def read; end
1137
- def read_line(current_prompt); end
1138
- def readline_available?; end
1139
- def repl; end
1140
- def self.start(options); end
1141
- def set_readline_output; end
1142
- def start; end
1143
- extend Pry::Forwardable
1144
- end
1145
- class Pry::Code
1146
- def <<(line); end
1147
- def ==(other); end
1148
- def after(lineno, lines = nil); end
1149
- def alter(&block); end
1150
- def around(lineno, lines = nil); end
1151
- def before(lineno, lines = nil); end
1152
- def between(start_line, end_line = nil); end
1153
- def code_type; end
1154
- def code_type=(arg0); end
1155
- def comment_describing(line_number); end
1156
- def expression_at(line_number, consume = nil); end
1157
- def grep(pattern); end
1158
- def highlighted; end
1159
- def initialize(lines = nil, start_line = nil, code_type = nil); end
1160
- def length; end
1161
- def max_lineno_width; end
1162
- def method_missing(method_name, *args, &block); end
1163
- def nesting_at(line_number); end
1164
- def print_to_output(output, color = nil); end
1165
- def push(line); end
1166
- def raw; end
1167
- def reject(&block); end
1168
- def respond_to_missing?(method_name, include_private = nil); end
1169
- def select(&block); end
1170
- def self.from_file(filename, code_type = nil); end
1171
- def self.from_method(meth, start_line = nil); end
1172
- def self.from_module(mod, candidate_rank = nil, start_line = nil); end
1173
- def take_lines(start_line, num_lines); end
1174
- def to_s; end
1175
- def with_indentation(spaces = nil); end
1176
- def with_line_numbers(y_n = nil); end
1177
- def with_marker(lineno = nil); end
1178
- end
1179
- class Pry::Ring
1180
- def <<(value); end
1181
- def [](index); end
1182
- def clear; end
1183
- def count; end
1184
- def initialize(max_size); end
1185
- def max_size; end
1186
- def size; end
1187
- def to_a; end
1188
- def transpose_buffer_tail; end
1189
- end
1190
- class Pry::Method
1191
- def ==(other); end
1192
- def alias?; end
1193
- def aliases; end
1194
- def bound_method?; end
1195
- def c_source; end
1196
- def comment; end
1197
- def doc; end
1198
- def dynamically_defined?; end
1199
- def initialize(method, known_info = nil); end
1200
- def is_a?(klass); end
1201
- def kind_of?(klass); end
1202
- def method_missing(method_name, *args, &block); end
1203
- def method_name_from_first_line(first_ln); end
1204
- def name; end
1205
- def name_with_owner; end
1206
- def original_name; end
1207
- def owner(*args, &block); end
1208
- def parameters(*args, &block); end
1209
- def pry_doc_info; end
1210
- def pry_method?; end
1211
- def receiver(*args, &block); end
1212
- def redefine(source); end
1213
- def respond_to?(method_name, include_all = nil); end
1214
- def respond_to_missing?(method_name, include_private = nil); end
1215
- def ruby_source; end
1216
- def self.all_from_class(klass, include_super = nil); end
1217
- def self.all_from_obj(obj, include_super = nil); end
1218
- def self.from_binding(binding); end
1219
- def self.from_class(klass, name, target = nil); end
1220
- def self.from_module(klass, name, target = nil); end
1221
- def self.from_obj(obj, name, target = nil); end
1222
- def self.from_str(name, target = nil, options = nil); end
1223
- def self.instance_method_definition?(name, definition_line); end
1224
- def self.instance_resolution_order(klass); end
1225
- def self.lookup_method_via_binding(obj, method_name, method_type, target = nil); end
1226
- def self.method_definition?(name, definition_line); end
1227
- def self.resolution_order(obj); end
1228
- def self.singleton_class_of(obj); end
1229
- def self.singleton_class_resolution_order(klass); end
1230
- def self.singleton_method_definition?(name, definition_line); end
1231
- def signature; end
1232
- def singleton_method?; end
1233
- def source; end
1234
- def source?; end
1235
- def source_file; end
1236
- def source_line; end
1237
- def source_range; end
1238
- def source_type; end
1239
- def super(times = nil); end
1240
- def super_using_ancestors(ancestors, times = nil); end
1241
- def unbound_method?; end
1242
- def undefined?; end
1243
- def visibility; end
1244
- def wrapped; end
1245
- def wrapped_owner; end
1246
- extend Pry::Forwardable
1247
- extend Pry::Helpers::BaseHelpers
1248
- include Pry::CodeObject::Helpers
1249
- include Pry::Helpers::BaseHelpers
1250
- include Pry::Helpers::DocumentationHelpers
1251
1372
  end
1252
- class Pry::WrappedModule
1253
- def all_methods_for(mod); end
1254
- def all_relevant_methods_for(mod); end
1255
- def all_source_locations_by_popularity; end
1256
- def candidate(rank); end
1257
- def candidates; end
1258
- def class?; end
1259
- def constants(inherit = nil); end
1260
- def doc; end
1261
- def file; end
1262
- def initialize(mod); end
1263
- def line; end
1264
- def lines_for_file(file); end
1265
- def method_candidates; end
1266
- def method_defined_by_forwardable_module?(method); end
1267
- def method_missing(method_name, *args, &block); end
1268
- def method_prefix; end
1269
- def module?; end
1270
- def nested_module?(parent, name); end
1271
- def nonblank_name; end
1272
- def number_of_candidates; end
1273
- def primary_candidate; end
1274
- def respond_to_missing?(method_name, include_private = nil); end
1275
- def self.from_str(mod_name, target = nil); end
1276
- def self.safe_to_evaluate?(str, target); end
1277
- def singleton_class?; end
1278
- def singleton_instance; end
1279
- def source; end
1280
- def source_file; end
1281
- def source_line; end
1282
- def source_location; end
1283
- def super(times = nil); end
1284
- def wrapped; end
1285
- def yard_doc; end
1286
- def yard_docs?; end
1287
- def yard_file; end
1288
- def yard_line; end
1289
- include Pry::CodeObject::Helpers
1290
- include Pry::Helpers::BaseHelpers
1373
+
1374
+ class Pry::Config::Value
1375
+ def initialize(value); end
1376
+
1377
+ def call; end
1291
1378
  end
1292
- class Pry::WrappedModule::Candidate
1293
- def class?(*args, &block); end
1294
- def class_regexes; end
1295
- def doc; end
1296
- def file; end
1297
- def first_line_of_module_definition(file, line); end
1298
- def first_method_source_location; end
1299
- def initialize(wrapper, rank); end
1300
- def last_method_source_location; end
1301
- def line; end
1302
- def lines_for_file(*a, &b); end
1303
- def method_candidates(*a, &b); end
1304
- def module?(*args, &block); end
1305
- def name(*a, &b); end
1306
- def nonblank_name(*args, &block); end
1307
- def number_of_candidates(*args, &block); end
1308
- def number_of_lines_in_first_chunk; end
1309
- def source; end
1310
- def source_file; end
1311
- def source_line; end
1312
- def source_location; end
1313
- def wrapped(*args, &block); end
1314
- def yard_docs?(*a, &b); end
1315
- extend Pry::Forwardable
1316
- include Pry::CodeObject::Helpers
1317
- include Pry::Helpers::DocumentationHelpers
1379
+
1380
+ module Pry::ControlDHandler
1381
+ class << self
1382
+ def default(pry_instance); end
1383
+ end
1318
1384
  end
1319
- class Pry::Slop
1320
- def [](key); end
1321
- def add_callback(label, &block); end
1322
- def autocreate(items, index); end
1323
- def banner(banner = nil); end
1324
- def banner=(banner); end
1325
- def build_option(objects, &block); end
1326
- def clean(object); end
1327
- def command(command, options = nil, &block); end
1328
- def commands_to_help; end
1329
- def config; end
1330
- def description(desc = nil); end
1331
- def description=(desc); end
1332
- def each(&block); end
1333
- def execute_multiple_switches(option, argument, index); end
1334
- def execute_option(option, argument, index, item = nil); end
1335
- def extract_long_flag(objects, config); end
1336
- def extract_option(flag); end
1337
- def extract_short_flag(objects, config); end
1338
- def fetch_command(command); end
1339
- def fetch_option(key); end
1340
- def get(key); end
1341
- def help; end
1342
- def initialize(config = nil, &block); end
1343
- def method_missing(method, *args, &block); end
1344
- def missing; end
1345
- def on(*objects, &block); end
1346
- def opt(*objects, &block); end
1347
- def option(*objects, &block); end
1348
- def options; end
1349
- def parse!(items = nil, &block); end
1350
- def parse(items = nil, &block); end
1351
- def present?(*keys); end
1352
- def process_item(items, index, &block); end
1353
- def respond_to_missing?(method_name, include_all = nil); end
1354
- def run(callable = nil, &block); end
1355
- def self.optspec(string, config = nil); end
1356
- def self.parse!(items = nil, config = nil, &block); end
1357
- def self.parse(items = nil, config = nil, &block); end
1358
- def separator(text); end
1359
- def strict?; end
1360
- def to_h(include_commands = nil); end
1361
- def to_hash(include_commands = nil); end
1362
- def to_s; end
1363
- include Enumerable
1385
+
1386
+ Pry::EMPTY_COMPLETIONS = T.let(T.unsafe(nil), Array)
1387
+
1388
+ class Pry::Editor
1389
+ include ::Pry::Helpers::OptionsHelpers
1390
+ include ::Pry::Helpers::CommandHelpers
1391
+
1392
+ def initialize(pry_instance); end
1393
+
1394
+ def build_editor_invocation_string(file, line, blocking); end
1395
+ def edit_tempfile_with_content(initial_content, line = T.unsafe(nil)); end
1396
+ def invoke_editor(file, line, blocking = T.unsafe(nil)); end
1397
+ def pry_instance; end
1398
+
1399
+ private
1400
+
1401
+ def blocking_flag_for_editor(blocking); end
1402
+ def editor_name; end
1403
+ def open_editor(editor_invocation); end
1404
+ def open_editor_on_jruby(editor_invocation); end
1405
+ def start_line_syntax_for_editor(file_name, line_number); end
1406
+
1407
+ class << self
1408
+ def default; end
1409
+ end
1364
1410
  end
1365
- class Pry::Slop::Option
1366
- def accepts_optional_argument?; end
1367
- def argument?; end
1368
- def argument_in_value; end
1369
- def argument_in_value=(arg0); end
1370
- def as?; end
1371
- def autocreated?; end
1372
- def call(*objects); end
1373
- def callback?; end
1374
- def config; end
1375
- def count; end
1376
- def count=(arg0); end
1377
- def default?; end
1378
- def delimiter?; end
1379
- def description; end
1380
- def expects_argument?; end
1381
- def help; end
1382
- def initialize(slop, short, long, description, config = nil, &block); end
1383
- def inspect; end
1384
- def key; end
1385
- def limit?; end
1386
- def long; end
1387
- def match?; end
1388
- def optional?; end
1389
- def optional_argument?; end
1390
- def required?; end
1391
- def short; end
1392
- def tail?; end
1393
- def to_s; end
1394
- def types; end
1395
- def value; end
1396
- def value=(new_value); end
1397
- def value_to_float(value); end
1398
- def value_to_integer(value); end
1399
- def value_to_range(value); end
1411
+
1412
+ module Pry::Env
1413
+ class << self
1414
+ def [](key); end
1415
+ end
1400
1416
  end
1401
- class Pry::Slop::Commands
1402
- def [](key); end
1403
- def arguments; end
1404
- def banner(banner = nil); end
1405
- def banner=(arg0); end
1406
- def commands; end
1407
- def config; end
1408
- def default(config = nil, &block); end
1409
- def each(&block); end
1410
- def execute_arguments!(items); end
1411
- def execute_global_opts!(items); end
1412
- def get(key); end
1413
- def global(config = nil, &block); end
1414
- def help; end
1415
- def initialize(config = nil, &block); end
1416
- def inspect; end
1417
- def on(command, config = nil, &block); end
1418
- def parse!(items = nil); end
1419
- def parse(items = nil); end
1420
- def present?(key); end
1421
- def to_hash; end
1422
- def to_s; end
1423
- include Enumerable
1417
+
1418
+ module Pry::ExceptionHandler
1419
+ class << self
1420
+ def handle_exception(output, exception, _pry_instance); end
1421
+
1422
+ private
1423
+
1424
+ def cause_text(cause); end
1425
+ def exception_text(exception); end
1426
+ def standard_error_text_for(exception); end
1427
+ end
1428
+ end
1429
+
1430
+ module Pry::Forwardable
1431
+ include ::Forwardable
1432
+
1433
+ def def_private_delegators(target, *private_delegates); end
1434
+ end
1435
+
1436
+ module Pry::FrozenObjectException
1437
+ class << self
1438
+ def ===(exception); end
1439
+ end
1424
1440
  end
1425
- class Pry::Slop::Error < StandardError
1441
+
1442
+ module Pry::Helpers
1443
+ class << self
1444
+ def tablify(things, line_length, pry_instance = T.unsafe(nil)); end
1445
+ def tablify_or_one_line(heading, things, pry_instance = T.unsafe(nil)); end
1446
+ def tablify_to_screen_width(things, options, pry_instance = T.unsafe(nil)); end
1447
+ end
1426
1448
  end
1427
- class Pry::Slop::MissingArgumentError < Pry::Slop::Error
1449
+
1450
+ module Pry::Helpers::BaseHelpers
1451
+ extend ::Pry::Helpers::BaseHelpers
1452
+
1453
+ def colorize_code(code); end
1454
+ def find_command(name, set = T.unsafe(nil)); end
1455
+ def heading(text); end
1456
+ def highlight(string, regexp, highlight_color = T.unsafe(nil)); end
1457
+ def not_a_real_file?(file); end
1458
+ def safe_send(obj, method, *args, &block); end
1459
+ def silence_warnings; end
1460
+ def stagger_output(text, _out = T.unsafe(nil)); end
1461
+ def use_ansi_codes?; end
1428
1462
  end
1429
- class Pry::Slop::MissingOptionError < Pry::Slop::Error
1463
+
1464
+ module Pry::Helpers::CommandHelpers
1465
+ include ::Pry::Helpers::OptionsHelpers
1466
+ extend ::Pry::Helpers::OptionsHelpers
1467
+ extend ::Pry::Helpers::CommandHelpers
1468
+
1469
+ def absolute_index_number(line_number, array_length); end
1470
+ def absolute_index_range(range_or_number, array_length); end
1471
+ def get_method_or_raise(method_name, context, opts = T.unsafe(nil)); end
1472
+ def internal_binding?(context); end
1473
+ def one_index_number(line_number); end
1474
+ def one_index_range(range); end
1475
+ def one_index_range_or_number(range_or_number); end
1476
+ def restrict_to_lines(content, lines); end
1477
+ def set_file_and_dir_locals(file_name, pry = T.unsafe(nil), ctx = T.unsafe(nil)); end
1478
+ def temp_file(ext = T.unsafe(nil)); end
1479
+ def unindent(dirty_text, left_padding = T.unsafe(nil)); end
1430
1480
  end
1431
- class Pry::Slop::InvalidArgumentError < Pry::Slop::Error
1481
+
1482
+ module Pry::Helpers::DocumentationHelpers
1483
+ private
1484
+
1485
+ def get_comment_content(comment); end
1486
+ def process_comment_markup(comment); end
1487
+ def process_rdoc(comment); end
1488
+ def process_yardoc(comment); end
1489
+ def process_yardoc_tag(comment, tag); end
1490
+ def strip_comments_from_c_code(code); end
1491
+ def strip_leading_whitespace(text); end
1492
+
1493
+ class << self
1494
+ def get_comment_content(comment); end
1495
+ def process_comment_markup(comment); end
1496
+ def process_rdoc(comment); end
1497
+ def process_yardoc(comment); end
1498
+ def process_yardoc_tag(comment, tag); end
1499
+ def strip_comments_from_c_code(code); end
1500
+ def strip_leading_whitespace(text); end
1501
+ end
1432
1502
  end
1433
- class Pry::Slop::InvalidOptionError < Pry::Slop::Error
1503
+
1504
+ Pry::Helpers::DocumentationHelpers::YARD_TAGS = T.let(T.unsafe(nil), Array)
1505
+
1506
+ module Pry::Helpers::OptionsHelpers
1507
+ private
1508
+
1509
+ def method_object; end
1510
+ def method_options(opt); end
1511
+
1512
+ class << self
1513
+ def method_object; end
1514
+ def method_options(opt); end
1515
+ end
1434
1516
  end
1435
- class Pry::Slop::InvalidCommandError < Pry::Slop::Error
1517
+
1518
+ module Pry::Helpers::Platform
1519
+ class << self
1520
+ def jruby?; end
1521
+ def jruby_19?; end
1522
+ def linux?; end
1523
+ def mac_osx?; end
1524
+ def mri?; end
1525
+ def mri_19?; end
1526
+ def mri_2?; end
1527
+ def windows?; end
1528
+ def windows_ansi?; end
1529
+ end
1436
1530
  end
1437
- class Pry::Command::ExitAll < Pry::ClassCommand
1438
- def process; end
1531
+
1532
+ class Pry::Helpers::Table
1533
+ def initialize(items, args, pry_instance = T.unsafe(nil)); end
1534
+
1535
+ def ==(other); end
1536
+ def column_count; end
1537
+ def column_count=(count); end
1538
+ def columns; end
1539
+ def fits_on_line?(line_length); end
1540
+ def items; end
1541
+ def items=(items); end
1542
+ def rows_to_s(style = T.unsafe(nil)); end
1543
+ def to_a; end
1544
+ def to_s; end
1545
+
1546
+ private
1547
+
1548
+ def _max_width(things); end
1549
+ def _rebuild_colorless_cache; end
1550
+ def _recall_color_for(thing); end
1551
+ def _recolumn; end
1552
+ end
1553
+
1554
+ module Pry::Helpers::Text
1555
+ extend ::Pry::Helpers::Text
1556
+
1557
+ def black(text); end
1558
+ def black_on_black(text); end
1559
+ def black_on_blue(text); end
1560
+ def black_on_cyan(text); end
1561
+ def black_on_green(text); end
1562
+ def black_on_magenta(text); end
1563
+ def black_on_purple(text); end
1564
+ def black_on_red(text); end
1565
+ def black_on_white(text); end
1566
+ def black_on_yellow(text); end
1567
+ def blue(text); end
1568
+ def blue_on_black(text); end
1569
+ def blue_on_blue(text); end
1570
+ def blue_on_cyan(text); end
1571
+ def blue_on_green(text); end
1572
+ def blue_on_magenta(text); end
1573
+ def blue_on_purple(text); end
1574
+ def blue_on_red(text); end
1575
+ def blue_on_white(text); end
1576
+ def blue_on_yellow(text); end
1577
+ def bold(text); end
1578
+ def bright_black(text); end
1579
+ def bright_black_on_black(text); end
1580
+ def bright_black_on_blue(text); end
1581
+ def bright_black_on_cyan(text); end
1582
+ def bright_black_on_green(text); end
1583
+ def bright_black_on_magenta(text); end
1584
+ def bright_black_on_purple(text); end
1585
+ def bright_black_on_red(text); end
1586
+ def bright_black_on_white(text); end
1587
+ def bright_black_on_yellow(text); end
1588
+ def bright_blue(text); end
1589
+ def bright_blue_on_black(text); end
1590
+ def bright_blue_on_blue(text); end
1591
+ def bright_blue_on_cyan(text); end
1592
+ def bright_blue_on_green(text); end
1593
+ def bright_blue_on_magenta(text); end
1594
+ def bright_blue_on_purple(text); end
1595
+ def bright_blue_on_red(text); end
1596
+ def bright_blue_on_white(text); end
1597
+ def bright_blue_on_yellow(text); end
1598
+ def bright_cyan(text); end
1599
+ def bright_cyan_on_black(text); end
1600
+ def bright_cyan_on_blue(text); end
1601
+ def bright_cyan_on_cyan(text); end
1602
+ def bright_cyan_on_green(text); end
1603
+ def bright_cyan_on_magenta(text); end
1604
+ def bright_cyan_on_purple(text); end
1605
+ def bright_cyan_on_red(text); end
1606
+ def bright_cyan_on_white(text); end
1607
+ def bright_cyan_on_yellow(text); end
1608
+ def bright_green(text); end
1609
+ def bright_green_on_black(text); end
1610
+ def bright_green_on_blue(text); end
1611
+ def bright_green_on_cyan(text); end
1612
+ def bright_green_on_green(text); end
1613
+ def bright_green_on_magenta(text); end
1614
+ def bright_green_on_purple(text); end
1615
+ def bright_green_on_red(text); end
1616
+ def bright_green_on_white(text); end
1617
+ def bright_green_on_yellow(text); end
1618
+ def bright_magenta(text); end
1619
+ def bright_magenta_on_black(text); end
1620
+ def bright_magenta_on_blue(text); end
1621
+ def bright_magenta_on_cyan(text); end
1622
+ def bright_magenta_on_green(text); end
1623
+ def bright_magenta_on_magenta(text); end
1624
+ def bright_magenta_on_purple(text); end
1625
+ def bright_magenta_on_red(text); end
1626
+ def bright_magenta_on_white(text); end
1627
+ def bright_magenta_on_yellow(text); end
1628
+ def bright_purple(text); end
1629
+ def bright_purple_on_black(text); end
1630
+ def bright_purple_on_blue(text); end
1631
+ def bright_purple_on_cyan(text); end
1632
+ def bright_purple_on_green(text); end
1633
+ def bright_purple_on_magenta(text); end
1634
+ def bright_purple_on_purple(text); end
1635
+ def bright_purple_on_red(text); end
1636
+ def bright_purple_on_white(text); end
1637
+ def bright_purple_on_yellow(text); end
1638
+ def bright_red(text); end
1639
+ def bright_red_on_black(text); end
1640
+ def bright_red_on_blue(text); end
1641
+ def bright_red_on_cyan(text); end
1642
+ def bright_red_on_green(text); end
1643
+ def bright_red_on_magenta(text); end
1644
+ def bright_red_on_purple(text); end
1645
+ def bright_red_on_red(text); end
1646
+ def bright_red_on_white(text); end
1647
+ def bright_red_on_yellow(text); end
1648
+ def bright_white(text); end
1649
+ def bright_white_on_black(text); end
1650
+ def bright_white_on_blue(text); end
1651
+ def bright_white_on_cyan(text); end
1652
+ def bright_white_on_green(text); end
1653
+ def bright_white_on_magenta(text); end
1654
+ def bright_white_on_purple(text); end
1655
+ def bright_white_on_red(text); end
1656
+ def bright_white_on_white(text); end
1657
+ def bright_white_on_yellow(text); end
1658
+ def bright_yellow(text); end
1659
+ def bright_yellow_on_black(text); end
1660
+ def bright_yellow_on_blue(text); end
1661
+ def bright_yellow_on_cyan(text); end
1662
+ def bright_yellow_on_green(text); end
1663
+ def bright_yellow_on_magenta(text); end
1664
+ def bright_yellow_on_purple(text); end
1665
+ def bright_yellow_on_red(text); end
1666
+ def bright_yellow_on_white(text); end
1667
+ def bright_yellow_on_yellow(text); end
1668
+ def cyan(text); end
1669
+ def cyan_on_black(text); end
1670
+ def cyan_on_blue(text); end
1671
+ def cyan_on_cyan(text); end
1672
+ def cyan_on_green(text); end
1673
+ def cyan_on_magenta(text); end
1674
+ def cyan_on_purple(text); end
1675
+ def cyan_on_red(text); end
1676
+ def cyan_on_white(text); end
1677
+ def cyan_on_yellow(text); end
1678
+ def default(text); end
1679
+ def green(text); end
1680
+ def green_on_black(text); end
1681
+ def green_on_blue(text); end
1682
+ def green_on_cyan(text); end
1683
+ def green_on_green(text); end
1684
+ def green_on_magenta(text); end
1685
+ def green_on_purple(text); end
1686
+ def green_on_red(text); end
1687
+ def green_on_white(text); end
1688
+ def green_on_yellow(text); end
1689
+ def indent(text, chars); end
1690
+ def magenta(text); end
1691
+ def magenta_on_black(text); end
1692
+ def magenta_on_blue(text); end
1693
+ def magenta_on_cyan(text); end
1694
+ def magenta_on_green(text); end
1695
+ def magenta_on_magenta(text); end
1696
+ def magenta_on_purple(text); end
1697
+ def magenta_on_red(text); end
1698
+ def magenta_on_white(text); end
1699
+ def magenta_on_yellow(text); end
1700
+ def no_color; end
1701
+ def no_pager; end
1702
+ def purple(text); end
1703
+ def purple_on_black(text); end
1704
+ def purple_on_blue(text); end
1705
+ def purple_on_cyan(text); end
1706
+ def purple_on_green(text); end
1707
+ def purple_on_magenta(text); end
1708
+ def purple_on_purple(text); end
1709
+ def purple_on_red(text); end
1710
+ def purple_on_white(text); end
1711
+ def purple_on_yellow(text); end
1712
+ def red(text); end
1713
+ def red_on_black(text); end
1714
+ def red_on_blue(text); end
1715
+ def red_on_cyan(text); end
1716
+ def red_on_green(text); end
1717
+ def red_on_magenta(text); end
1718
+ def red_on_purple(text); end
1719
+ def red_on_red(text); end
1720
+ def red_on_white(text); end
1721
+ def red_on_yellow(text); end
1722
+ def strip_color(text); end
1723
+ def white(text); end
1724
+ def white_on_black(text); end
1725
+ def white_on_blue(text); end
1726
+ def white_on_cyan(text); end
1727
+ def white_on_green(text); end
1728
+ def white_on_magenta(text); end
1729
+ def white_on_purple(text); end
1730
+ def white_on_red(text); end
1731
+ def white_on_white(text); end
1732
+ def white_on_yellow(text); end
1733
+ def with_line_numbers(text, offset, color = T.unsafe(nil)); end
1734
+ def yellow(text); end
1735
+ def yellow_on_black(text); end
1736
+ def yellow_on_blue(text); end
1737
+ def yellow_on_cyan(text); end
1738
+ def yellow_on_green(text); end
1739
+ def yellow_on_magenta(text); end
1740
+ def yellow_on_purple(text); end
1741
+ def yellow_on_red(text); end
1742
+ def yellow_on_white(text); end
1743
+ def yellow_on_yellow(text); end
1439
1744
  end
1440
- class Pry::CLI
1441
- def self.add_option_processor(&block); end
1442
- def self.add_options(&block); end
1443
- def self.add_plugin_options; end
1444
- def self.input_args; end
1445
- def self.input_args=(arg0); end
1446
- def self.option_processors; end
1447
- def self.option_processors=(arg0); end
1448
- def self.options; end
1449
- def self.options=(arg0); end
1450
- def self.parse_options(args = nil); end
1451
- def self.reset; end
1452
- def self.start(opts); end
1453
- end
1454
- class Pry::CLI::NoOptionsError < StandardError
1455
- end
1456
- class Object < BasicObject
1457
- def __binding__; end
1458
- def pry(object = nil, hash = nil); end
1745
+
1746
+ Pry::Helpers::Text::COLORS = T.let(T.unsafe(nil), Hash)
1747
+
1748
+ class Pry::History
1749
+ def initialize(options = T.unsafe(nil)); end
1750
+
1751
+ def <<(line); end
1752
+ def clear; end
1753
+ def filter(history); end
1754
+ def history_line_count; end
1755
+ def load; end
1756
+ def loader; end
1757
+ def loader=(_arg0); end
1758
+ def original_lines; end
1759
+ def push(line); end
1760
+ def saver; end
1761
+ def saver=(_arg0); end
1762
+ def session_line_count; end
1763
+ def to_a; end
1764
+
1765
+ private
1766
+
1767
+ def history_file; end
1768
+ def history_file_path; end
1769
+ def invalid_readline_line?(line); end
1770
+ def read_from_file; end
1771
+ def save_to_file(line); end
1772
+ def should_ignore?(line); end
1773
+
1774
+ class << self
1775
+ def default_file; end
1776
+ end
1459
1777
  end
1460
- class BasicObject
1461
- def __binding__; end
1778
+
1779
+ class Pry::Hooks
1780
+ def initialize; end
1781
+
1782
+ def add_hook(event_name, hook_name, callable = T.unsafe(nil), &block); end
1783
+ def clear_event_hooks(event_name); end
1784
+ def delete_hook(event_name, hook_name); end
1785
+ def errors; end
1786
+ def exec_hook(event_name, *args, &block); end
1787
+ def get_hook(event_name, hook_name); end
1788
+ def get_hooks(event_name); end
1789
+ def hook_count(event_name); end
1790
+ def hook_exists?(event_name, hook_name); end
1791
+ def merge(other); end
1792
+ def merge!(other); end
1793
+
1794
+ protected
1795
+
1796
+ def hooks; end
1797
+
1798
+ private
1799
+
1800
+ def initialize_copy(_orig); end
1801
+
1802
+ class << self
1803
+ def default; end
1804
+ end
1462
1805
  end
1463
- class Pry::REPLFileLoader
1464
- def define_additional_commands; end
1465
- def initialize(file_name); end
1466
- def interactive_mode(pry_instance); end
1467
- def load; end
1468
- def non_interactive_mode(pry_instance, content); end
1806
+
1807
+ class Pry::Indent
1808
+ include ::Pry::Helpers::BaseHelpers
1809
+
1810
+ def initialize(pry_instance = T.unsafe(nil)); end
1811
+
1812
+ def correct_indentation(prompt, code, overhang = T.unsafe(nil)); end
1813
+ def current_prefix; end
1814
+ def end_of_statement?(last_token, last_kind); end
1815
+ def in_string?; end
1816
+ def indent(input); end
1817
+ def indent_level; end
1818
+ def indentation_delta(tokens); end
1819
+ def module_nesting; end
1820
+ def open_delimiters; end
1821
+ def open_delimiters_line; end
1822
+ def reset; end
1823
+ def stack; end
1824
+ def tokenize(string); end
1825
+ def track_delimiter(token); end
1826
+ def track_module_nesting(token, kind); end
1827
+ def track_module_nesting_end(token, kind = T.unsafe(nil)); end
1828
+
1829
+ class << self
1830
+ def indent(str); end
1831
+ def nesting_at(str, line_number); end
1832
+ end
1469
1833
  end
1470
- class Pry::Code::LOC
1471
- def ==(other); end
1472
- def add_line_number(max_width = nil, color = nil); end
1473
- def add_marker(marker_lineno); end
1474
- def colorize(code_type); end
1475
- def dup; end
1476
- def handle_multiline_entries_from_edit_command(line, max_width); end
1477
- def indent(distance); end
1478
- def initialize(line, lineno); end
1479
- def line; end
1480
- def lineno; end
1481
- def tuple; end
1834
+
1835
+ Pry::Indent::IGNORE_TOKENS = T.let(T.unsafe(nil), Array)
1836
+ Pry::Indent::MIDWAY_TOKENS = T.let(T.unsafe(nil), Array)
1837
+ Pry::Indent::OPEN_TOKENS = T.let(T.unsafe(nil), Hash)
1838
+ Pry::Indent::OPTIONAL_DO_TOKENS = T.let(T.unsafe(nil), Array)
1839
+ Pry::Indent::SINGLELINE_TOKENS = T.let(T.unsafe(nil), Array)
1840
+ Pry::Indent::SPACES = T.let(T.unsafe(nil), String)
1841
+ Pry::Indent::STATEMENT_END_TOKENS = T.let(T.unsafe(nil), Array)
1842
+ class Pry::Indent::UnparseableNestingError < ::StandardError; end
1843
+
1844
+ class Pry::InputCompleter
1845
+ def initialize(input, pry = T.unsafe(nil)); end
1846
+
1847
+ def build_path(input); end
1848
+ def call(str, options = T.unsafe(nil)); end
1849
+ def ignored_modules; end
1850
+ def select_message(path, receiver, message, candidates); end
1482
1851
  end
1483
- class Pry::Code::CodeRange
1484
- def end_line; end
1485
- def find_end_index(lines); end
1486
- def find_start_index(lines); end
1487
- def force_set_end_line; end
1488
- def indices(lines); end
1489
- def indices_range(lines); end
1490
- def initialize(start_line, end_line = nil); end
1491
- def set_end_line_from_range; end
1492
- def start_line; end
1852
+
1853
+ Pry::InputCompleter::ARRAY_REGEXP = T.let(T.unsafe(nil), Regexp)
1854
+ Pry::InputCompleter::CONSTANT_OR_METHOD_REGEXP = T.let(T.unsafe(nil), Regexp)
1855
+ Pry::InputCompleter::CONSTANT_REGEXP = T.let(T.unsafe(nil), Regexp)
1856
+ Pry::InputCompleter::GLOBALVARIABLE_REGEXP = T.let(T.unsafe(nil), Regexp)
1857
+ Pry::InputCompleter::HEX_REGEXP = T.let(T.unsafe(nil), Regexp)
1858
+ Pry::InputCompleter::NUMERIC_REGEXP = T.let(T.unsafe(nil), Regexp)
1859
+ Pry::InputCompleter::PROC_OR_HASH_REGEXP = T.let(T.unsafe(nil), Regexp)
1860
+ Pry::InputCompleter::REGEX_REGEXP = T.let(T.unsafe(nil), Regexp)
1861
+ Pry::InputCompleter::RESERVED_WORDS = T.let(T.unsafe(nil), Array)
1862
+ Pry::InputCompleter::SYMBOL_METHOD_CALL_REGEXP = T.let(T.unsafe(nil), Regexp)
1863
+ Pry::InputCompleter::SYMBOL_REGEXP = T.let(T.unsafe(nil), Regexp)
1864
+ Pry::InputCompleter::TOPLEVEL_LOOKUP_REGEXP = T.let(T.unsafe(nil), Regexp)
1865
+ Pry::InputCompleter::VARIABLE_REGEXP = T.let(T.unsafe(nil), Regexp)
1866
+ Pry::InputCompleter::WORD_ESCAPE_STR = T.let(T.unsafe(nil), String)
1867
+
1868
+ class Pry::InputLock
1869
+ def initialize; end
1870
+
1871
+ def __with_ownership; end
1872
+ def enter_interruptible_region; end
1873
+ def interruptible_region; end
1874
+ def leave_interruptible_region; end
1875
+ def with_ownership(&block); end
1876
+
1877
+ class << self
1878
+ def for(input); end
1879
+ def global_lock; end
1880
+ def global_lock=(_arg0); end
1881
+ def input_locks; end
1882
+ def input_locks=(_arg0); end
1883
+ end
1493
1884
  end
1494
- class Pry::CodeFile
1495
- def abs_path; end
1496
- def code; end
1497
- def code_path; end
1498
- def code_type; end
1499
- def from_load_path; end
1500
- def from_pry_init_pwd; end
1501
- def from_pwd; end
1502
- def initialize(filename, code_type = nil); end
1503
- def readable?(path); end
1504
- def type_from_filename(filename, default = nil); end
1885
+
1886
+ class Pry::InputLock::Interrupt < ::Exception; end
1887
+ class Pry::Inspector; end
1888
+ Pry::Inspector::MAP = T.let(T.unsafe(nil), Hash)
1889
+ Pry::LOCAL_RC_FILE = T.let(T.unsafe(nil), String)
1890
+
1891
+ class Pry::LastException < ::BasicObject
1892
+ def initialize(exception); end
1893
+
1894
+ def bt_index; end
1895
+ def bt_index=(_arg0); end
1896
+ def bt_source_location_for(index); end
1897
+ def file; end
1898
+ def inc_bt_index; end
1899
+ def line; end
1900
+ def method_missing(name, *args, &block); end
1901
+ def wrapped_exception; end
1902
+
1903
+ private
1904
+
1905
+ def respond_to_missing?(name, include_all = T.unsafe(nil)); end
1505
1906
  end
1506
- class Pry::Method::WeirdMethodLocator
1507
- def all_methods_for(obj); end
1508
- def expanded_source_location(source_location); end
1509
- def find_method; end
1510
- def find_method_in_superclass; end
1511
- def find_renamed_method; end
1512
- def index_to_line_number(index); end
1513
- def initialize(method, target); end
1514
- def lines_for_file(file); end
1515
- def lost_method?; end
1516
- def method; end
1517
- def method=(arg0); end
1518
- def normal_method?(method); end
1519
- def pry_file?; end
1520
- def renamed_method_source_location; end
1521
- def self.normal_method?(method, binding); end
1522
- def self.weird_method?(method, binding); end
1523
- def skip_superclass_search?; end
1524
- def target; end
1525
- def target=(arg0); end
1526
- def target_file; end
1527
- def target_line; end
1528
- def target_self; end
1529
- def valid_file?(file); end
1907
+
1908
+ class Pry::Method
1909
+ include ::Pry::Helpers::BaseHelpers
1910
+ include ::Pry::Helpers::DocumentationHelpers
1911
+ include ::Pry::CodeObject::Helpers
1912
+ extend ::Pry::Helpers::BaseHelpers
1913
+ extend ::Forwardable
1914
+ extend ::Pry::Forwardable
1915
+
1916
+ def initialize(method, known_info = T.unsafe(nil)); end
1917
+
1918
+ def ==(other); end
1919
+ def alias?; end
1920
+ def aliases; end
1921
+ def bound_method?; end
1922
+ def comment; end
1923
+ def doc; end
1924
+ def dynamically_defined?; end
1925
+ def is_a?(klass); end
1926
+ def kind_of?(klass); end
1927
+ def method_missing(method_name, *args, &block); end
1928
+ def name; end
1929
+ def name_with_owner; end
1930
+ def original_name; end
1931
+ def owner(*args, &block); end
1932
+ def parameters(*args, &block); end
1933
+ def pry_method?; end
1934
+ def receiver(*args, &block); end
1935
+ def redefine(source); end
1936
+ def respond_to?(method_name, include_all = T.unsafe(nil)); end
1937
+ def signature; end
1938
+ def singleton_method?; end
1939
+ def source; end
1940
+ def source?; end
1941
+ def source_file; end
1942
+ def source_line; end
1943
+ def source_range; end
1944
+ def source_type; end
1945
+ def super(times = T.unsafe(nil)); end
1946
+ def unbound_method?; end
1947
+ def undefined?; end
1948
+ def visibility; end
1949
+ def wrapped; end
1950
+ def wrapped_owner; end
1951
+
1952
+ private
1953
+
1954
+ def c_source; end
1955
+ def method_name_from_first_line(first_ln); end
1956
+ def pry_doc_info; end
1957
+ def respond_to_missing?(method_name, include_private = T.unsafe(nil)); end
1958
+ def ruby_source; end
1959
+ def super_using_ancestors(ancestors, times = T.unsafe(nil)); end
1960
+
1961
+ class << self
1962
+ def all_from_class(klass, include_super = T.unsafe(nil)); end
1963
+ def all_from_obj(obj, include_super = T.unsafe(nil)); end
1964
+ def from_binding(binding); end
1965
+ def from_class(klass, name, target = T.unsafe(nil)); end
1966
+ def from_module(klass, name, target = T.unsafe(nil)); end
1967
+ def from_obj(obj, name, target = T.unsafe(nil)); end
1968
+ def from_str(name, target = T.unsafe(nil), options = T.unsafe(nil)); end
1969
+ def instance_method_definition?(name, definition_line); end
1970
+ def instance_resolution_order(klass); end
1971
+ def lookup_method_via_binding(obj, method_name, method_type, target = T.unsafe(nil)); end
1972
+ def method_definition?(name, definition_line); end
1973
+ def resolution_order(obj); end
1974
+ def singleton_class_of(obj); end
1975
+ def singleton_class_resolution_order(klass); end
1976
+ def singleton_method_definition?(name, definition_line); end
1977
+ end
1530
1978
  end
1531
- class Pry::Method::Disowned < Pry::Method
1979
+
1980
+ class Pry::Method::Disowned < ::Pry::Method
1532
1981
  def initialize(receiver, method_name); end
1982
+
1533
1983
  def method_missing(method_name, *args, &block); end
1534
1984
  def name; end
1535
1985
  def owner; end
1536
1986
  def receiver; end
1537
- def respond_to_missing?(method_name, include_private = nil); end
1538
1987
  def source?; end
1539
1988
  def undefined?; end
1989
+
1990
+ private
1991
+
1992
+ def respond_to_missing?(method_name, include_private = T.unsafe(nil)); end
1540
1993
  end
1994
+
1541
1995
  class Pry::Method::Patcher
1542
- def cache_key; end
1543
- def definition_for_owner(line); end
1544
1996
  def initialize(method); end
1997
+
1545
1998
  def method; end
1546
- def method=(arg0); end
1999
+ def method=(_arg0); end
1547
2000
  def patch_in_ram(source); end
1548
- def redefine(source); end
1549
- def self.code_for(filename); end
1550
- def with_method_transaction; end
1551
- def wrap(source); end
1552
- def wrap_for_nesting(source); end
1553
- def wrap_for_owner(source); end
1554
- end
1555
- class Pry::Command::AmendLine < Pry::ClassCommand
1556
- def amend_input; end
1557
- def delete_from_array(array, range); end
1558
- def insert_into_array(array, range); end
1559
- def line_count; end
1560
- def line_range; end
1561
- def process; end
1562
- def replace_in_array(array, range); end
1563
- def start_and_end_line_number; end
1564
- def zero_indexed_range_from_one_indexed_numbers(start_line_number, end_line_number); end
1565
- end
1566
- class Pry::Command::Bang < Pry::ClassCommand
1567
- def process; end
1568
- end
1569
- class Pry::Command::BangPry < Pry::ClassCommand
1570
- def process; end
1571
- end
1572
- class Pry::Command::Cat < Pry::ClassCommand
1573
- def complete(search); end
1574
- def load_path_completions; end
1575
- def options(opt); end
1576
- def process; end
1577
- end
1578
- class Pry::Command::Cat::AbstractFormatter
1579
- def between_lines; end
1580
- def code_type; end
1581
- def decorate(content); end
1582
- def use_line_numbers?; end
1583
- include Pry::Helpers::BaseHelpers
1584
- include Pry::Helpers::CommandHelpers
1585
- end
1586
- class Pry::Command::Cat::InputExpressionFormatter < Pry::Command::Cat::AbstractFormatter
1587
- def format; end
1588
- def initialize(input_expressions, opts); end
1589
- def input_expressions; end
1590
- def input_expressions=(arg0); end
1591
- def normalized_expression_range; end
1592
- def numbered_input_items; end
1593
- def opts; end
1594
- def opts=(arg0); end
1595
- def selected_input_items; end
1596
- end
1597
- class Pry::Command::Cat::ExceptionFormatter < Pry::Command::Cat::AbstractFormatter
1598
- def backtrace_file; end
1599
- def backtrace_level; end
1600
- def backtrace_line; end
1601
- def check_for_errors; end
1602
- def code_window_size; end
1603
- def ex; end
1604
- def format; end
1605
- def header; end
1606
- def increment_backtrace_level; end
1607
- def initialize(exception, pry_instance, opts); end
1608
- def opts; end
1609
- def pry_instance; end
1610
- def start_and_end_line_for_code_window; end
1611
- include Pry::Helpers::Text
1612
- end
1613
- class Pry::Command::Cat::FileFormatter < Pry::Command::Cat::AbstractFormatter
1614
- def code_type; end
1615
- def code_window_size; end
1616
- def decorate(content); end
1617
- def detect_code_type_from_file(file_name); end
1618
- def file_and_line; end
1619
- def file_name; end
1620
- def file_with_embedded_line; end
1621
- def format; end
1622
- def initialize(file_with_embedded_line, pry_instance, opts); end
1623
- def line_number; end
1624
- def opts; end
1625
- def pry_instance; end
1626
- end
1627
- class Pry::Command::Cd < Pry::ClassCommand
1628
- def process; end
1629
- end
1630
- class Pry::Command::ChangeInspector < Pry::ClassCommand
1631
- def inspector_map; end
1632
- def process(inspector); end
1633
- end
1634
- class Pry::Command::ChangePrompt < Pry::ClassCommand
1635
- def change_prompt(prompt); end
1636
- def list_prompts; end
1637
- def options(opt); end
1638
- def process(prompt); end
1639
- end
1640
- class Pry::Command::ClearScreen < Pry::ClassCommand
1641
- def process; end
1642
- end
1643
- class Pry::Command::CodeCollector
1644
- def args; end
1645
- def bad_option_combination?; end
1646
- def code_object; end
1647
- def code_object_doc; end
1648
- def code_object_source_or_file; end
1649
- def content; end
1650
- def convert_to_range(range); end
1651
- def could_not_locate(name); end
1652
- def file; end
1653
- def file=(arg0); end
1654
- def file_content; end
1655
- def initialize(args, opts, pry_instance); end
1656
- def line_range; end
1657
- def obj_name; end
1658
- def opts; end
1659
- def pry_array_content_as_string(array, ranges); end
1660
- def pry_input_content; end
1661
- def pry_instance; end
1662
- def pry_output_content; end
1663
- def restrict_to_lines(content, range); end
1664
- def self.inject_options(opt); end
1665
- def self.input_expression_ranges; end
1666
- def self.input_expression_ranges=(arg0); end
1667
- def self.output_result_ranges; end
1668
- def self.output_result_ranges=(arg0); end
1669
- include Pry::Helpers::CommandHelpers
1670
- end
1671
- class Pry::Command::DisablePry < Pry::ClassCommand
1672
- def process; end
1673
- end
1674
- class Pry::Command::Edit < Pry::ClassCommand
1675
- def apply_runtime_patch; end
1676
- def bad_option_combination?; end
1677
- def code_object; end
1678
- def ensure_file_name_is_valid(file_name); end
1679
- def file_and_line; end
1680
- def file_and_line_for_current_exception; end
1681
- def file_based_exception?; end
1682
- def file_edit; end
1683
- def filename_argument; end
1684
- def initial_temp_file_content; end
1685
- def input_expression; end
1686
- def never_reload?; end
1687
- def options(opt); end
1688
- def patch_exception?; end
1689
- def previously_patched?(code_object); end
1690
- def probably_a_file?(str); end
1691
- def process; end
1692
- def pry_method?(code_object); end
1693
- def reload?(file_name = nil); end
1694
- def reloadable?; end
1695
- def repl_edit; end
1696
- def repl_edit?; end
1697
- def runtime_patch?; end
1698
- end
1699
- class Pry::Command::Edit::ExceptionPatcher
1700
- def file_and_line; end
1701
- def file_and_line=(arg0); end
1702
- def initialize(pry_instance, state, exception_file_and_line); end
1703
- def perform_patch; end
1704
- def pry_instance; end
1705
- def pry_instance=(arg0); end
1706
- def state; end
1707
- def state=(arg0); end
1708
- end
1709
- module Pry::Command::Edit::FileAndLineLocator
1710
- def self.from_binding(target); end
1711
- def self.from_code_object(code_object, filename_argument); end
1712
- def self.from_exception(exception, backtrace_level); end
1713
- def self.from_filename_argument(filename_argument); end
1714
- end
1715
- class Pry::Command::Exit < Pry::ClassCommand
1716
- def process; end
1717
- def process_pop_and_return; end
1718
- end
1719
- class Pry::Command::ExitProgram < Pry::ClassCommand
1720
- def process; end
1721
- end
1722
- class Pry::Command::FindMethod < Pry::ClassCommand
1723
- def additional_info(header, method); end
1724
- def content_search(namespace); end
1725
- def matched_method_lines(header, method); end
1726
- def name_search(namespace); end
1727
- def options(opt); end
1728
- def pattern; end
1729
- def print_matches(matches); end
1730
- def print_matches_for_class(klass, grouped); end
1731
- def process; end
1732
- def recurse_namespace(klass, done = nil, &block); end
1733
- def search_all_methods(namespace); end
1734
- def search_class; end
1735
- def show_search_results(matches); end
1736
- extend Pry::Helpers::BaseHelpers
1737
- end
1738
- class Pry::Command::FixIndent < Pry::ClassCommand
1739
- def process; end
1740
- end
1741
- class Pry::Command::Help < Pry::ClassCommand
1742
- def command_groups; end
1743
- def display_command(command); end
1744
- def display_filtered_commands(search); end
1745
- def display_filtered_search_results(search); end
1746
- def display_index(groups); end
1747
- def display_search(search); end
1748
- def group_sort_key(group_name); end
1749
- def help_text_for_commands(name, commands); end
1750
- def normalize(key); end
1751
- def process; end
1752
- def search_hash(search, hash); end
1753
- def sorted_commands(commands); end
1754
- def sorted_group_names(groups); end
1755
- def visible_commands; end
1756
- end
1757
- class Pry::Command::Hist < Pry::ClassCommand
1758
- def check_for_juxtaposed_replay(replay_sequence); end
1759
- def find_history; end
1760
- def options(opt); end
1761
- def process; end
1762
- def process_clear; end
1763
- def process_display; end
1764
- def process_replay; end
1765
- def process_save; end
1766
- end
1767
- class Pry::Command::ImportSet < Pry::ClassCommand
1768
- def process(_command_set_name); end
1769
- end
1770
- class Pry::Command::JumpTo < Pry::ClassCommand
1771
- def process(break_level); end
2001
+
2002
+ private
2003
+
2004
+ def cache_key; end
2005
+ def definition_for_owner(line); end
2006
+ def redefine(source); end
2007
+ def with_method_transaction; end
2008
+ def wrap(source); end
2009
+ def wrap_for_nesting(source); end
2010
+ def wrap_for_owner(source); end
2011
+
2012
+ class << self
2013
+ def code_for(filename); end
2014
+ end
1772
2015
  end
1773
- class Pry::Command::ListInspectors < Pry::ClassCommand
1774
- def inspector_map; end
1775
- def process; end
1776
- def selected_inspector?(inspector); end
1777
- def selected_text; end
2016
+
2017
+ class Pry::Method::WeirdMethodLocator
2018
+ def initialize(method, target); end
2019
+
2020
+ def find_method; end
2021
+ def lost_method?; end
2022
+ def method; end
2023
+ def method=(_arg0); end
2024
+ def target; end
2025
+ def target=(_arg0); end
2026
+
2027
+ private
2028
+
2029
+ def all_methods_for(obj); end
2030
+ def expanded_source_location(source_location); end
2031
+ def find_method_in_superclass; end
2032
+ def find_renamed_method; end
2033
+ def index_to_line_number(index); end
2034
+ def lines_for_file(file); end
2035
+ def normal_method?(method); end
2036
+ def pry_file?; end
2037
+ def renamed_method_source_location; end
2038
+ def skip_superclass_search?; end
2039
+ def target_file; end
2040
+ def target_line; end
2041
+ def target_self; end
2042
+ def valid_file?(file); end
2043
+
2044
+ class << self
2045
+ def normal_method?(method, binding); end
2046
+ def weird_method?(method, binding); end
2047
+ end
1778
2048
  end
1779
- class Pry::Command::Nesting < Pry::ClassCommand
1780
- def process; end
2049
+
2050
+ class Pry::MethodNotFound < ::Pry::CommandError; end
2051
+
2052
+ class Pry::NoCommandError < ::StandardError
2053
+ def initialize(match, owner); end
1781
2054
  end
1782
- class Pry::Command::Play < Pry::ClassCommand
1783
- def code_object; end
1784
- def content; end
1785
- def content_after_options; end
1786
- def content_at_expression; end
1787
- def default_file; end
1788
- def file_content; end
1789
- def options(opt); end
1790
- def perform_play; end
1791
- def process; end
1792
- def should_use_default_file?; end
1793
- def show_input; end
2055
+
2056
+ class Pry::ObjectPath
2057
+ def initialize(path_string, current_stack); end
2058
+
2059
+ def resolve; end
2060
+
2061
+ private
2062
+
2063
+ def complete?(segment); end
2064
+ def handle_failure(context, err); end
1794
2065
  end
1795
- class Pry::Command::PryBacktrace < Pry::ClassCommand
1796
- def process; end
2066
+
2067
+ Pry::ObjectPath::SPECIAL_TERMS = T.let(T.unsafe(nil), Array)
2068
+ class Pry::ObsoleteError < ::StandardError; end
2069
+
2070
+ class Pry::Output
2071
+ def initialize(pry_instance); end
2072
+
2073
+ def <<(*objs); end
2074
+ def decolorize_maybe(str); end
2075
+ def height; end
2076
+ def method_missing(method_name, *args, &block); end
2077
+ def print(*objs); end
2078
+ def pry_instance; end
2079
+ def puts(*objs); end
2080
+ def size; end
2081
+ def tty?; end
2082
+ def width; end
2083
+ def write(*objs); end
2084
+
2085
+ private
2086
+
2087
+ def actual_screen_size; end
2088
+ def ansicon_env_size; end
2089
+ def env_size; end
2090
+ def io_console_size; end
2091
+ def nonzero_column?(size); end
2092
+ def readline_size; end
2093
+ def respond_to_missing?(method_name, include_private = T.unsafe(nil)); end
1797
2094
  end
1798
- class Pry::Command::Version < Pry::ClassCommand
1799
- def process; end
2095
+
2096
+ Pry::Output::DEFAULT_SIZE = T.let(T.unsafe(nil), Array)
2097
+
2098
+ class Pry::Pager
2099
+ def initialize(pry_instance); end
2100
+
2101
+ def open; end
2102
+ def page(text); end
2103
+ def pry_instance; end
2104
+
2105
+ private
2106
+
2107
+ def best_available; end
2108
+ def enabled?; end
2109
+ def output; end
1800
2110
  end
1801
- class Pry::Command::RaiseUp < Pry::ClassCommand
1802
- def process; end
2111
+
2112
+ class Pry::Pager::NullPager
2113
+ def initialize(out); end
2114
+
2115
+ def <<(str); end
2116
+ def close; end
2117
+ def print(str); end
2118
+ def puts(str); end
2119
+ def write(str); end
2120
+
2121
+ private
2122
+
2123
+ def height; end
2124
+ def width; end
1803
2125
  end
1804
- class Pry::Command::ReloadCode < Pry::ClassCommand
1805
- def check_for_reloadability(code_object, identifier); end
1806
- def current_file; end
1807
- def process; end
1808
- def reload_current_file; end
1809
- def reload_object(identifier); end
2126
+
2127
+ class Pry::Pager::PageTracker
2128
+ def initialize(rows, cols); end
2129
+
2130
+ def page?; end
2131
+ def record(str); end
2132
+ def reset; end
2133
+
2134
+ private
2135
+
2136
+ def line_length(line); end
1810
2137
  end
1811
- class Pry::Command::Reset < Pry::ClassCommand
1812
- def process; end
2138
+
2139
+ class Pry::Pager::SimplePager < ::Pry::Pager::NullPager
2140
+ def initialize(*_arg0); end
2141
+
2142
+ def write(str); end
1813
2143
  end
1814
- class Pry::Command::Ri < Pry::ClassCommand
1815
- def process(spec); end
2144
+
2145
+ class Pry::Pager::StopPaging < ::StandardError; end
2146
+
2147
+ class Pry::Pager::SystemPager < ::Pry::Pager::NullPager
2148
+ def initialize(*_arg0); end
2149
+
2150
+ def close; end
2151
+ def write(str); end
2152
+
2153
+ private
2154
+
2155
+ def invoked_pager?; end
2156
+ def pager; end
2157
+ def write_to_pager(text); end
2158
+
2159
+ class << self
2160
+ def available?; end
2161
+ def default_pager; end
2162
+ end
1816
2163
  end
1817
- class Pry::Command::SaveFile < Pry::ClassCommand
1818
- def display_content; end
1819
- def file_name; end
1820
- def mode; end
1821
- def options(opt); end
1822
- def process; end
1823
- def save_file; end
2164
+
2165
+ class Pry::PluginManager
2166
+ def initialize; end
2167
+
2168
+ def load_plugins; end
2169
+ def locate_plugins; end
2170
+ def plugins; end
2171
+
2172
+ private
2173
+
2174
+ def gem_list; end
2175
+ def plugin_located?(plugin); end
1824
2176
  end
1825
- class Pry::Command::ShellCommand < Pry::ClassCommand
1826
- def cd_path_env; end
1827
- def cd_path_exists?; end
1828
- def parse_destination(dest); end
1829
- def path_from_cd_path(dest); end
1830
- def process(cmd); end
1831
- def process_cd(dest); end
1832
- def special_case_path?(dest); end
2177
+
2178
+ class Pry::PluginManager::NoPlugin
2179
+ def initialize(name); end
2180
+
2181
+ def method_missing(*_arg0); end
2182
+
2183
+ private
2184
+
2185
+ def respond_to_missing?(*_arg0); end
1833
2186
  end
1834
- class Pry::Command::ShellMode < Pry::ClassCommand
1835
- def process; end
2187
+
2188
+ Pry::PluginManager::PRY_PLUGIN_PREFIX = T.let(T.unsafe(nil), Regexp)
2189
+
2190
+ class Pry::PluginManager::Plugin
2191
+ def initialize(name, gem_name, spec, enabled); end
2192
+
2193
+ def activate!; end
2194
+ def active; end
2195
+ def active=(_arg0); end
2196
+ def active?; end
2197
+ def disable!; end
2198
+ def enable!; end
2199
+ def enabled; end
2200
+ def enabled=(_arg0); end
2201
+ def enabled?; end
2202
+ def gem_name; end
2203
+ def gem_name=(_arg0); end
2204
+ def load_cli_options; end
2205
+ def name; end
2206
+ def name=(_arg0); end
2207
+ def spec; end
2208
+ def spec=(_arg0); end
2209
+ def supported?; end
1836
2210
  end
1837
- class Pry::Command::ShowInfo < Pry::ClassCommand
1838
- def code_object_header(code_object, line_num); end
1839
- def code_object_with_accessible_source(code_object); end
1840
- def complete(input); end
1841
- def content_and_header_for_code_object(code_object); end
1842
- def content_and_headers_for_all_module_candidates(mod); end
1843
- def file_and_line_for(code_object); end
1844
- def header(code_object); end
1845
- def header_options; end
1846
- def initialize(*arg0); end
1847
- def method_header(code_object, line_num); end
1848
- def method_sections(code_object); end
1849
- def module_header(code_object, line_num); end
1850
- def no_definition_message; end
1851
- def obj_name; end
1852
- def options(opt); end
1853
- def process; end
1854
- def show_all_modules?(code_object); end
1855
- def start_line_for(code_object); end
1856
- def use_line_numbers?; end
1857
- def valid_superclass?(code_object); end
1858
- extend Pry::Helpers::BaseHelpers
2211
+
2212
+ class Pry::Prompt
2213
+ def initialize(name, description, prompt_procs); end
2214
+
2215
+ def [](key); end
2216
+ def description; end
2217
+ def incomplete_proc; end
2218
+ def name; end
2219
+ def prompt_procs; end
2220
+ def wait_proc; end
2221
+
2222
+ class << self
2223
+ def [](name); end
2224
+ def add(name, description = T.unsafe(nil), separators = T.unsafe(nil)); end
2225
+ def all; end
2226
+ end
1859
2227
  end
1860
- class Pry::Command::ShowDoc < Pry::Command::ShowInfo
1861
- def content_for(code_object); end
1862
- def docs_for(code_object); end
1863
- def header_options; end
1864
- def process; end
1865
- def render_doc_markup_for(code_object); end
1866
- def start_line_for(code_object); end
1867
- include Pry::Helpers::DocumentationHelpers
2228
+
2229
+ class Pry::REPL
2230
+ extend ::Forwardable
2231
+ extend ::Pry::Forwardable
2232
+
2233
+ def initialize(pry, options = T.unsafe(nil)); end
2234
+
2235
+ def input(*args, &block); end
2236
+ def output(*args, &block); end
2237
+ def pry; end
2238
+ def pry=(_arg0); end
2239
+ def start; end
2240
+
2241
+ private
2242
+
2243
+ def calculate_overhang(current_prompt, original_val, indented_val); end
2244
+ def coolline_available?; end
2245
+ def epilogue; end
2246
+ def handle_read_errors; end
2247
+ def input_readline(*args); end
2248
+ def piping?; end
2249
+ def prologue; end
2250
+ def read; end
2251
+ def read_line(current_prompt); end
2252
+ def readline_available?; end
2253
+ def repl; end
2254
+ def set_readline_output; end
2255
+
2256
+ class << self
2257
+ def start(options); end
2258
+ end
1868
2259
  end
1869
- class Pry::Command::ShowInput < Pry::ClassCommand
1870
- def process; end
2260
+
2261
+ class Pry::REPLFileLoader
2262
+ def initialize(file_name); end
2263
+
2264
+ def define_additional_commands; end
2265
+ def interactive_mode(pry_instance); end
2266
+ def load; end
2267
+ def non_interactive_mode(pry_instance, content); end
1871
2268
  end
1872
- class Pry::Command::ShowSource < Pry::Command::ShowInfo
1873
- def content_for(code_object); end
1874
- def docs_for(code_object); end
1875
- def header_options; end
1876
- def options(opt); end
1877
- def process; end
1878
- def render_doc_markup_for(code_object); end
1879
- def start_line_for(code_object); end
1880
- include Pry::Helpers::DocumentationHelpers
2269
+
2270
+ module Pry::RescuableException
2271
+ class << self
2272
+ def ===(exception); end
2273
+ end
1881
2274
  end
1882
- class Pry::Command::Stat < Pry::ClassCommand
1883
- def options(opt); end
1884
- def process; end
2275
+
2276
+ class Pry::Result
2277
+ def initialize(is_command, retval = T.unsafe(nil)); end
2278
+
2279
+ def command?; end
2280
+ def retval; end
2281
+ def void_command?; end
1885
2282
  end
1886
- class Pry::Command::SwitchTo < Pry::ClassCommand
1887
- def process(selection); end
2283
+
2284
+ class Pry::Ring
2285
+ def initialize(max_size); end
2286
+
2287
+ def <<(value); end
2288
+ def [](index); end
2289
+ def clear; end
2290
+ def count; end
2291
+ def max_size; end
2292
+ def size; end
2293
+ def to_a; end
2294
+
2295
+ private
2296
+
2297
+ def transpose_buffer_tail; end
1888
2298
  end
1889
- class Pry::Command::ToggleColor < Pry::ClassCommand
1890
- def color_toggle; end
1891
- def process; end
2299
+
2300
+ class Pry::Slop
2301
+ include ::Enumerable
2302
+
2303
+ def initialize(config = T.unsafe(nil), &block); end
2304
+
2305
+ def [](key); end
2306
+ def add_callback(label, &block); end
2307
+ def banner(banner = T.unsafe(nil)); end
2308
+ def banner=(banner); end
2309
+ def command(command, options = T.unsafe(nil), &block); end
2310
+ def config; end
2311
+ def description(desc = T.unsafe(nil)); end
2312
+ def description=(desc); end
2313
+ def each(&block); end
2314
+ def fetch_command(command); end
2315
+ def fetch_option(key); end
2316
+ def get(key); end
2317
+ def help; end
2318
+ def missing; end
2319
+ def on(*objects, &block); end
2320
+ def opt(*objects, &block); end
2321
+ def option(*objects, &block); end
2322
+ def options; end
2323
+ def parse(items = T.unsafe(nil), &block); end
2324
+ def parse!(items = T.unsafe(nil), &block); end
2325
+ def present?(*keys); end
2326
+ def run(callable = T.unsafe(nil), &block); end
2327
+ def separator(text); end
2328
+ def strict?; end
2329
+ def to_h(include_commands = T.unsafe(nil)); end
2330
+ def to_hash(include_commands = T.unsafe(nil)); end
2331
+ def to_s; end
2332
+
2333
+ private
2334
+
2335
+ def autocreate(items, index); end
2336
+ def build_option(objects, &block); end
2337
+ def clean(object); end
2338
+ def commands_to_help; end
2339
+ def execute_multiple_switches(option, argument, index); end
2340
+ def execute_option(option, argument, index, item = T.unsafe(nil)); end
2341
+ def extract_long_flag(objects, config); end
2342
+ def extract_option(flag); end
2343
+ def extract_short_flag(objects, config); end
2344
+ def method_missing(method, *args, &block); end
2345
+ def process_item(items, index, &block); end
2346
+ def respond_to_missing?(method_name, include_all = T.unsafe(nil)); end
2347
+
2348
+ class << self
2349
+ def optspec(string, config = T.unsafe(nil)); end
2350
+ def parse(items = T.unsafe(nil), config = T.unsafe(nil), &block); end
2351
+ def parse!(items = T.unsafe(nil), config = T.unsafe(nil), &block); end
2352
+ end
1892
2353
  end
1893
- class Pry::Command::WatchExpression < Pry::ClassCommand
1894
- def add_expression(_arguments); end
1895
- def add_hook; end
1896
- def delete(index); end
1897
- def eval_and_print_changed(output); end
1898
- def expressions; end
1899
- def list; end
1900
- def options(opt); end
1901
- def process; end
2354
+
2355
+ class Pry::Slop::Commands
2356
+ include ::Enumerable
2357
+
2358
+ def initialize(config = T.unsafe(nil), &block); end
2359
+
2360
+ def [](key); end
2361
+ def arguments; end
2362
+ def banner(banner = T.unsafe(nil)); end
2363
+ def banner=(_arg0); end
2364
+ def commands; end
2365
+ def config; end
2366
+ def default(config = T.unsafe(nil), &block); end
2367
+ def each(&block); end
2368
+ def get(key); end
2369
+ def global(config = T.unsafe(nil), &block); end
2370
+ def help; end
2371
+ def inspect; end
2372
+ def on(command, config = T.unsafe(nil), &block); end
2373
+ def parse(items = T.unsafe(nil)); end
2374
+ def parse!(items = T.unsafe(nil)); end
2375
+ def present?(key); end
2376
+ def to_hash; end
2377
+ def to_s; end
2378
+
2379
+ private
2380
+
2381
+ def execute_arguments!(items); end
2382
+ def execute_global_opts!(items); end
1902
2383
  end
1903
- class Pry::Command::WatchExpression::Expression
1904
- def changed?; end
1905
- def eval!; end
1906
- def initialize(pry_instance, target, source); end
1907
- def previous_value; end
1908
- def pry_instance; end
1909
- def source; end
1910
- def target; end
1911
- def target_eval(target, source); end
2384
+
2385
+ Pry::Slop::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
2386
+ class Pry::Slop::Error < ::StandardError; end
2387
+ class Pry::Slop::InvalidArgumentError < ::Pry::Slop::Error; end
2388
+ class Pry::Slop::InvalidCommandError < ::Pry::Slop::Error; end
2389
+ class Pry::Slop::InvalidOptionError < ::Pry::Slop::Error; end
2390
+ class Pry::Slop::MissingArgumentError < ::Pry::Slop::Error; end
2391
+ class Pry::Slop::MissingOptionError < ::Pry::Slop::Error; end
2392
+
2393
+ class Pry::Slop::Option
2394
+ def initialize(slop, short, long, description, config = T.unsafe(nil), &block); end
2395
+
2396
+ def accepts_optional_argument?; end
2397
+ def argument?; end
2398
+ def argument_in_value; end
2399
+ def argument_in_value=(_arg0); end
2400
+ def as?; end
2401
+ def autocreated?; end
2402
+ def call(*objects); end
2403
+ def callback?; end
2404
+ def config; end
2405
+ def count; end
2406
+ def count=(_arg0); end
2407
+ def default?; end
2408
+ def delimiter?; end
2409
+ def description; end
2410
+ def expects_argument?; end
2411
+ def help; end
2412
+ def inspect; end
2413
+ def key; end
2414
+ def limit?; end
2415
+ def long; end
2416
+ def match?; end
2417
+ def optional?; end
2418
+ def optional_argument?; end
2419
+ def required?; end
2420
+ def short; end
2421
+ def tail?; end
1912
2422
  def to_s; end
2423
+ def types; end
1913
2424
  def value; end
2425
+ def value=(new_value); end
2426
+
2427
+ private
2428
+
2429
+ def value_to_float(value); end
2430
+ def value_to_integer(value); end
2431
+ def value_to_range(value); end
1914
2432
  end
1915
- class Pry::Command::Whereami < Pry::ClassCommand
1916
- def bad_option_combination?; end
1917
- def class_code; end
1918
- def code; end
1919
- def code?; end
1920
- def code_window; end
1921
- def default_code; end
1922
- def expand_path(filename); end
1923
- def handle_internal_binding; end
1924
- def initialize(*arg0); end
1925
- def location; end
1926
- def marker; end
1927
- def method_code; end
1928
- def nothing_to_do?; end
1929
- def options(opt); end
1930
- def process; end
1931
- def self.method_size_cutoff; end
1932
- def self.method_size_cutoff=(arg0); end
1933
- def setup; end
1934
- def small_method?; end
1935
- def target_class; end
1936
- def top_level?; end
1937
- def use_line_numbers?; end
1938
- def valid_method?; end
1939
- def window_size; end
2433
+
2434
+ Pry::Slop::Option::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
2435
+ Pry::Slop::VERSION = T.let(T.unsafe(nil), String)
2436
+
2437
+ class Pry::SyntaxHighlighter
2438
+ class << self
2439
+ def highlight(code, language = T.unsafe(nil)); end
2440
+ def keyword_token_color; end
2441
+ def overwrite_coderay_comment_token!; end
2442
+ def tokenize(code, language = T.unsafe(nil)); end
2443
+ end
1940
2444
  end
1941
- class Pry::Command::Wtf < Pry::ClassCommand
1942
- def format_backtrace(backtrace); end
1943
- def format_header(title, exception); end
1944
- def options(opt); end
1945
- def process; end
1946
- def read_line(file, line); end
1947
- def trim_backtrace(backtrace); end
1948
- def unwind_exceptions; end
2445
+
2446
+ module Pry::SystemCommandHandler
2447
+ class << self
2448
+ def default(output, command, _pry_instance); end
2449
+ end
2450
+ end
2451
+
2452
+ module Pry::TooSafeException
2453
+ class << self
2454
+ def ===(exception); end
2455
+ end
2456
+ end
2457
+
2458
+ module Pry::UserError; end
2459
+ Pry::VERSION = T.let(T.unsafe(nil), String)
2460
+
2461
+ module Pry::Warning
2462
+ class << self
2463
+ def warn(message); end
2464
+ end
2465
+ end
2466
+
2467
+ class Pry::WrappedModule
2468
+ include ::Pry::Helpers::BaseHelpers
2469
+ include ::Pry::CodeObject::Helpers
2470
+
2471
+ def initialize(mod); end
2472
+
2473
+ def candidate(rank); end
2474
+ def candidates; end
2475
+ def class?; end
2476
+ def constants(inherit = T.unsafe(nil)); end
2477
+ def doc; end
2478
+ def file; end
2479
+ def line; end
2480
+ def method_missing(method_name, *args, &block); end
2481
+ def method_prefix; end
2482
+ def module?; end
2483
+ def nonblank_name; end
2484
+ def number_of_candidates; end
2485
+ def singleton_class?; end
2486
+ def singleton_instance; end
2487
+ def source; end
2488
+ def source_file; end
2489
+ def source_line; end
2490
+ def source_location; end
2491
+ def super(times = T.unsafe(nil)); end
2492
+ def wrapped; end
2493
+ def yard_doc; end
2494
+ def yard_docs?; end
2495
+ def yard_file; end
2496
+ def yard_line; end
2497
+
2498
+ private
2499
+
2500
+ def all_methods_for(mod); end
2501
+ def all_relevant_methods_for(mod); end
2502
+ def all_source_locations_by_popularity; end
2503
+ def lines_for_file(file); end
2504
+ def method_candidates; end
2505
+ def method_defined_by_forwardable_module?(method); end
2506
+ def nested_module?(parent, name); end
2507
+ def primary_candidate; end
2508
+ def respond_to_missing?(method_name, include_private = T.unsafe(nil)); end
2509
+
2510
+ class << self
2511
+ def from_str(mod_name, target = T.unsafe(nil)); end
2512
+
2513
+ private
2514
+
2515
+ def safe_to_evaluate?(str, target); end
2516
+ end
2517
+ end
2518
+
2519
+ class Pry::WrappedModule::Candidate
2520
+ include ::Pry::Helpers::DocumentationHelpers
2521
+ include ::Pry::CodeObject::Helpers
2522
+ extend ::Forwardable
2523
+ extend ::Pry::Forwardable
2524
+
2525
+ def initialize(wrapper, rank); end
2526
+
2527
+ def class?(*args, &block); end
2528
+ def doc; end
2529
+ def file; end
2530
+ def line; end
2531
+ def module?(*args, &block); end
2532
+ def nonblank_name(*args, &block); end
2533
+ def number_of_candidates(*args, &block); end
2534
+ def source; end
2535
+ def source_file; end
2536
+ def source_line; end
2537
+ def source_location; end
2538
+ def wrapped(*args, &block); end
2539
+
2540
+ private
2541
+
2542
+ def class_regexes; end
2543
+ def first_line_of_module_definition(file, line); end
2544
+ def first_method_source_location; end
2545
+ def last_method_source_location; end
2546
+ def lines_for_file(*a, &b); end
2547
+ def method_candidates(*a, &b); end
2548
+ def name(*a, &b); end
2549
+ def number_of_lines_in_first_chunk; end
2550
+ def yard_docs?(*a, &b); end
1949
2551
  end