clean-architecture 5.0.2 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +15 -19
  3. data/.gitignore +4 -0
  4. data/CHANGELOG.md +4 -0
  5. data/Gemfile +1 -0
  6. data/README.md +1 -585
  7. data/bin/tapioca +29 -0
  8. data/clean-architecture.gemspec +4 -4
  9. data/lib/clean-architecture.rb +4 -1
  10. data/lib/clean_architecture/adapters/all.rb +1 -1
  11. data/lib/clean_architecture/adapters/attribute_hash_base.rb +47 -20
  12. data/lib/clean_architecture/all.rb +1 -4
  13. data/lib/clean_architecture/builders/abstract_active_record_entity_builder.rb +43 -13
  14. data/lib/clean_architecture/builders/all.rb +1 -1
  15. data/lib/clean_architecture/checks/all.rb +1 -1
  16. data/lib/clean_architecture/checks/authorization.rb +11 -9
  17. data/lib/clean_architecture/entities/all.rb +1 -3
  18. data/lib/clean_architecture/entities/failure_details.rb +27 -17
  19. data/lib/clean_architecture/matchers/all.rb +1 -1
  20. data/lib/clean_architecture/matchers/use_case_result.rb +9 -3
  21. data/lib/clean_architecture/queries/all.rb +1 -1
  22. data/lib/clean_architecture/queries/http_failure_code.rb +8 -20
  23. data/lib/clean_architecture/queries/http_success_code.rb +14 -7
  24. data/lib/clean_architecture/serializers/all.rb +1 -1
  25. data/lib/clean_architecture/serializers/html_response_from_result.rb +7 -1
  26. data/lib/clean_architecture/serializers/json_response_from_result.rb +4 -4
  27. data/lib/clean_architecture/version.rb +1 -1
  28. data/nix/sources.json +14 -0
  29. data/nix/sources.nix +174 -0
  30. data/run_ci.sh +7 -0
  31. data/shell.nix +17 -12
  32. data/sorbet/config +4 -0
  33. data/sorbet/{rbi/gems → dry-monads-sorbet}/dry-monads.rbi +176 -94
  34. data/sorbet/rbi/gems/activemodel@6.1.4.1.rbi +1292 -0
  35. data/sorbet/rbi/gems/activerecord@6.1.4.1.rbi +8092 -0
  36. data/sorbet/rbi/gems/activesupport@6.1.4.1.rbi +3531 -0
  37. data/sorbet/rbi/gems/{ast.rbi → ast@2.4.2.rbi} +28 -22
  38. data/sorbet/rbi/gems/byebug@11.1.3.rbi +1568 -0
  39. data/sorbet/rbi/gems/coderay@1.1.3.rbi +1005 -0
  40. data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +915 -0
  41. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +8 -0
  42. data/sorbet/rbi/gems/docile@1.4.0.rbi +54 -0
  43. data/sorbet/rbi/gems/dry-core@0.7.1.rbi +92 -0
  44. data/sorbet/rbi/gems/dry-equalizer@0.3.0.rbi +28 -0
  45. data/sorbet/rbi/gems/dry-matcher@0.9.0.rbi +56 -0
  46. data/sorbet/rbi/gems/dry-monads-sorbet@1.1.7.rbi +41 -0
  47. data/sorbet/rbi/gems/dry-monads@1.4.0.rbi +697 -0
  48. data/sorbet/rbi/gems/em-websocket@0.5.2.rbi +8 -0
  49. data/sorbet/rbi/gems/eventmachine@1.2.7.rbi +45 -0
  50. data/sorbet/rbi/gems/ffi@1.15.4.rbi +8 -0
  51. data/sorbet/rbi/gems/formatador@0.3.0.rbi +8 -0
  52. data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +31 -0
  53. data/sorbet/rbi/gems/guard-livereload@2.5.2.rbi +8 -0
  54. data/sorbet/rbi/gems/guard-rspec@4.7.3.rbi +211 -0
  55. data/sorbet/rbi/gems/guard@2.18.0.rbi +8 -0
  56. data/sorbet/rbi/gems/http_parser.rb@0.6.0.rbi +8 -0
  57. data/sorbet/rbi/gems/i18n@1.8.10.rbi +8 -0
  58. data/sorbet/rbi/gems/listen@3.7.0.rbi +8 -0
  59. data/sorbet/rbi/gems/lumberjack@1.2.8.rbi +8 -0
  60. data/sorbet/rbi/gems/method_source@1.0.0.rbi +72 -0
  61. data/sorbet/rbi/gems/minitest@5.14.4.rbi +344 -0
  62. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +8 -0
  63. data/sorbet/rbi/gems/nenv@0.3.0.rbi +8 -0
  64. data/sorbet/rbi/gems/notiffany@0.1.3.rbi +8 -0
  65. data/sorbet/rbi/gems/parallel@1.21.0.rbi +113 -0
  66. data/sorbet/rbi/gems/{parser.rbi → parser@3.0.2.0.rbi} +966 -699
  67. data/sorbet/rbi/gems/pry-byebug@3.9.0.rbi +461 -0
  68. data/sorbet/rbi/gems/{pry.rbi → pry@0.13.1.rbi} +2191 -1605
  69. data/sorbet/rbi/gems/{rainbow.rbi → rainbow@3.0.0.rbi} +90 -55
  70. data/sorbet/rbi/gems/{rake.rbi → rake@13.0.6.rbi} +578 -427
  71. data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +8 -0
  72. data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +8 -0
  73. data/sorbet/rbi/gems/rb-readline@0.5.5.rbi +884 -0
  74. data/sorbet/rbi/gems/rbi@0.0.6.rbi +1405 -0
  75. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +1120 -0
  76. data/sorbet/rbi/gems/{rexml.rbi → rexml@3.2.5.rbi} +562 -479
  77. data/sorbet/rbi/gems/{rspec-core.rbi → rspec-core@3.10.1.rbi} +2317 -1533
  78. data/sorbet/rbi/gems/rspec-expectations@3.10.1.rbi +1574 -0
  79. data/sorbet/rbi/gems/rspec-mocks@3.10.2.rbi +1462 -0
  80. data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +509 -0
  81. data/sorbet/rbi/gems/rspec@3.10.0.rbi +38 -0
  82. data/sorbet/rbi/gems/rubocop-ast@1.12.0.rbi +1938 -0
  83. data/sorbet/rbi/gems/rubocop-rspec@2.5.0.rbi +1786 -0
  84. data/sorbet/rbi/gems/rubocop@1.22.1.rbi +13252 -0
  85. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
  86. data/sorbet/rbi/gems/shellany@0.0.1.rbi +8 -0
  87. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
  88. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
  89. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +8 -0
  90. data/sorbet/rbi/gems/sorbet-struct-comparable@1.1.0.rbi +17 -0
  91. data/sorbet/rbi/gems/spoom@1.1.5.rbi +1241 -0
  92. data/sorbet/rbi/gems/stackprof@0.2.17.rbi +98 -0
  93. data/sorbet/rbi/gems/tapioca@0.5.2.rbi +949 -0
  94. data/sorbet/rbi/gems/thor@1.1.0.rbi +839 -0
  95. data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +8 -0
  96. data/sorbet/rbi/gems/unicode-display_width@2.1.0.rbi +26 -0
  97. data/sorbet/rbi/gems/unparser@0.6.0.rbi +8 -0
  98. data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +8 -0
  99. data/sorbet/tapioca/require.rb +9 -0
  100. metadata +88 -91
  101. data/.ruby-version +0 -1
  102. data/lib/clean_architecture/entities/targeted_parameters.rb +0 -24
  103. data/lib/clean_architecture/entities/untargeted_parameters.rb +0 -21
  104. data/lib/clean_architecture/interfaces/all.rb +0 -12
  105. data/lib/clean_architecture/interfaces/authorization_parameters.rb +0 -19
  106. data/lib/clean_architecture/interfaces/base_parameters.rb +0 -24
  107. data/lib/clean_architecture/interfaces/jsonable.rb +0 -16
  108. data/lib/clean_architecture/interfaces/targeted_parameters.rb +0 -19
  109. data/lib/clean_architecture/interfaces/use_case.rb +0 -20
  110. data/lib/clean_architecture/interfaces/use_case_actor.rb +0 -20
  111. data/lib/clean_architecture/interfaces/use_case_target.rb +0 -24
  112. data/lib/clean_architecture/types.rb +0 -8
  113. data/lib/clean_architecture/use_cases/abstract_use_case.rb +0 -63
  114. data/lib/clean_architecture/use_cases/all.rb +0 -10
  115. data/lib/clean_architecture/use_cases/contract.rb +0 -9
  116. data/lib/clean_architecture/use_cases/errors.rb +0 -58
  117. data/lib/clean_architecture/use_cases/form.rb +0 -116
  118. data/lib/clean_architecture/use_cases/parameters.rb +0 -43
  119. data/sorbet/rbi/gems/activemodel.rbi +0 -75
  120. data/sorbet/rbi/gems/activesupport.rbi +0 -440
  121. data/sorbet/rbi/gems/byebug.rbi +0 -1040
  122. data/sorbet/rbi/gems/coderay.rbi +0 -92
  123. data/sorbet/rbi/gems/concurrent-ruby.rbi +0 -1586
  124. data/sorbet/rbi/gems/docile.rbi +0 -32
  125. data/sorbet/rbi/gems/dry-configurable.rbi +0 -139
  126. data/sorbet/rbi/gems/dry-container.rbi +0 -89
  127. data/sorbet/rbi/gems/dry-core.rbi +0 -80
  128. data/sorbet/rbi/gems/dry-equalizer.rbi +0 -26
  129. data/sorbet/rbi/gems/dry-inflector.rbi +0 -73
  130. data/sorbet/rbi/gems/dry-initializer.rbi +0 -209
  131. data/sorbet/rbi/gems/dry-logic.rbi +0 -305
  132. data/sorbet/rbi/gems/dry-matcher.rbi +0 -34
  133. data/sorbet/rbi/gems/dry-schema.rbi +0 -786
  134. data/sorbet/rbi/gems/dry-struct.rbi +0 -137
  135. data/sorbet/rbi/gems/dry-types.rbi +0 -709
  136. data/sorbet/rbi/gems/dry-validation.rbi +0 -288
  137. data/sorbet/rbi/gems/duckface-interfaces.rbi +0 -94
  138. data/sorbet/rbi/gems/i18n.rbi +0 -133
  139. data/sorbet/rbi/gems/jaro_winkler.rbi +0 -15
  140. data/sorbet/rbi/gems/method_source.rbi +0 -64
  141. data/sorbet/rbi/gems/parallel.rbi +0 -82
  142. data/sorbet/rbi/gems/pry-byebug.rbi +0 -155
  143. data/sorbet/rbi/gems/rb-readline.rbi +0 -767
  144. data/sorbet/rbi/gems/rspec-expectations.rbi +0 -398
  145. data/sorbet/rbi/gems/rspec-mocks.rbi +0 -816
  146. data/sorbet/rbi/gems/rspec-support.rbi +0 -271
  147. data/sorbet/rbi/gems/rspec.rbi +0 -15
  148. data/sorbet/rbi/gems/rubocop-rspec.rbi +0 -922
  149. data/sorbet/rbi/gems/rubocop.rbi +0 -7319
  150. data/sorbet/rbi/gems/ruby-progressbar.rbi +0 -305
  151. data/sorbet/rbi/gems/simplecov-html.rbi +0 -35
  152. data/sorbet/rbi/gems/simplecov.rbi +0 -361
  153. data/sorbet/rbi/gems/stackprof.rbi +0 -52
  154. data/sorbet/rbi/gems/unicode-display_width.rbi +0 -17
  155. data/sorbet/rbi/hidden-definitions/errors.txt +0 -8580
  156. data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -17036
  157. data/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +0 -452
  158. data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6.0.0.rc1/activesupport.rbi +0 -23
  159. data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +0 -979
  160. data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +0 -8684
  161. data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +0 -108
  162. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +0 -276
  163. data/sorbet/rbi/sorbet-typed/lib/ruby/all/gem.rbi +0 -4222
  164. data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +0 -111
  165. data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +0 -543
  166. data/sorbet/rbi/todo.rbi +0 -10
@@ -1,762 +1,390 @@
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.12.2
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
18
- def color; end
19
- def color=(value); end
20
- def command_state; end
21
- def commands; end
22
- def commands=(value); end
30
+ def binding_stack=(_arg0); end
31
+ def color(*args, &block); end
32
+ def color=(*args, &block); end
33
+ def commands(*args, &block); end
34
+ def commands=(*args, &block); end
23
35
  def complete(str); end
24
36
  def config; end
25
37
  def current_binding; end
26
38
  def current_context; end
27
39
  def custom_completions; end
28
- def custom_completions=(arg0); end
29
- def editor; end
30
- def editor=(value); end
31
- def ensure_correct_encoding!(val); end
32
- def eval(line, options = nil); end
40
+ def custom_completions=(_arg0); end
41
+ def editor(*args, &block); end
42
+ def editor=(*args, &block); end
43
+ def eval(line, options = T.unsafe(nil)); end
33
44
  def eval_string; end
34
- def eval_string=(arg0); end
45
+ def eval_string=(_arg0); end
35
46
  def evaluate_ruby(code); end
36
- def exception_handler; end
37
- def exception_handler=(value); end
47
+ def exception_handler(*args, &block); end
48
+ def exception_handler=(*args, &block); end
38
49
  def exec_hook(name, *args, &block); end
39
50
  def exit_value; end
40
- def extra_sticky_locals; end
41
- def extra_sticky_locals=(value); end
42
- def generate_prompt(prompt_proc, conf); end
43
- def handle_line(line, options); end
44
- def hooks; end
45
- def hooks=(value); end
46
- def initialize(options = nil); end
47
- def inject_local(name, value, b); end
51
+ def extra_sticky_locals(*args, &block); end
52
+ def extra_sticky_locals=(*args, &block); end
53
+ def hooks(*args, &block); end
54
+ def hooks=(*args, &block); end
55
+ def inject_local(name, value, binding); end
48
56
  def inject_sticky_locals!; end
49
- def input; end
50
- def input=(value); end
51
- def input_array; end
57
+ def input(*args, &block); end
58
+ def input=(*args, &block); end
52
59
  def input_ring; end
53
60
  def last_dir; end
54
- def last_dir=(arg0); end
61
+ def last_dir=(_arg0); end
55
62
  def last_exception; end
56
- def last_exception=(e); end
63
+ def last_exception=(exception); end
57
64
  def last_file; end
58
- def last_file=(arg0); end
65
+ def last_file=(_arg0); end
59
66
  def last_result; end
60
- def last_result=(arg0); end
67
+ def last_result=(_arg0); end
61
68
  def last_result_is_exception?; end
62
69
  def memory_size; end
63
70
  def memory_size=(size); end
64
71
  def output; end
65
- def output=(value); end
66
- def output_array; end
72
+ def output=(*args, &block); end
67
73
  def output_ring; end
68
74
  def pager; end
69
- def pager=(value); end
75
+ def pager=(*args, &block); end
70
76
  def pop_prompt; end
71
- def print; end
72
- def print=(value); end
77
+ def print(*args, &block); end
78
+ def print=(*args, &block); end
73
79
  def process_command(val); end
74
80
  def process_command_safely(val); end
75
81
  def prompt; end
76
82
  def prompt=(new_prompt); end
77
- def prompt_stack; end
78
83
  def push_binding(object); end
79
- def push_initial_binding(target = nil); end
84
+ def push_initial_binding(target = T.unsafe(nil)); end
80
85
  def push_prompt(new_prompt); end
81
86
  def quiet?; end
82
- def raise_up!(*args); end
83
87
  def raise_up(*args); end
88
+ def raise_up!(*args); end
84
89
  def raise_up_common(force, *args); end
85
- def repl(target = nil); end
90
+ def repl(target = T.unsafe(nil)); end
86
91
  def reset_eval_string; end
87
92
  def run_command(val); end
88
93
  def select_prompt; end
89
- def self.Code(obj); end
90
- def self.Method(obj); end
91
- def self.WrappedModule(obj); end
92
- def self.auto_resize!; end
93
- def self.binding_for(target); end
94
- def self.cli; end
95
- def self.cli=(arg0); end
96
- def self.color; end
97
- def self.color=(value); end
98
- def self.commands; end
99
- def self.commands=(value); end
100
- def self.config; end
101
- def self.config=(arg0); end
102
- def self.configure; end
103
- def self.critical_section; end
104
- def self.current; end
105
- def self.current_line; end
106
- def self.current_line=(arg0); end
107
- def self.custom_completions; end
108
- def self.custom_completions=(arg0); end
109
- def self.default_editor_for_platform; end
110
- def self.editor; end
111
- def self.editor=(value); end
112
- def self.eval_path; end
113
- def self.eval_path=(arg0); end
114
- def self.exception_handler; end
115
- def self.exception_handler=(value); end
116
- def self.extra_sticky_locals; end
117
- def self.extra_sticky_locals=(value); end
118
- def self.final_session_setup; end
119
- def self.history; end
120
- def self.history=(arg0); end
121
- def self.hooks; end
122
- def self.hooks=(value); end
123
- def self.in_critical_section?; end
124
- def self.init; end
125
- def self.initial_session?; end
126
- def self.initial_session_setup; end
127
- def self.input; end
128
- def self.input=(value); end
129
- def self.last_internal_error; end
130
- def self.last_internal_error=(arg0); end
131
- def self.lazy(&block); end
132
- def self.line_buffer; end
133
- def self.line_buffer=(arg0); end
134
- def self.load_file_at_toplevel(file); end
135
- def self.load_file_through_repl(file_name); end
136
- def self.load_history; end
137
- def self.load_plugins(*args, &block); end
138
- def self.load_rc_files; end
139
- def self.load_requires; end
140
- def self.load_traps; end
141
- def self.load_win32console; end
142
- def self.locate_plugins(*args, &block); end
143
- def self.main; end
144
- def self.memory_size; end
145
- def self.memory_size=(value); end
146
- def self.output; end
147
- def self.output=(value); end
148
- def self.pager; end
149
- def self.pager=(value); end
150
- def self.plugins(*args, &block); end
151
- def self.print; end
152
- def self.print=(value); end
153
- def self.prompt; end
154
- def self.prompt=(value); end
155
- def self.quiet; end
156
- def self.quiet=(arg0); end
157
- def self.rc_files_to_load; end
158
- def self.real_path_to(file); end
159
- def self.reset_defaults; end
160
- def self.run_command(command_string, options = nil); end
161
- def self.start(target = nil, options = nil); end
162
- def self.toplevel_binding; end
163
- def self.toplevel_binding=(binding); end
164
- def self.view_clip(obj, options = nil); end
165
- def set_last_result(result, code = nil); end
94
+ def set_last_result(result, code = T.unsafe(nil)); end
166
95
  def should_print?; end
167
96
  def show_result(result); end
168
97
  def sticky_locals; end
169
98
  def suppress_output; end
170
- def suppress_output=(arg0); end
99
+ def suppress_output=(_arg0); end
171
100
  def update_input_history(code); end
172
- extend Pry::Config::Convenience
173
- end
174
- module Pry::Forwardable
175
- def def_private_delegators(target, *private_delegates); end
176
- include Forwardable
177
- end
178
- class Pry::InputLock
179
- def __with_ownership(&block); end
180
- def enter_interruptible_region; end
181
- def initialize; end
182
- def interruptible_region(&block); end
183
- def leave_interruptible_region; end
184
- def self.for(input); end
185
- def self.global_lock; end
186
- def self.global_lock=(arg0); end
187
- def self.input_locks; end
188
- def self.input_locks=(arg0); end
189
- def with_ownership(&block); end
190
- end
191
- class Pry::InputLock::Interrupt < Exception
192
- end
193
- module Pry::RescuableException
194
- def self.===(exception); end
195
- end
196
- module Pry::TooSafeException
197
- def self.===(exception); end
198
- end
199
- module Pry::UserError
200
- end
201
- module Pry::FrozenObjectException
202
- def self.===(exception); end
203
- end
204
- class Pry::CommandError < StandardError
205
- end
206
- class Pry::MethodNotFound < Pry::CommandError
207
- end
208
- class Pry::ObsoleteError < StandardError
209
- end
210
- module Pry::ExtendCommandBundle
211
- end
212
- module Pry::Platform
213
- def jruby?; end
214
- def jruby_19?; end
215
- def linux?; end
216
- def mac_osx?; end
217
- def mri?; end
218
- def mri_19?; end
219
- def mri_2?; end
220
- def windows?; end
221
- def windows_ansi?; end
222
- extend Pry::Platform
223
- end
224
- module Pry::Helpers
225
- def self.tablify(things, line_length, config = nil); end
226
- def self.tablify_or_one_line(heading, things, config = nil); end
227
- def self.tablify_to_screen_width(things, options, config = nil); end
228
- end
229
- module Pry::Helpers::BaseHelpers
230
- def colorize_code(code); end
231
- def command_dependencies_met?(options); end
232
- def find_command(name, set = nil); end
233
- def heading(text); end
234
- def highlight(string, regexp, highlight_color = nil); end
235
- def jruby?; end
236
- def jruby_19?; end
237
- def linux?; end
238
- def mac_osx?; end
239
- def mri?; end
240
- def mri_19?; end
241
- def mri_2?; end
242
- def not_a_real_file?(file); end
243
- def safe_send(obj, method, *args, &block); end
244
- def silence_warnings; end
245
- def stagger_output(text, _out = nil); end
246
- def use_ansi_codes?; end
247
- def windows?; end
248
- def windows_ansi?; end
249
- extend Pry::Helpers::BaseHelpers
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
250
187
  end
251
- class Pry::Hooks
252
- def add_hook(event_name, hook_name, callable = nil, &block); end
253
- def clear_event_hooks(event_name); end
254
- def delete_hook(event_name, hook_name); end
255
- def errors; end
256
- def exec_hook(event_name, *args, &block); end
257
- def get_hook(event_name, hook_name); end
258
- def get_hooks(event_name); end
259
- def hook_count(event_name); end
260
- def hook_exists?(event_name, hook_name); end
261
- def hooks; end
262
- def initialize; end
263
- def initialize_copy(_orig); end
264
- def merge!(other); end
265
- def merge(other); end
188
+
189
+ Pry::BINDING_METHOD_IMPL = T.let(T.unsafe(nil), Array)
190
+
191
+ class Pry::BasicObject < ::BasicObject
192
+ include ::Kernel
266
193
  end
267
- class Pry::Slop
268
- def [](key); end
269
- def add_callback(label, &block); end
270
- def autocreate(items, index); end
271
- def banner(banner = nil); end
272
- def banner=(banner); end
273
- def build_option(objects, &block); end
274
- def clean(object); end
275
- def command(command, options = nil, &block); end
276
- def commands_to_help; end
277
- def config; end
278
- def description(desc = nil); end
279
- def description=(desc); end
280
- def each(&block); end
281
- def execute_multiple_switches(option, argument, index); end
282
- def execute_option(option, argument, index, item = nil); end
283
- def extract_long_flag(objects, config); end
284
- def extract_option(flag); end
285
- def extract_short_flag(objects, config); end
286
- def fetch_command(command); end
287
- def fetch_option(key); end
288
- def get(key); 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
289
204
  def help; end
290
- def initialize(config = nil, &block); end
291
- def method_missing(method, *args, &block); end
292
- def missing; end
293
- def on(*objects, &block); end
294
- def opt(*objects, &block); end
295
- def option(*objects, &block); end
296
- def options; end
297
- def parse!(items = nil, &block); end
298
- def parse(items = nil, &block); end
299
- def present?(*keys); end
300
- def process_item(items, index, &block); end
301
- def respond_to_missing?(method_name, include_all = nil); end
302
- def run(callable = nil, &block); end
303
- def self.optspec(string, config = nil); end
304
- def self.parse!(items = nil, config = nil, &block); end
305
- def self.parse(items = nil, config = nil, &block); end
306
- def separator(text); end
307
- def strict?; end
308
- def to_h(include_commands = nil); end
309
- def to_hash(include_commands = nil); end
310
- def to_s; end
311
- include Enumerable
312
205
  end
313
- class Pry::Slop::Option
314
- def accepts_optional_argument?; end
315
- def argument?; end
316
- def argument_in_value; end
317
- def argument_in_value=(arg0); end
318
- def as?; end
319
- def autocreated?; end
320
- def call(*objects); end
321
- def callback?; end
322
- def config; end
323
- def count; end
324
- def count=(arg0); end
325
- def default?; end
326
- def delimiter?; end
327
- def description; end
328
- def expects_argument?; end
329
- def help; end
330
- def initialize(slop, short, long, description, config = nil, &block); end
331
- def inspect; end
332
- def key; end
333
- def limit?; end
334
- def long; end
335
- def match?; end
336
- def optional?; end
337
- def optional_argument?; end
338
- def required?; end
339
- def short; end
340
- def tail?; end
341
- def to_s; end
342
- def types; end
343
- def value; end
344
- def value=(new_value); end
345
- def value_to_float(value); end
346
- def value_to_integer(value); end
347
- def value_to_range(value); 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
348
222
  end
349
- class Pry::Slop::Commands
350
- def [](key); end
351
- def arguments; end
352
- def banner(banner = nil); end
353
- def banner=(arg0); end
354
- def commands; end
355
- def config; end
356
- def default(config = nil, &block); end
357
- def each(&block); end
358
- def execute_arguments!(items); end
359
- def execute_global_opts!(items); end
360
- def get(key); end
361
- def global(config = nil, &block); 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
362
231
  def help; end
363
- def initialize(config = nil, &block); end
364
- def inspect; end
365
- def on(command, config = nil, &block); end
366
- def parse!(items = nil); end
367
- def parse(items = nil); end
368
- def present?(key); end
369
- def to_hash; end
370
- def to_s; end
371
- include Enumerable
372
- end
373
- class Pry::Slop::Error < StandardError
374
- end
375
- class Pry::Slop::MissingArgumentError < Pry::Slop::Error
376
- end
377
- class Pry::Slop::MissingOptionError < Pry::Slop::Error
378
- end
379
- class Pry::Slop::InvalidArgumentError < Pry::Slop::Error
380
- end
381
- class Pry::Slop::InvalidOptionError < Pry::Slop::Error
382
- end
383
- class Pry::Slop::InvalidCommandError < Pry::Slop::Error
384
- end
385
- class Pry::REPL
386
- def calculate_overhang(current_prompt, original_val, indented_val); end
387
- def coolline_available?; end
388
- def epilogue; end
389
- def handle_read_errors; end
390
- def initialize(pry, options = nil); end
391
- def input(*args, &block); end
392
- def input_readline(*args); end
393
- def output(*args, &block); end
394
- def piping?; end
395
- def prologue; end
396
- def pry; end
397
- def pry=(arg0); end
398
- def read; end
399
- def read_line(current_prompt); end
400
- def readline_available?; end
401
- def repl; end
402
- def self.start(options); end
403
- def set_readline_output; end
404
- def start; end
405
- extend Pry::Forwardable
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
406
254
  end
255
+
407
256
  class Pry::Code
408
- def <<(line, lineno = nil); end
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
409
262
  def ==(other); end
410
- def after(lineno, lines = nil); end
411
- def alter(&block); end
412
- def around(lineno, lines = nil); end
413
- def before(lineno, lines = nil); end
414
- def between(start_line, end_line = nil); 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
415
267
  def code_type; end
416
- def code_type=(arg0); end
268
+ def code_type=(_arg0); end
417
269
  def comment_describing(line_number); end
418
- def expression_at(line_number, consume = nil); end
270
+ def expression_at(line_number, consume = T.unsafe(nil)); end
419
271
  def grep(pattern); end
420
272
  def highlighted; end
421
- def initialize(lines = nil, start_line = nil, code_type = nil); end
422
- def inspect; end
423
273
  def length; end
424
274
  def max_lineno_width; end
425
- def method_missing(name, *args, &block); end
275
+ def method_missing(method_name, *args, &block); end
426
276
  def nesting_at(line_number); end
427
- def print_to_output(output, color = nil); end
428
- def push(line, lineno = nil); end
277
+ def print_to_output(output, color = T.unsafe(nil)); end
278
+ def push(line); end
429
279
  def raw; end
430
- def respond_to_missing?(name, include_all = nil); end
280
+ def reject(&block); end
431
281
  def select(&block); end
432
- def self.from_file(filename, code_type = nil); end
433
- def self.from_method(meth, start_line = nil); end
434
- def self.from_module(mod, candidate_rank = nil, start_line = nil); end
435
282
  def take_lines(start_line, num_lines); end
436
283
  def to_s; end
437
- def with_indentation(spaces = nil); end
438
- def with_line_numbers(y_n = nil); end
439
- def with_marker(lineno = nil); 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
440
317
  end
318
+
441
319
  class Pry::Code::LOC
320
+ def initialize(line, lineno); end
321
+
442
322
  def ==(other); end
443
- def add_line_number(max_width = nil, color = nil); end
323
+ def add_line_number(max_width = T.unsafe(nil), color = T.unsafe(nil)); end
444
324
  def add_marker(marker_lineno); end
445
325
  def colorize(code_type); end
446
326
  def dup; end
447
327
  def handle_multiline_entries_from_edit_command(line, max_width); end
448
328
  def indent(distance); end
449
- def initialize(line, lineno); end
450
329
  def line; end
451
330
  def lineno; end
452
331
  def tuple; end
453
332
  end
454
- class Pry::Code::CodeRange
455
- def end_line; end
456
- def find_end_index(lines); end
457
- def find_start_index(lines); end
458
- def force_set_end_line; end
459
- def indices(lines); end
460
- def indices_range(lines); end
461
- def initialize(start_line, end_line = nil); end
462
- def set_end_line_from_range; end
463
- def start_line; end
464
- end
333
+
465
334
  class Pry::CodeFile
466
- def abs_path; end
335
+ def initialize(filename, code_type = T.unsafe(nil)); end
336
+
467
337
  def code; end
468
- def code_path; end
469
338
  def code_type; end
339
+
340
+ private
341
+
342
+ def abs_path; end
343
+ def code_path; end
470
344
  def from_load_path; end
471
345
  def from_pry_init_pwd; end
472
346
  def from_pwd; end
473
- def initialize(filename, code_type = nil); end
474
347
  def readable?(path); end
475
- def type_from_filename(filename, default = nil); end
476
- end
477
- class Pry::Ring
478
- def <<(value); end
479
- def [](index); end
480
- def clear; end
481
- def count; end
482
- def initialize(max_size); end
483
- def max_size; end
484
- def size; end
485
- def to_a; end
486
- end
487
- module Pry::Helpers::OptionsHelpers
488
- def method_object; end
489
- def method_options(opt); end
490
- def self.method_object; end
491
- def self.method_options(opt); end
492
- end
493
- module Pry::Helpers::CommandHelpers
494
- def absolute_index_number(line_number, array_length); end
495
- def absolute_index_range(range_or_number, array_length); end
496
- def command_error(message, omit_help, klass = nil); end
497
- def get_method_or_raise(name, target, opts = nil, omit_help = nil); end
498
- def internal_binding?(target); end
499
- def one_index_number(line_number); end
500
- def one_index_range(range); end
501
- def one_index_range_or_number(range_or_number); end
502
- def restrict_to_lines(content, lines); end
503
- def self.absolute_index_number(line_number, array_length); end
504
- def self.absolute_index_range(range_or_number, array_length); end
505
- def self.command_error(message, omit_help, klass = nil); end
506
- def self.get_method_or_raise(name, target, opts = nil, omit_help = nil); end
507
- def self.internal_binding?(target); end
508
- def self.one_index_number(line_number); end
509
- def self.one_index_range(range); end
510
- def self.one_index_range_or_number(range_or_number); end
511
- def self.restrict_to_lines(content, lines); end
512
- def self.set_file_and_dir_locals(file_name, _pry_ = nil, target = nil); end
513
- def self.temp_file(ext = nil); end
514
- def self.unindent(text, left_padding = nil); end
515
- def set_file_and_dir_locals(file_name, _pry_ = nil, target = nil); end
516
- def temp_file(ext = nil); end
517
- def unindent(text, left_padding = nil); end
518
- include Pry::Helpers::OptionsHelpers
519
- end
520
- module Pry::Helpers::Text
521
- def black(text); end
522
- def black_on_black(text); end
523
- def black_on_blue(text); end
524
- def black_on_cyan(text); end
525
- def black_on_green(text); end
526
- def black_on_magenta(text); end
527
- def black_on_purple(text); end
528
- def black_on_red(text); end
529
- def black_on_white(text); end
530
- def black_on_yellow(text); end
531
- def blue(text); end
532
- def blue_on_black(text); end
533
- def blue_on_blue(text); end
534
- def blue_on_cyan(text); end
535
- def blue_on_green(text); end
536
- def blue_on_magenta(text); end
537
- def blue_on_purple(text); end
538
- def blue_on_red(text); end
539
- def blue_on_white(text); end
540
- def blue_on_yellow(text); end
541
- def bold(text); end
542
- def bright_black(text); end
543
- def bright_black_on_black(text); end
544
- def bright_black_on_blue(text); end
545
- def bright_black_on_cyan(text); end
546
- def bright_black_on_green(text); end
547
- def bright_black_on_magenta(text); end
548
- def bright_black_on_purple(text); end
549
- def bright_black_on_red(text); end
550
- def bright_black_on_white(text); end
551
- def bright_black_on_yellow(text); end
552
- def bright_blue(text); end
553
- def bright_blue_on_black(text); end
554
- def bright_blue_on_blue(text); end
555
- def bright_blue_on_cyan(text); end
556
- def bright_blue_on_green(text); end
557
- def bright_blue_on_magenta(text); end
558
- def bright_blue_on_purple(text); end
559
- def bright_blue_on_red(text); end
560
- def bright_blue_on_white(text); end
561
- def bright_blue_on_yellow(text); end
562
- def bright_cyan(text); end
563
- def bright_cyan_on_black(text); end
564
- def bright_cyan_on_blue(text); end
565
- def bright_cyan_on_cyan(text); end
566
- def bright_cyan_on_green(text); end
567
- def bright_cyan_on_magenta(text); end
568
- def bright_cyan_on_purple(text); end
569
- def bright_cyan_on_red(text); end
570
- def bright_cyan_on_white(text); end
571
- def bright_cyan_on_yellow(text); end
572
- def bright_green(text); end
573
- def bright_green_on_black(text); end
574
- def bright_green_on_blue(text); end
575
- def bright_green_on_cyan(text); end
576
- def bright_green_on_green(text); end
577
- def bright_green_on_magenta(text); end
578
- def bright_green_on_purple(text); end
579
- def bright_green_on_red(text); end
580
- def bright_green_on_white(text); end
581
- def bright_green_on_yellow(text); end
582
- def bright_magenta(text); end
583
- def bright_magenta_on_black(text); end
584
- def bright_magenta_on_blue(text); end
585
- def bright_magenta_on_cyan(text); end
586
- def bright_magenta_on_green(text); end
587
- def bright_magenta_on_magenta(text); end
588
- def bright_magenta_on_purple(text); end
589
- def bright_magenta_on_red(text); end
590
- def bright_magenta_on_white(text); end
591
- def bright_magenta_on_yellow(text); end
592
- def bright_purple(text); end
593
- def bright_purple_on_black(text); end
594
- def bright_purple_on_blue(text); end
595
- def bright_purple_on_cyan(text); end
596
- def bright_purple_on_green(text); end
597
- def bright_purple_on_magenta(text); end
598
- def bright_purple_on_purple(text); end
599
- def bright_purple_on_red(text); end
600
- def bright_purple_on_white(text); end
601
- def bright_purple_on_yellow(text); end
602
- def bright_red(text); end
603
- def bright_red_on_black(text); end
604
- def bright_red_on_blue(text); end
605
- def bright_red_on_cyan(text); end
606
- def bright_red_on_green(text); end
607
- def bright_red_on_magenta(text); end
608
- def bright_red_on_purple(text); end
609
- def bright_red_on_red(text); end
610
- def bright_red_on_white(text); end
611
- def bright_red_on_yellow(text); end
612
- def bright_white(text); end
613
- def bright_white_on_black(text); end
614
- def bright_white_on_blue(text); end
615
- def bright_white_on_cyan(text); end
616
- def bright_white_on_green(text); end
617
- def bright_white_on_magenta(text); end
618
- def bright_white_on_purple(text); end
619
- def bright_white_on_red(text); end
620
- def bright_white_on_white(text); end
621
- def bright_white_on_yellow(text); end
622
- def bright_yellow(text); end
623
- def bright_yellow_on_black(text); end
624
- def bright_yellow_on_blue(text); end
625
- def bright_yellow_on_cyan(text); end
626
- def bright_yellow_on_green(text); end
627
- def bright_yellow_on_magenta(text); end
628
- def bright_yellow_on_purple(text); end
629
- def bright_yellow_on_red(text); end
630
- def bright_yellow_on_white(text); end
631
- def bright_yellow_on_yellow(text); end
632
- def cyan(text); end
633
- def cyan_on_black(text); end
634
- def cyan_on_blue(text); end
635
- def cyan_on_cyan(text); end
636
- def cyan_on_green(text); end
637
- def cyan_on_magenta(text); end
638
- def cyan_on_purple(text); end
639
- def cyan_on_red(text); end
640
- def cyan_on_white(text); end
641
- def cyan_on_yellow(text); end
642
- def default(text); end
643
- def green(text); end
644
- def green_on_black(text); end
645
- def green_on_blue(text); end
646
- def green_on_cyan(text); end
647
- def green_on_green(text); end
648
- def green_on_magenta(text); end
649
- def green_on_purple(text); end
650
- def green_on_red(text); end
651
- def green_on_white(text); end
652
- def green_on_yellow(text); end
653
- def indent(text, chars); end
654
- def magenta(text); end
655
- def magenta_on_black(text); end
656
- def magenta_on_blue(text); end
657
- def magenta_on_cyan(text); end
658
- def magenta_on_green(text); end
659
- def magenta_on_magenta(text); end
660
- def magenta_on_purple(text); end
661
- def magenta_on_red(text); end
662
- def magenta_on_white(text); end
663
- def magenta_on_yellow(text); end
664
- def no_color; end
665
- def no_pager; end
666
- def purple(text); end
667
- def purple_on_black(text); end
668
- def purple_on_blue(text); end
669
- def purple_on_cyan(text); end
670
- def purple_on_green(text); end
671
- def purple_on_magenta(text); end
672
- def purple_on_purple(text); end
673
- def purple_on_red(text); end
674
- def purple_on_white(text); end
675
- def purple_on_yellow(text); end
676
- def red(text); end
677
- def red_on_black(text); end
678
- def red_on_blue(text); end
679
- def red_on_cyan(text); end
680
- def red_on_green(text); end
681
- def red_on_magenta(text); end
682
- def red_on_purple(text); end
683
- def red_on_red(text); end
684
- def red_on_white(text); end
685
- def red_on_yellow(text); end
686
- def strip_color(text); end
687
- def white(text); end
688
- def white_on_black(text); end
689
- def white_on_blue(text); end
690
- def white_on_cyan(text); end
691
- def white_on_green(text); end
692
- def white_on_magenta(text); end
693
- def white_on_purple(text); end
694
- def white_on_red(text); end
695
- def white_on_white(text); end
696
- def white_on_yellow(text); end
697
- def with_line_numbers(text, offset, color = nil); end
698
- def yellow(text); end
699
- def yellow_on_black(text); end
700
- def yellow_on_blue(text); end
701
- def yellow_on_cyan(text); end
702
- def yellow_on_green(text); end
703
- def yellow_on_magenta(text); end
704
- def yellow_on_purple(text); end
705
- def yellow_on_red(text); end
706
- def yellow_on_white(text); end
707
- def yellow_on_yellow(text); end
708
- extend Pry::Helpers::Text
709
- end
710
- class Pry::Helpers::Table
711
- def ==(other); end
712
- def _max_width(things); end
713
- def _rebuild_colorless_cache; end
714
- def _recall_color_for(thing); end
715
- def _recolumn; end
716
- def column_count; end
717
- def column_count=(n); end
718
- def columns; end
719
- def fits_on_line?(line_length); end
720
- def initialize(items, args, config = nil); end
721
- def items; end
722
- def items=(items); end
723
- def rows_to_s(style = nil); end
724
- def to_a; end
725
- def to_s; end
726
- end
727
- module Pry::Helpers::Platform
728
- def self.jruby?; end
729
- def self.jruby_19?; end
730
- def self.linux?; end
731
- def self.mac_osx?; end
732
- def self.mri?; end
733
- def self.mri_19?; end
734
- def self.mri_2?; end
735
- def self.windows?; end
736
- def self.windows_ansi?; end
348
+ def type_from_filename(filename, default = T.unsafe(nil)); end
737
349
  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
+
738
356
  class Pry::CodeObject
739
- def _pry_; end
740
- def _pry_=(arg0); end
357
+ include ::Pry::Helpers::OptionsHelpers
358
+ include ::Pry::Helpers::CommandHelpers
359
+
360
+ def initialize(str, pry_instance, options = T.unsafe(nil)); end
361
+
741
362
  def command_lookup; end
742
363
  def default_lookup; end
743
364
  def empty_lookup; end
744
- def initialize(str, _pry_, options = nil); end
745
- def looks_like_an_instance_method?(str); end
746
- def lookup_super(obj, super_level); end
747
365
  def method_or_class_lookup; end
748
- def safe_to_evaluate?(str); end
749
- def self.lookup(str, _pry_, options = nil); end
750
- def sourcable_object?(obj); end
366
+ def pry_instance; end
367
+ def pry_instance=(_arg0); end
751
368
  def str; end
752
- def str=(arg0); end
369
+ def str=(_arg0); end
753
370
  def super_level; end
754
- def super_level=(arg0); end
371
+ def super_level=(_arg0); end
755
372
  def target; end
756
- def target=(arg0); 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
757
381
  def target_self; end
758
- include Pry::Helpers::CommandHelpers
382
+
383
+ class << self
384
+ def lookup(str, pry_instance, options = T.unsafe(nil)); end
385
+ end
759
386
  end
387
+
760
388
  module Pry::CodeObject::Helpers
761
389
  def c_method?; end
762
390
  def c_module?; end
@@ -764,484 +392,284 @@ module Pry::CodeObject::Helpers
764
392
  def module_with_yard_docs?; end
765
393
  def real_method_object?; end
766
394
  end
767
- module Pry::Helpers::DocumentationHelpers
768
- def get_comment_content(comment); end
769
- def process_comment_markup(comment); end
770
- def process_rdoc(comment); end
771
- def process_yardoc(comment); end
772
- def process_yardoc_tag(comment, tag); end
773
- def self.get_comment_content(comment); end
774
- def self.process_comment_markup(comment); end
775
- def self.process_rdoc(comment); end
776
- def self.process_yardoc(comment); end
777
- def self.process_yardoc_tag(comment, tag); end
778
- def self.strip_comments_from_c_code(code); end
779
- def self.strip_leading_whitespace(text); end
780
- def strip_comments_from_c_code(code); end
781
- def strip_leading_whitespace(text); end
782
- end
783
- class Pry::Method
784
- def ==(obj); end
785
- def alias?; end
786
- def aliases; end
787
- def bound_method?; end
788
- def c_source; end
789
- def comment; end
790
- def doc; end
791
- def dynamically_defined?; end
792
- def initialize(method, known_info = nil); end
793
- def is_a?(klass); end
794
- def kind_of?(klass); end
795
- def method_missing(method_name, *args, &block); end
796
- def method_name_from_first_line(first_ln); end
797
- def name; end
798
- def name_with_owner; end
799
- def original_name; end
800
- def pry_doc_info; end
801
- def pry_method?; end
802
- def redefine(source); end
803
- def respond_to?(method_name, include_all = nil); end
804
- def ruby_source; end
805
- def self.all_from_class(klass, include_super = nil); end
806
- def self.all_from_common(obj, _method_type = nil, include_super = nil); end
807
- def self.all_from_obj(obj, include_super = nil); end
808
- def self.from_binding(b); end
809
- def self.from_class(klass, name, target = nil); end
810
- def self.from_module(klass, name, target = nil); end
811
- def self.from_obj(obj, name, target = nil); end
812
- def self.from_str(name, target = nil, options = nil); end
813
- def self.instance_method_definition?(name, definition_line); end
814
- def self.instance_resolution_order(klass); end
815
- def self.lookup_method_via_binding(obj, method_name, method_type, target = nil); end
816
- def self.method_definition?(name, definition_line); end
817
- def self.resolution_order(obj); end
818
- def self.singleton_class_of(obj); end
819
- def self.singleton_class_resolution_order(klass); end
820
- def self.singleton_method_definition?(name, definition_line); end
821
- def signature; end
822
- def singleton_method?; end
823
- def source; end
824
- def source?; end
825
- def source_file; end
826
- def source_line; end
827
- def source_range; end
828
- def source_type; end
829
- def super(times = nil); end
830
- def super_using_ancestors(ancestors, times = nil); end
831
- def unbound_method?; end
832
- def undefined?; end
833
- def visibility; end
834
- def wrapped; end
835
- def wrapped_owner; end
836
- extend Pry::Helpers::BaseHelpers
837
- include Pry::CodeObject::Helpers
838
- include Pry::Helpers::BaseHelpers
839
- include Pry::Helpers::DocumentationHelpers
840
- end
841
- class Pry::Method::WeirdMethodLocator
842
- def all_methods_for(obj); end
843
- def expanded_source_location(sl); end
844
- def find_method_in_superclass; end
845
- def find_renamed_method; end
846
- def get_method; end
847
- def index_to_line_number(index); end
848
- def initialize(method, target); end
849
- def lines_for_file(file); end
850
- def lost_method?; end
851
- def method; end
852
- def method=(arg0); end
853
- def normal_method?(method); end
854
- def pry_file?; end
855
- def renamed_method_source_location; end
856
- def self.normal_method?(method, b); end
857
- def self.weird_method?(method, b); end
858
- def skip_superclass_search?; end
859
- def target; end
860
- def target=(arg0); end
861
- def target_file; end
862
- def target_line; end
863
- def target_self; end
864
- def valid_file?(file); end
865
- end
866
- class Pry::Method::Disowned < Pry::Method
867
- def initialize(receiver, method_name); end
868
- def method_missing(meth_name, *args, &block); end
869
- def name; end
870
- def owner; end
871
- def receiver; end
872
- def source?; end
873
- def undefined?; end
874
- end
875
- class Pry::Method::Patcher
876
- def cache_key; end
877
- def definition_for_owner(line); end
878
- def initialize(method); end
879
- def method; end
880
- def method=(arg0); end
881
- def patch_in_ram(source); end
882
- def redefine(source); end
883
- def self.code_for(filename); end
884
- def with_method_transaction; end
885
- def wrap(source); end
886
- def wrap_for_nesting(source); end
887
- def wrap_for_owner(source); end
888
- end
889
- class Pry::WrappedModule
890
- def all_methods_for(mod); end
891
- def all_relevant_methods_for(mod); end
892
- def all_source_locations_by_popularity; end
893
- def candidate(rank); end
894
- def candidates; end
895
- def class?; end
896
- def constants(inherit = nil); end
897
- def doc; end
898
- def file; end
899
- def initialize(mod); end
900
- def line; end
901
- def lines_for_file(file); end
902
- def method_candidates; end
903
- def method_defined_by_forwardable_module?(method); end
904
- def method_missing(method_name, *args, &block); end
905
- def method_prefix; end
906
- def module?; end
907
- def nested_module?(parent, name); end
908
- def nonblank_name; end
909
- def number_of_candidates; end
910
- def primary_candidate; end
911
- def respond_to?(method_name, include_all = nil); end
912
- def self.from_str(mod_name, target = nil); end
913
- def self.safe_to_evaluate?(str, target); end
914
- def singleton_class?; end
915
- def singleton_instance; end
916
- def source; end
917
- def source_file; end
918
- def source_line; end
919
- def source_location; end
920
- def super(times = nil); end
921
- def wrapped; end
922
- def yard_doc; end
923
- def yard_docs?; end
924
- def yard_file; end
925
- def yard_line; end
926
- include Pry::CodeObject::Helpers
927
- include Pry::Helpers::BaseHelpers
928
- end
929
- class Pry::WrappedModule::Candidate
930
- def class?(*args, &block); end
931
- def class_regexes; end
932
- def doc; end
933
- def file; end
934
- def first_line_of_module_definition(file, line); end
935
- def first_method_source_location; end
936
- def initialize(wrapper, rank); end
937
- def last_method_source_location; end
938
- def line; end
939
- def lines_for_file(*a, &b); end
940
- def method_candidates(*a, &b); end
941
- def module?(*args, &block); end
942
- def name(*a, &b); end
943
- def nonblank_name(*args, &block); end
944
- def number_of_candidates(*args, &block); end
945
- def number_of_lines_in_first_chunk; end
946
- def source; end
947
- def source_file; end
948
- def source_line; end
949
- def source_location; end
950
- def wrapped(*args, &block); end
951
- def yard_docs?(*a, &b); end
952
- extend Pry::Forwardable
953
- include Pry::CodeObject::Helpers
954
- include Pry::Helpers::DocumentationHelpers
955
- end
956
- class Pry::History
957
- def <<(line); end
958
- def clear; end
959
- def clear_readline; end
960
- def clearer; end
961
- def clearer=(arg0); end
962
- def filter(history); end
963
- def history_file; end
964
- def history_file_path; end
965
- def history_line_count; end
966
- def initialize(options = nil); end
967
- def invalid_readline_line?(line); end
968
- def load; end
969
- def loader; end
970
- def loader=(arg0); end
971
- def original_lines; end
972
- def push(line); end
973
- def push_to_readline(line); end
974
- def pusher; end
975
- def pusher=(arg0); end
976
- def read_from_file; end
977
- def restore_default_behavior; end
978
- def save_to_file(line); end
979
- def saver; end
980
- def saver=(arg0); end
981
- def session_line_count; end
982
- def should_ignore?(line); end
983
- def to_a; 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
984
409
  end
410
+
985
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
+
986
421
  def _pry_; end
987
- def _pry_=(arg0); end
988
- def after_hooks; end
422
+ def _pry_=(_arg0); end
989
423
  def arg_string; end
990
- def arg_string=(arg0); end
991
- def before_hooks; end
424
+ def arg_string=(_arg0); end
992
425
  def block; end
993
- def call_safely(*args); end
994
- def call_with_hooks(*args); end
995
426
  def captures; end
996
- def captures=(arg0); end
427
+ def captures=(_arg0); end
997
428
  def check_for_command_collision(command_match, arg_string); end
998
429
  def command_block; end
999
- def command_block=(arg0); end
430
+ def command_block=(_arg0); end
1000
431
  def command_name; end
1001
432
  def command_options; end
1002
433
  def command_set; end
1003
- def command_set=(arg0); end
434
+ def command_set=(_arg0); end
1004
435
  def commands; end
1005
436
  def complete(_search); end
1006
437
  def context; end
1007
- def context=(arg0); end
1008
- def correct_arg_arity(arity, args); end
1009
- def dependencies_met?; end
438
+ def context=(_arg0); end
1010
439
  def description; end
1011
440
  def eval_string; end
1012
- def eval_string=(arg0); end
1013
- def find_hooks(event); end
441
+ def eval_string=(_arg0); end
1014
442
  def hooks; end
1015
- def hooks=(arg0); end
1016
- def initialize(context = nil); end
443
+ def hooks=(_arg0); end
1017
444
  def interpolate_string(str); end
1018
445
  def match; end
1019
446
  def name; end
1020
447
  def output; end
1021
- def output=(arg0); end
1022
- def pass_block(arg_string); end
448
+ def output=(_arg0); end
1023
449
  def process_line(line); end
450
+ def pry_instance; end
451
+ def pry_instance=(_arg0); end
1024
452
  def run(command_string, *args); end
1025
- def self.banner(arg = nil); end
1026
- def self.block; end
1027
- def self.block=(arg0); end
1028
- def self.command_name; end
1029
- def self.command_options(arg = nil); end
1030
- def self.command_options=(arg0); end
1031
- def self.command_regex; end
1032
- def self.convert_to_regex(obj); end
1033
- def self.default_options(match); end
1034
- def self.description(arg = nil); end
1035
- def self.description=(arg0); end
1036
- def self.doc; end
1037
- def self.file; end
1038
- def self.group(name = nil); end
1039
- def self.hooks; end
1040
- def self.inspect; end
1041
- def self.line; end
1042
- def self.match(arg = nil); end
1043
- def self.match=(arg0); end
1044
- def self.match_score(val); end
1045
- def self.matches?(val); end
1046
- def self.name; end
1047
- def self.options(arg = nil); end
1048
- def self.options=(arg0); end
1049
- def self.source; end
1050
- def self.source_file; end
1051
- def self.source_line; end
1052
- def self.subclass(match, description, options, helpers, &block); end
1053
453
  def source; end
1054
454
  def state; end
1055
455
  def target; end
1056
- def target=(arg0); end
456
+ def target=(_arg0); end
1057
457
  def target_self; end
1058
- def text; end
1059
458
  def tokenize(val); end
1060
- def use_unpatched_symbol; end
1061
459
  def void; end
1062
- extend Pry::CodeObject::Helpers
1063
- extend Pry::Helpers::DocumentationHelpers
1064
- include Pry::Helpers::BaseHelpers
1065
- include Pry::Helpers::CommandHelpers
1066
- include Pry::Helpers::Text
1067
- end
1068
- class Pry::BlockCommand < Pry::Command
1069
- def call(*args); end
1070
- def help; end
1071
- def opts; end
1072
- end
1073
- class Pry::ClassCommand < Pry::Command
1074
- def args; end
1075
- def args=(arg0); end
1076
- def call(*args); end
1077
- def complete(search); end
1078
- def help; end
1079
- def options(opt); end
1080
- def opts; end
1081
- def opts=(arg0); end
1082
- def process; end
1083
- def self.doc; end
1084
- def self.file; end
1085
- def self.inherited(klass); end
1086
- def self.line; end
1087
- def self.source; end
1088
- def self.source_file; end
1089
- def self.source_line; end
1090
- def self.source_location; end
1091
- def self.source_object; end
1092
- def setup; end
1093
- def slop; end
1094
- def subcommands(cmd); end
1095
- end
1096
- class Pry::NoCommandError < StandardError
1097
- def initialize(match, owner); end
1098
- end
1099
- class Pry::CommandSet
1100
- def [](pattern); end
1101
- def []=(pattern, command); end
1102
- def add_command(command); end
1103
- def alias_command(match, action, options = nil); end
1104
- def block_command(match, description = nil, options = nil, &block); end
1105
- def command(match, description = nil, options = nil, &block); end
1106
- def complete(search, context = nil); end
1107
- def create_command(match, description = nil, options = nil, &block); end
1108
- def delete(*searches); end
1109
- def desc(search, description = nil); end
1110
- def disabled_command(name_of_disabled_command, message, matcher = nil); end
1111
- def each(&block); end
1112
- def find_command(pattern); end
1113
- def find_command_by_match_or_listing(match_or_listing); end
1114
- def find_command_for_help(search); end
1115
- def helper_module; end
1116
- def helpers(&block); end
1117
- def import(*sets); end
1118
- def import_from(set, *matches); end
1119
- def initialize(*imported_sets, &block); end
1120
- def keys; end
1121
- def list_commands; end
1122
- def process_line(val, context = nil); end
1123
- def rename_command(new_match, search, options = nil); end
1124
- def run_command(context, match, *args); end
1125
- def to_h; end
1126
- def to_hash; end
1127
- def valid_command?(val); end
1128
- include Enumerable
1129
- include Pry::Helpers::BaseHelpers
1130
- end
1131
- class Pry::Result
1132
- def command?; end
1133
- def initialize(is_command, retval = nil); end
1134
- def retval; end
1135
- def void_command?; 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
1136
502
  end
1137
- class Pry::Command::Bang < Pry::ClassCommand
503
+
504
+ class Pry::Command::AmendLine < ::Pry::ClassCommand
1138
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
1139
517
  end
1140
- class Pry::Command::Whereami < Pry::ClassCommand
1141
- def bad_option_combination?; end
1142
- def class_code; end
1143
- def code; end
1144
- def code?; end
1145
- def code_window; end
1146
- def default_code; end
1147
- def expand_path(f); end
1148
- def handle_internal_binding; end
1149
- def initialize(*arg0); end
1150
- def location; end
1151
- def marker; end
1152
- def method_code; end
1153
- def nothing_to_do?; end
1154
- def options(opt); end
518
+
519
+ class Pry::Command::Bang < ::Pry::ClassCommand
1155
520
  def process; end
1156
- def self.method_size_cutoff; end
1157
- def self.method_size_cutoff=(arg0); end
1158
- def setup; end
1159
- def small_method?; end
1160
- def target_class; end
1161
- def top_level?; end
1162
- def use_line_numbers?; end
1163
- def valid_method?; end
1164
- def window_size; end
1165
521
  end
1166
- class Pry::Command::Cd < Pry::ClassCommand
522
+
523
+ class Pry::Command::BangPry < ::Pry::ClassCommand
1167
524
  def process; end
1168
525
  end
1169
- class Pry::Command::ShowInput < Pry::ClassCommand
526
+
527
+ class Pry::Command::Cat < ::Pry::ClassCommand
528
+ def complete(search); end
529
+ def load_path_completions; end
530
+ def options(opt); end
1170
531
  def process; end
1171
532
  end
1172
- class Pry::Command::GemOpen < Pry::ClassCommand
1173
- def complete(str); end
1174
- def process(gem); end
1175
- end
1176
- class Pry::Command::ShellMode < Pry::ClassCommand
1177
- def process; 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
1178
545
  end
1179
- class Pry::Command::Help < Pry::ClassCommand
1180
- def command_groups; end
1181
- def display_command(command); end
1182
- def display_filtered_commands(search); end
1183
- def display_filtered_search_results(search); end
1184
- def display_index(groups); end
1185
- def display_search(search); end
1186
- def group_sort_key(group_name); end
1187
- def help_text_for_commands(name, commands); end
1188
- def normalize(key); end
1189
- def process; end
1190
- def search_hash(search, hash); end
1191
- def sorted_commands(commands); end
1192
- def sorted_group_names(groups); end
1193
- def visible_commands; end
1194
- end
1195
- class Pry::Command::GemStat < Pry::ClassCommand
1196
- def format_dependencies(rdeps); end
1197
- def format_gem(h); end
1198
- def process(name); 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
1199
567
  end
1200
- class Pry::Command::Exit < Pry::ClassCommand
1201
- def process; end
1202
- def process_pop_and_return; 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
1203
586
  end
1204
- class Pry::Command::InstallCommand < Pry::ClassCommand
1205
- def process(name); 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
1206
602
  end
1207
- class Pry::Command::ExitAll < Pry::ClassCommand
603
+
604
+ class Pry::Command::Cd < ::Pry::ClassCommand
1208
605
  def process; end
1209
606
  end
1210
- class Pry::Command::Gist < Pry::ClassCommand
1211
- def clipboard_content(content); end
1212
- def comment_expression_result_for_gist(result); end
1213
- def gist_content(content, filename); end
1214
- def input_content; end
1215
- def options(opt); end
1216
- def process; end
1217
- def setup; end
607
+
608
+ class Pry::Command::ChangeInspector < ::Pry::ClassCommand
609
+ def process(inspector); end
610
+
611
+ private
612
+
613
+ def inspector_map; end
1218
614
  end
1219
- class Pry::Command::Stat < Pry::ClassCommand
615
+
616
+ class Pry::Command::ChangePrompt < ::Pry::ClassCommand
1220
617
  def options(opt); end
1221
- def process; end
1222
- end
1223
- class Pry::Command::ClearScreen < Pry::ClassCommand
1224
- def process; end
1225
- end
1226
- class Pry::Command::ListInspectors < Pry::ClassCommand
1227
- def inspector_map; end
1228
- def process; end
1229
- def selected_inspector?(inspector); end
1230
- def selected_text; end
618
+ def process(prompt); end
619
+
620
+ private
621
+
622
+ def change_prompt(prompt); end
623
+ def list_prompts; end
1231
624
  end
1232
- class Pry::Command::Version < Pry::ClassCommand
625
+
626
+ class Pry::Command::ClearScreen < ::Pry::ClassCommand
1233
627
  def process; end
1234
628
  end
1235
- class Pry::Command::GemReadme < Pry::ClassCommand
1236
- def process(name); 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
645
+ def pry_instance; end
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
1237
666
  end
1238
- class Pry::Command::RaiseUp < Pry::ClassCommand
667
+
668
+ class Pry::Command::DisablePry < ::Pry::ClassCommand
1239
669
  def process; end
1240
670
  end
1241
- class Pry::Command::Ri < Pry::ClassCommand
1242
- def process(spec); end
1243
- end
1244
- class Pry::Command::Edit < Pry::ClassCommand
671
+
672
+ class Pry::Command::Edit < ::Pry::ClassCommand
1245
673
  def apply_runtime_patch; end
1246
674
  def bad_option_combination?; end
1247
675
  def code_object; end
@@ -1260,706 +688,1864 @@ class Pry::Command::Edit < Pry::ClassCommand
1260
688
  def probably_a_file?(str); end
1261
689
  def process; end
1262
690
  def pry_method?(code_object); end
1263
- def reload?(file_name = nil); end
691
+ def reload?(file_name = T.unsafe(nil)); end
1264
692
  def reloadable?; end
1265
693
  def repl_edit; end
1266
694
  def repl_edit?; end
1267
695
  def runtime_patch?; end
1268
696
  end
697
+
1269
698
  class Pry::Command::Edit::ExceptionPatcher
1270
- def _pry_; end
1271
- def _pry_=(arg0); end
699
+ def initialize(pry_instance, state, exception_file_and_line); end
700
+
1272
701
  def file_and_line; end
1273
- def file_and_line=(arg0); end
1274
- def initialize(_pry_, state, exception_file_and_line); end
702
+ def file_and_line=(_arg0); end
1275
703
  def perform_patch; end
704
+ def pry_instance; end
705
+ def pry_instance=(_arg0); end
1276
706
  def state; end
1277
- def state=(arg0); end
707
+ def state=(_arg0); end
1278
708
  end
709
+
1279
710
  module Pry::Command::Edit::FileAndLineLocator
1280
- def self.from_binding(target); end
1281
- def self.from_code_object(code_object, filename_argument); end
1282
- def self.from_exception(exception, backtrace_level); end
1283
- def self.from_filename_argument(filename_argument); end
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
1284
717
  end
1285
- class Pry::Command::CodeCollector
1286
- def _pry_; end
1287
- def args; end
1288
- def bad_option_combination?; end
1289
- def code_object; end
1290
- def code_object_doc; end
1291
- def code_object_source_or_file; end
1292
- def content; end
1293
- def convert_to_range(n); end
1294
- def could_not_locate(name); end
1295
- def file; end
1296
- def file=(arg0); end
1297
- def file_content; end
1298
- def initialize(args, opts, _pry_); end
1299
- def line_range; end
1300
- def obj_name; end
1301
- def opts; end
1302
- def pry_array_content_as_string(array, ranges, &block); end
1303
- def pry_input_content; end
1304
- def pry_output_content; end
1305
- def restrict_to_lines(content, range); end
1306
- def self.inject_options(opt); end
1307
- def self.input_expression_ranges; end
1308
- def self.input_expression_ranges=(arg0); end
1309
- def self.output_result_ranges; end
1310
- def self.output_result_ranges=(arg0); end
1311
- include Pry::Helpers::CommandHelpers
1312
- end
1313
- class Pry::Command::SaveFile < Pry::ClassCommand
1314
- def display_content; end
1315
- def file_name; end
1316
- def mode; end
1317
- def options(opt); end
718
+
719
+ class Pry::Command::Exit < ::Pry::ClassCommand
1318
720
  def process; end
1319
- def save_file; end
721
+ def process_pop_and_return; end
1320
722
  end
1321
- class Pry::Command::Play < Pry::ClassCommand
1322
- def code_object; end
1323
- def content; end
1324
- def content_after_options; end
1325
- def content_at_expression; end
1326
- def default_file; end
1327
- def file_content; end
1328
- def options(opt); end
1329
- def perform_play; end
723
+
724
+ class Pry::Command::ExitAll < ::Pry::ClassCommand
1330
725
  def process; end
1331
- def should_use_default_file?; end
1332
- def show_input; end
1333
726
  end
1334
- class Pry::Command::ToggleColor < Pry::ClassCommand
1335
- def color_toggle; end
727
+
728
+ class Pry::Command::ExitProgram < ::Pry::ClassCommand
1336
729
  def process; end
1337
730
  end
1338
- class Pry::Command::FindMethod < Pry::ClassCommand
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
+
1339
740
  def additional_info(header, method); end
1340
741
  def content_search(namespace); end
1341
742
  def matched_method_lines(header, method); end
1342
743
  def name_search(namespace); end
1343
- def options(opt); end
1344
744
  def pattern; end
1345
745
  def print_matches(matches); end
1346
746
  def print_matches_for_class(klass, grouped); end
1347
- def process; end
1348
- def recurse_namespace(klass, done = nil, &block); end
747
+ def recurse_namespace(klass, done = T.unsafe(nil), &block); end
1349
748
  def search_all_methods(namespace); end
1350
749
  def search_class; end
1351
750
  def show_search_results(matches); end
1352
- extend Pry::Helpers::BaseHelpers
1353
751
  end
1354
- class Pry::Command::ShowInfo < Pry::ClassCommand
1355
- def code_object_header(code_object, line_num); end
1356
- def code_object_with_accessible_source(code_object); end
1357
- def complete(input); end
1358
- def content_and_header_for_code_object(code_object); end
1359
- def content_and_headers_for_all_module_candidates(mod); end
1360
- def file_and_line_for(code_object); end
1361
- def header(code_object); end
1362
- def header_options; end
1363
- def initialize(*arg0); end
1364
- def method_header(code_object, line_num); end
1365
- def method_sections(code_object); end
1366
- def module_header(code_object, line_num); end
1367
- def no_definition_message; end
1368
- def obj_name; end
1369
- def options(opt); end
752
+
753
+ class Pry::Command::FixIndent < ::Pry::ClassCommand
1370
754
  def process; end
1371
- def show_all_modules?(code_object); end
1372
- def start_line_for(code_object); end
1373
- def use_line_numbers?; end
1374
- def valid_superclass?(code_object); end
1375
- extend Pry::Helpers::BaseHelpers
1376
755
  end
1377
- class Pry::Command::ShowSource < Pry::Command::ShowInfo
1378
- def content_for(code_object); 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
1379
775
  def options(opt); end
1380
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
786
+ end
787
+
788
+ class Pry::Command::ImportSet < ::Pry::ClassCommand
789
+ def process(_command_set_name); end
790
+ end
791
+
792
+ class Pry::Command::JumpTo < ::Pry::ClassCommand
793
+ def process(break_level); end
794
+ 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
1381
804
  end
1382
- class Pry::Command::Ls < Pry::ClassCommand
1383
- def error_list; end
805
+
806
+ class Pry::Command::Ls < ::Pry::ClassCommand
1384
807
  def no_user_opts?; end
1385
808
  def options(opt); end
1386
809
  def process; end
810
+
811
+ private
812
+
813
+ def error_list; end
1387
814
  def raise_errors_if_arguments_are_weird; end
1388
815
  end
1389
- class Pry::Command::Ls::Grep
1390
- def initialize(grep_regexp); end
1391
- def regexp; end
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
1392
829
  end
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
+
1393
834
  class Pry::Command::Ls::Formatter
1394
- def _pry_; end
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
+
1395
843
  def color(type, str); end
1396
844
  def correct_opts?; end
1397
845
  def format_value(value); end
1398
846
  def grep; end
1399
- def grep=(arg0); end
1400
- def initialize(_pry_); end
1401
847
  def output_section(heading, body); end
1402
848
  def output_self; end
1403
- def write_out; end
1404
849
  end
1405
- class Pry::Command::Ls::Globals < Pry::Command::Ls::Formatter
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
+
1406
858
  def format(globals); end
1407
- def initialize(opts, _pry_); end
859
+ 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
868
+ end
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
1408
876
  def output_self; end
877
+
878
+ private
879
+
880
+ def format(type, vars); end
1409
881
  end
882
+
1410
883
  module Pry::Command::Ls::Interrogatable
884
+ private
885
+
1411
886
  def interrogatee_mod; end
1412
887
  def interrogating_a_module?; end
1413
888
  end
1414
- class Pry::Command::Ls::Constants < Pry::Command::Ls::Formatter
1415
- def correct_opts?; end
1416
- def format(mod, constants); end
1417
- def initialize(interrogatee, no_user_opts, opts, _pry_); end
1418
- def output_self; end
1419
- def show_deprecated_constants?; end
1420
- include Pry::Command::Ls::Interrogatable
1421
- end
889
+
1422
890
  module Pry::Command::Ls::JRubyHacks
891
+ private
892
+
1423
893
  def rubbishness(name); end
1424
894
  def trim_jruby_aliases(methods); end
1425
895
  end
1426
- module Pry::Command::Ls::MethodsHelper
1427
- def all_methods(instance_methods = nil); end
1428
- def format(methods); end
1429
- def resolution_order; end
1430
- include Pry::Command::Ls::JRubyHacks
1431
- end
1432
- class Pry::Command::Ls::Methods < Pry::Command::Ls::Formatter
1433
- def below_ceiling; end
1434
- def correct_opts?; end
1435
- def initialize(interrogatee, no_user_opts, opts, _pry_); end
1436
- def output_self; end
1437
- include Pry::Command::Ls::Interrogatable
1438
- include Pry::Command::Ls::MethodsHelper
1439
- end
1440
- class Pry::Command::Ls::SelfMethods < Pry::Command::Ls::Formatter
1441
- def correct_opts?; end
1442
- def initialize(interrogatee, no_user_opts, opts, _pry_); end
1443
- def output_self; end
1444
- include Pry::Command::Ls::Interrogatable
1445
- include Pry::Command::Ls::MethodsHelper
1446
- end
1447
- class Pry::Command::Ls::InstanceVars < Pry::Command::Ls::Formatter
896
+
897
+ class Pry::Command::Ls::LocalNames < ::Pry::Command::Ls::Formatter
898
+ def initialize(no_user_opts, args, pry_instance); end
899
+
1448
900
  def correct_opts?; end
1449
- def format(type, vars); end
1450
- def initialize(interrogatee, no_user_opts, opts, _pry_); end
1451
901
  def output_self; end
1452
- include Pry::Command::Ls::Interrogatable
1453
- end
1454
- class Pry::Command::Ls::LocalNames < Pry::Command::Ls::Formatter
1455
- def correct_opts?; end
902
+
903
+ private
904
+
1456
905
  def format(locals); end
1457
- def initialize(no_user_opts, args, _pry_); end
1458
- def output_self; end
1459
906
  end
1460
- class Pry::Command::Ls::LocalVars < Pry::Command::Ls::Formatter
1461
- def colorized_assignment_style(lhs, rhs, desired_width = nil); end
1462
- def format(name_value_pairs); end
1463
- def initialize(opts, _pry_); end
907
+
908
+ class Pry::Command::Ls::LocalVars < ::Pry::Command::Ls::Formatter
909
+ def initialize(opts, pry_instance); end
910
+
1464
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
1465
917
  end
918
+
1466
919
  class Pry::Command::Ls::LsEntity
1467
- def _pry_; end
920
+ def initialize(opts); end
921
+
922
+ def entities_table; end
923
+ def pry_instance; end
924
+
925
+ private
926
+
1468
927
  def constants; end
1469
928
  def entities; end
1470
- def entities_table; end
1471
929
  def globals; end
1472
930
  def grep(entity); end
1473
- def initialize(opts); end
1474
931
  def instance_vars; end
1475
932
  def local_names; end
1476
933
  def local_vars; end
1477
934
  def methods; end
1478
935
  def self_methods; end
1479
936
  end
1480
- class Pry::Command::Cat < Pry::ClassCommand
1481
- def complete(search); end
1482
- def load_path_completions; 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
951
+ end
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
961
+ 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
975
+ end
976
+
977
+ class Pry::Command::Nesting < ::Pry::ClassCommand
978
+ def process; end
979
+ 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
1483
988
  def options(opt); end
989
+ def perform_play; end
1484
990
  def process; end
991
+ def should_use_default_file?; end
992
+ def show_input; end
1485
993
  end
1486
- class Pry::Command::Cat::AbstractFormatter
1487
- def between_lines; end
1488
- def code_type; end
1489
- def decorate(content); end
1490
- def use_line_numbers?; end
1491
- include Pry::Helpers::BaseHelpers
1492
- include Pry::Helpers::CommandHelpers
994
+
995
+ class Pry::Command::PryBacktrace < ::Pry::ClassCommand
996
+ def process; end
1493
997
  end
1494
- class Pry::Command::Cat::InputExpressionFormatter < Pry::Command::Cat::AbstractFormatter
1495
- def format; end
1496
- def initialize(input_expressions, opts); end
1497
- def input_expressions; end
1498
- def input_expressions=(arg0); end
1499
- def normalized_expression_range; end
1500
- def numbered_input_items; end
1501
- def opts; end
1502
- def opts=(arg0); end
1503
- def selected_input_items; end
998
+
999
+ class Pry::Command::RaiseUp < ::Pry::ClassCommand
1000
+ def process; end
1504
1001
  end
1505
- class Pry::Command::Cat::ExceptionFormatter < Pry::Command::Cat::AbstractFormatter
1506
- def _pry_; end
1507
- def backtrace_file; end
1508
- def backtrace_level; end
1509
- def backtrace_line; end
1510
- def check_for_errors; end
1511
- def code_window_size; end
1512
- def ex; end
1513
- def format; end
1514
- def header; end
1515
- def increment_backtrace_level; end
1516
- def initialize(exception, _pry_, opts); end
1517
- def opts; end
1518
- def start_and_end_line_for_code_window; end
1519
- include Pry::Helpers::Text
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
1520
1012
  end
1521
- class Pry::Command::Cat::FileFormatter < Pry::Command::Cat::AbstractFormatter
1522
- def _pry_; end
1523
- def code_type; end
1524
- def code_window_size; end
1525
- def decorate(content); end
1526
- def detect_code_type_from_file(file_name); end
1527
- def file_and_line; end
1528
- def file_name; end
1529
- def file_with_embedded_line; end
1530
- def format; end
1531
- def initialize(file_with_embedded_line, _pry_, opts); end
1532
- def line_number; end
1533
- def opts; end
1013
+
1014
+ class Pry::Command::Reset < ::Pry::ClassCommand
1015
+ def process; end
1534
1016
  end
1535
- class Pry::Command::GemList < Pry::ClassCommand
1536
- def process(pattern = nil); end
1017
+
1018
+ class Pry::Command::Ri < ::Pry::ClassCommand
1019
+ def process(spec); end
1537
1020
  end
1538
- class Pry::Command::ChangeInspector < Pry::ClassCommand
1539
- def inspector_map; end
1540
- def process(inspector); end
1021
+
1022
+ class Pry::Command::SaveFile < ::Pry::ClassCommand
1023
+ def display_content; end
1024
+ def file_name; end
1025
+ def mode; end
1026
+ def options(opt); end
1027
+ def process; end
1028
+ def save_file; end
1029
+ end
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
1541
1042
  end
1542
- class Pry::Command::ExitProgram < Pry::ClassCommand
1043
+
1044
+ class Pry::Command::ShellMode < ::Pry::ClassCommand
1543
1045
  def process; end
1544
1046
  end
1545
- class Pry::Command::ShowDoc < Pry::Command::ShowInfo
1047
+
1048
+ class Pry::Command::ShowDoc < ::Pry::Command::ShowInfo
1049
+ include ::Pry::Helpers::DocumentationHelpers
1050
+
1546
1051
  def content_for(code_object); end
1547
1052
  def docs_for(code_object); end
1548
1053
  def header_options; end
1054
+ def process; end
1549
1055
  def render_doc_markup_for(code_object); end
1550
1056
  def start_line_for(code_object); end
1551
- include Pry::Helpers::DocumentationHelpers
1552
1057
  end
1553
- class Pry::Command::Reset < Pry::ClassCommand
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
1554
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
1555
1083
  end
1556
- class Pry::Command::DisablePry < Pry::ClassCommand
1084
+
1085
+ class Pry::Command::ShowInput < ::Pry::ClassCommand
1557
1086
  def process; end
1558
1087
  end
1559
- class Pry::Command::ImportSet < Pry::ClassCommand
1560
- def process(_command_set_name); end
1561
- end
1562
- class Pry::Command::FixIndent < Pry::ClassCommand
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
1563
1096
  def process; end
1097
+ def render_doc_markup_for(code_object); end
1098
+ def start_line_for(code_object); end
1564
1099
  end
1565
- class Pry::Command::Wtf < Pry::ClassCommand
1566
- def backtrace; end
1567
- def exception; end
1100
+
1101
+ class Pry::Command::Stat < ::Pry::ClassCommand
1568
1102
  def options(opt); end
1569
1103
  def process; end
1570
- def size_of_backtrace; end
1571
- def with_line_numbers(bt); end
1572
1104
  end
1573
- class Pry::Command::WatchExpression < Pry::ClassCommand
1105
+
1106
+ class Pry::Command::SwitchTo < ::Pry::ClassCommand
1107
+ def process(selection); end
1108
+ end
1109
+
1110
+ class Pry::Command::ToggleColor < ::Pry::ClassCommand
1111
+ def color_toggle; end
1112
+ def process; end
1113
+ 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
1119
+ end
1120
+
1121
+ class Pry::Command::WatchExpression < ::Pry::ClassCommand
1122
+ def options(opt); end
1123
+ def process; end
1124
+
1125
+ private
1126
+
1574
1127
  def add_expression(_arguments); end
1575
1128
  def add_hook; end
1576
1129
  def delete(index); end
1577
1130
  def eval_and_print_changed(output); end
1578
1131
  def expressions; end
1579
1132
  def list; end
1580
- def options(opt); end
1581
- def process; end
1582
1133
  end
1134
+
1583
1135
  class Pry::Command::WatchExpression::Expression
1584
- def _pry_; end
1136
+ def initialize(pry_instance, target, source); end
1137
+
1585
1138
  def changed?; end
1586
1139
  def eval!; end
1587
- def initialize(_pry_, target, source); end
1588
1140
  def previous_value; end
1141
+ def pry_instance; end
1589
1142
  def source; end
1590
1143
  def target; end
1591
- def target_eval(target, source); end
1592
1144
  def to_s; end
1593
1145
  def value; end
1146
+
1147
+ private
1148
+
1149
+ def target_eval(target, source); end
1594
1150
  end
1595
- class Pry::Command::AmendLine < Pry::ClassCommand
1596
- def amend_input; end
1597
- def delete_from_array(array, range); end
1598
- def insert_into_array(array, range); end
1599
- def line_count; end
1600
- def line_range; end
1601
- def process; end
1602
- def replace_in_array(array, range); end
1603
- def start_and_end_line_number; end
1604
- def zero_indexed_range_from_one_indexed_numbers(start_line_number, end_line_number); end
1605
- end
1606
- class Pry::Command::BangPry < Pry::ClassCommand
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
1607
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
1608
1184
  end
1609
- class Pry::Command::ReloadCode < Pry::ClassCommand
1610
- def check_for_reloadability(code_object, identifier); end
1611
- def current_file; end
1185
+
1186
+ class Pry::Command::Wtf < ::Pry::ClassCommand
1187
+ def options(opt); end
1612
1188
  def process; end
1613
- def reload_current_file; end
1614
- def reload_object(identifier); 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
1615
1197
  end
1616
- class Pry::Command::Nesting < Pry::ClassCommand
1617
- def process; end
1618
- end
1619
- class Pry::Command::ShellCommand < Pry::ClassCommand
1620
- def cd_path_env; end
1621
- def cd_path_exists?; end
1622
- def parse_destination(dest); end
1623
- def path_from_cd_path(dest); end
1624
- def process(cmd); end
1625
- def process_cd(dest); end
1626
- def special_case_path?(dest); end
1627
- end
1628
- class Pry::Command::GemCd < Pry::ClassCommand
1629
- def complete(str); end
1630
- def process(gem); end
1631
- end
1632
- class Pry::Command::JumpTo < Pry::ClassCommand
1633
- def process(break_level); end
1634
- end
1635
- class Pry::Command::ChangePrompt < Pry::ClassCommand
1636
- def change_prompt(prompt); end
1637
- def list_prompts; end
1638
- def options(opt); end
1639
- def process(prompt); end
1640
- end
1641
- class Pry::Command::SwitchTo < Pry::ClassCommand
1642
- def process(selection); end
1643
- end
1644
- class Pry::Command::GemSearch < Pry::ClassCommand
1645
- def list_as_string(gems, limit = nil); end
1646
- def options(opt); end
1647
- def process(str); end
1648
- def setup; end
1649
- end
1650
- class Pry::Command::GemInstall < Pry::ClassCommand
1651
- def process(gem); end
1652
- def setup; end
1653
- end
1654
- class Pry::Command::Hist < Pry::ClassCommand
1655
- def check_for_juxtaposed_replay(replay_sequence); end
1656
- def find_history; end
1657
- def options(opt); end
1658
- def process; end
1659
- def process_clear; end
1660
- def process_display; end
1661
- def process_replay; end
1662
- def process_save; end
1663
- end
1664
- class Pry::Command::PryBacktrace < Pry::ClassCommand
1665
- def process; end
1666
- end
1667
- class Pry::PluginManager
1668
- def gem_list; end
1669
- def initialize; end
1670
- def load_plugins; end
1671
- def locate_plugins; end
1672
- def plugin_located?(plugin); end
1673
- def plugins; end
1674
- end
1675
- class Pry::PluginManager::NoPlugin
1676
- def initialize(name); end
1677
- def method_missing(*_args); end
1678
- end
1679
- class Pry::PluginManager::Plugin
1680
- def activate!; end
1681
- def active; end
1682
- def active=(arg0); end
1683
- def active?; end
1684
- def disable!; end
1685
- def enable!; end
1686
- def enabled; end
1687
- def enabled=(arg0); end
1688
- def enabled?; end
1689
- def gem_name; end
1690
- def gem_name=(arg0); end
1691
- def initialize(name, gem_name, spec, enabled); end
1692
- def load_cli_options; end
1693
- def name; end
1694
- def name=(arg0); end
1695
- def spec; end
1696
- def spec=(arg0); end
1697
- def supported?; end
1698
- end
1699
- class Object < BasicObject
1700
- def __binding__; end
1701
- def pry(object = nil, hash = nil); end
1702
- end
1703
- class BasicObject
1704
- def __binding__; end
1705
- end
1706
- class Pry::BasicObject < BasicObject
1707
- include Kernel
1708
- end
1709
- class Pry::Config < Pry::BasicObject
1710
- def self.shortcuts; end
1711
- extend Pry::Config::Behavior::Builder
1712
- include Pry::Config::Behavior
1713
- end
1714
- module Pry::Config::Behavior
1715
- def ==(other); end
1716
- def [](key); end
1717
- def []=(key, value); end
1718
- def __clip_inspect(obj); end
1719
- def __dup(value); end
1720
- def __push(key, value); end
1721
- def __remove(key); end
1722
- def __try_convert_to_hash(obj); end
1723
- def clear; end
1724
- def default; end
1725
- def eager_load!; end
1726
- def eql?(other); end
1727
- def forget(key); end
1728
- def initialize(default = nil); end
1729
- def inspect; end
1730
- def key?(key); 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
1731
1225
  def keys; end
1732
- def last_default; end
1733
- def merge!(other); end
1734
- def method_missing(name, *args, &block); end
1735
- def pretty_print(q); end
1736
- def respond_to_missing?(key, include_all = nil); end
1737
- def self.included(klass); 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
1738
1229
  def to_h; end
1739
1230
  def to_hash; end
1231
+ def valid_command?(val); end
1232
+
1233
+ private
1234
+
1235
+ def helpers(&block); end
1740
1236
  end
1741
- class Pry::Config::Behavior::ReservedKeyError < RuntimeError
1742
- end
1743
- module Pry::Config::Behavior::Builder
1744
- def assign(attributes, default = nil); end
1745
- def from_hash(attributes, default = nil); end
1746
- end
1747
- module Pry::Config::Memoization
1748
- def memoized_methods; end
1749
- def self.included(mod); end
1750
- end
1751
- module Pry::Config::Memoization::ClassMethods
1752
- def def_memoized(method_table); 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
1753
1247
  end
1754
- class Pry::Config::Default
1248
+
1249
+ Pry::Commands = T.let(T.unsafe(nil), Pry::CommandSet)
1250
+
1251
+ class Pry::Config
1252
+ extend ::Pry::Config::Attributable
1253
+
1254
+ def initialize; end
1255
+
1256
+ def [](attr); end
1257
+ def []=(attr, value); end
1755
1258
  def auto_indent; end
1259
+ def auto_indent=(_arg0); end
1756
1260
  def collision_warning; end
1261
+ def collision_warning=(_arg0); end
1757
1262
  def color; end
1263
+ def color=(_arg0); end
1758
1264
  def command_completions; end
1265
+ def command_completions=(_arg0); end
1759
1266
  def command_prefix; end
1267
+ def command_prefix=(_arg0); end
1760
1268
  def commands; end
1269
+ def commands=(_arg0); end
1761
1270
  def completer; end
1271
+ def completer=(_arg0); end
1762
1272
  def control_d_handler; end
1273
+ def control_d_handler=(value); end
1763
1274
  def correct_indent; end
1275
+ def correct_indent=(_arg0); end
1764
1276
  def default_window_size; end
1277
+ def default_window_size=(_arg0); end
1765
1278
  def disable_auto_reload; end
1279
+ def disable_auto_reload=(_arg0); end
1766
1280
  def editor; end
1281
+ def editor=(_arg0); end
1767
1282
  def exception_handler; end
1283
+ def exception_handler=(_arg0); end
1768
1284
  def exception_whitelist; end
1285
+ def exception_whitelist=(_arg0); end
1769
1286
  def exec_string; end
1287
+ def exec_string=(_arg0); end
1770
1288
  def extra_sticky_locals; end
1289
+ def extra_sticky_locals=(_arg0); end
1771
1290
  def file_completions; end
1772
- def gist; end
1291
+ def file_completions=(_arg0); end
1773
1292
  def history; end
1293
+ def history=(_arg0); end
1294
+ def history_file; end
1295
+ def history_file=(_arg0); end
1296
+ def history_ignorelist; end
1297
+ def history_ignorelist=(_arg0); end
1298
+ def history_load; end
1299
+ def history_load=(_arg0); end
1300
+ def history_save; end
1301
+ def history_save=(_arg0); end
1774
1302
  def hooks; end
1775
- def initialize; end
1303
+ def hooks=(_arg0); end
1776
1304
  def input; end
1777
- def lazy_readline; end
1305
+ def input=(_arg0); end
1778
1306
  def ls; end
1307
+ def ls=(_arg0); end
1779
1308
  def memory_size; end
1309
+ def memory_size=(_arg0); end
1310
+ def merge(config_hash); end
1311
+ def merge!(config_hash); end
1312
+ def method_missing(method_name, *args, &_block); end
1780
1313
  def output; end
1314
+ def output=(_arg0); end
1781
1315
  def output_prefix; end
1316
+ def output_prefix=(_arg0); end
1782
1317
  def pager; end
1318
+ def pager=(_arg0); end
1783
1319
  def print; end
1320
+ def print=(_arg0); end
1784
1321
  def prompt; end
1322
+ def prompt=(_arg0); end
1785
1323
  def prompt_name; end
1324
+ def prompt_name=(_arg0); end
1786
1325
  def prompt_safe_contexts; end
1326
+ def prompt_safe_contexts=(_arg0); end
1787
1327
  def quiet; end
1328
+ def quiet=(_arg0); end
1329
+ def rc_file; end
1330
+ def rc_file=(_arg0); end
1788
1331
  def requires; end
1332
+ def requires=(_arg0); end
1789
1333
  def should_load_local_rc; end
1334
+ def should_load_local_rc=(_arg0); end
1790
1335
  def should_load_plugins; end
1336
+ def should_load_plugins=(_arg0); end
1791
1337
  def should_load_rc; end
1338
+ def should_load_rc=(_arg0); end
1792
1339
  def should_load_requires; end
1340
+ def should_load_requires=(_arg0); end
1793
1341
  def should_trap_interrupts; end
1342
+ def should_trap_interrupts=(_arg0); end
1794
1343
  def system; end
1344
+ def system=(_arg0); end
1345
+ def unrescued_exceptions; end
1346
+ def unrescued_exceptions=(_arg0); end
1795
1347
  def windows_console_warning; end
1796
- extend Pry::Config::Behavior::Builder
1797
- extend Pry::Config::Memoization::ClassMethods
1798
- include Pry::Config::Behavior
1799
- include Pry::Config::Memoization
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
1800
1356
  end
1801
- module Pry::Config::Convenience
1802
- def config_shortcut(*names); end
1357
+
1358
+ module Pry::Config::Attributable
1359
+ def attribute(attr_name); end
1803
1360
  end
1804
- class Pry::Config::Lazy
1805
- def call; end
1361
+
1362
+ class Pry::Config::LazyValue
1806
1363
  def initialize(&block); end
1364
+
1365
+ def call; end
1807
1366
  end
1808
- class Pry::CLI
1809
- def self.add_option_processor(&block); end
1810
- def self.add_options(&block); end
1811
- def self.add_plugin_options; end
1812
- def self.input_args; end
1813
- def self.input_args=(arg0); end
1814
- def self.option_processors; end
1815
- def self.option_processors=(arg0); end
1816
- def self.options; end
1817
- def self.options=(arg0); end
1818
- def self.parse_options(args = nil); end
1819
- def self.reset; end
1820
- def self.start(opts); end
1821
- end
1822
- class Pry::CLI::NoOptionsError < StandardError
1823
- end
1824
- class Pry::ColorPrinter < PP
1825
- def highlight_object_literal(object_literal); end
1826
- def pp(obj); end
1827
- def self.pp(obj, out = nil, width = nil, newline = nil); end
1828
- def text(str, width = nil); end
1829
- end
1830
- class Pry::Terminal
1831
- def self.actual_screen_size; end
1832
- def self.height!; end
1833
- def self.nonzero_column?(size); end
1834
- def self.screen_size; end
1835
- def self.screen_size_according_to_ansicon_env; end
1836
- def self.screen_size_according_to_env; end
1837
- def self.screen_size_according_to_io_console; end
1838
- def self.screen_size_according_to_readline; end
1839
- def self.size!(default = nil); end
1840
- def self.width!; end
1841
- end
1842
- class Pry::Pager
1843
- def _pry_; end
1844
- def best_available; end
1845
- def enabled?; end
1846
- def initialize(_pry_); end
1847
- def open; end
1848
- def output; end
1849
- def page(text); end
1850
- end
1851
- class Pry::Pager::StopPaging < StandardError
1852
- end
1853
- class Pry::Pager::NullPager
1854
- def <<(str); end
1855
- def close; end
1856
- def height; end
1857
- def initialize(out); end
1858
- def print(str); end
1859
- def puts(str); end
1860
- def width; end
1861
- def write(str); end
1862
- end
1863
- class Pry::Pager::SimplePager < Pry::Pager::NullPager
1864
- def initialize(*arg0); end
1865
- def write(str); end
1367
+
1368
+ class Pry::Config::MemoizedValue
1369
+ def initialize(&block); end
1370
+
1371
+ def call; end
1866
1372
  end
1867
- class Pry::Pager::SystemPager < Pry::Pager::NullPager
1868
- def close; end
1869
- def initialize(*arg0); end
1870
- def invoked_pager?; end
1871
- def pager; end
1872
- def self.available?; end
1873
- def self.default_pager; end
1874
- def write(str); end
1875
- def write_to_pager(text); end
1373
+
1374
+ class Pry::Config::Value
1375
+ def initialize(value); end
1376
+
1377
+ def call; end
1876
1378
  end
1877
- class Pry::Pager::PageTracker
1878
- def initialize(rows, cols); end
1879
- def line_length(line); end
1880
- def page?; end
1881
- def record(str); end
1882
- def reset; end
1379
+
1380
+ module Pry::ControlDHandler
1381
+ class << self
1382
+ def default(pry_instance); end
1383
+ end
1883
1384
  end
1385
+
1386
+ Pry::EMPTY_COMPLETIONS = T.let(T.unsafe(nil), Array)
1387
+
1884
1388
  class Pry::Editor
1885
- def _pry_; end
1886
- def blocking_flag_for_editor(blocking); end
1389
+ include ::Pry::Helpers::OptionsHelpers
1390
+ include ::Pry::Helpers::CommandHelpers
1391
+
1392
+ def initialize(pry_instance); end
1393
+
1887
1394
  def build_editor_invocation_string(file, line, blocking); end
1888
- def edit_tempfile_with_content(initial_content, line = nil); 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
1889
1402
  def editor_name; end
1890
- def initialize(_pry_); end
1891
- def invoke_editor(file, line, blocking = nil); end
1892
1403
  def open_editor(editor_invocation); end
1893
1404
  def open_editor_on_jruby(editor_invocation); end
1894
1405
  def start_line_syntax_for_editor(file_name, line_number); end
1895
- include Pry::Helpers::CommandHelpers
1406
+
1407
+ class << self
1408
+ def default; end
1409
+ end
1896
1410
  end
1897
- module Pry::Rubygem
1898
- def self.complete(so_far); end
1899
- def self.install(name); end
1900
- def self.installed?(name); end
1901
- def self.list(pattern = nil); end
1902
- def self.spec(name); end
1411
+
1412
+ module Pry::Env
1413
+ class << self
1414
+ def [](key); end
1415
+ end
1903
1416
  end
1904
- class Pry::Indent
1905
- def correct_indentation(prompt, code, overhang = nil); end
1906
- def current_prefix; end
1907
- def end_of_statement?(last_token, last_kind); end
1908
- def in_string?; end
1909
- def indent(input); end
1910
- def indent_level; end
1911
- def indentation_delta(tokens); end
1912
- def initialize; end
1913
- def module_nesting; end
1914
- def open_delimiters; end
1915
- def open_delimiters_line; end
1916
- def reset; end
1917
- def self.indent(str); end
1918
- def self.nesting_at(str, line_number); end
1919
- def stack; end
1920
- def tokenize(string); end
1921
- def track_delimiter(token); end
1922
- def track_module_nesting(token, kind); end
1923
- def track_module_nesting_end(token, kind = nil); end
1924
- include Pry::Helpers::BaseHelpers
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
1925
1428
  end
1926
- class Pry::Indent::UnparseableNestingError < StandardError
1429
+
1430
+ module Pry::Forwardable
1431
+ include ::Forwardable
1432
+
1433
+ def def_private_delegators(target, *private_delegates); end
1927
1434
  end
1928
- class Pry::LastException < BasicObject
1929
- def bt_index; end
1930
- def bt_index=(arg0); end
1931
- def bt_source_location_for(index); end
1932
- def file; end
1933
- def inc_bt_index; end
1934
- def initialize(e); end
1935
- def line; end
1936
- def method_missing(name, *args, &block); end
1937
- def respond_to_missing?(name, include_all = nil); end
1938
- def wrapped_exception; end
1435
+
1436
+ module Pry::FrozenObjectException
1437
+ class << self
1438
+ def ===(exception); end
1439
+ end
1939
1440
  end
1940
- module Pry::Prompt
1941
- def self.[](prompt_name); end
1942
- def self.add(prompt_name, description = nil, separators = nil); end
1943
- def self.all; end
1944
- def self.prompt_name(name); end
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
1945
1448
  end
1946
- class Pry::Inspector
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
1947
1462
  end
1948
- class Pry::ObjectPath
1949
- def complete?(segment); end
1950
- def handle_failure(context, err); end
1951
- def initialize(path_string, current_stack); end
1952
- def resolve; end
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
1953
1480
  end
1954
- class Pry::Output
1955
- def <<(*objs); end
1956
- def _pry_; end
1957
- def decolorize_maybe(str); end
1958
- def initialize(_pry_); end
1959
- def method_missing(name, *args, &block); end
1960
- def print(*objs); end
1961
- def puts(*objs); end
1962
- def respond_to_missing?(m, include_all = nil); end
1963
- def tty?; end
1964
- def write(*objs); end
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
1502
+ end
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
1516
+ end
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
1530
+ 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
1744
+ 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
1777
+ 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
1805
+ 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
1833
+ 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
1851
+ 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
1884
+ 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
1906
+ 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
1978
+ end
1979
+
1980
+ class Pry::Method::Disowned < ::Pry::Method
1981
+ def initialize(receiver, method_name); end
1982
+
1983
+ def method_missing(method_name, *args, &block); end
1984
+ def name; end
1985
+ def owner; end
1986
+ def receiver; end
1987
+ def source?; end
1988
+ def undefined?; end
1989
+
1990
+ private
1991
+
1992
+ def respond_to_missing?(method_name, include_private = T.unsafe(nil)); end
1993
+ end
1994
+
1995
+ class Pry::Method::Patcher
1996
+ def initialize(method); end
1997
+
1998
+ def method; end
1999
+ def method=(_arg0); end
2000
+ def patch_in_ram(source); 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
2015
+ 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
2048
+ end
2049
+
2050
+ class Pry::MethodNotFound < ::Pry::CommandError; end
2051
+
2052
+ class Pry::NoCommandError < ::StandardError
2053
+ def initialize(match, owner); end
2054
+ 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
2065
+ 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
2094
+ 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
2110
+ 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
2125
+ 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
2137
+ end
2138
+
2139
+ class Pry::Pager::SimplePager < ::Pry::Pager::NullPager
2140
+ def initialize(*_arg0); end
2141
+
2142
+ def write(str); end
2143
+ 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
2163
+ 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
2176
+ 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
2186
+ 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
2210
+ end
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
2227
+ end
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
2259
+ 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
2268
+ end
2269
+
2270
+ module Pry::RescuableException
2271
+ class << self
2272
+ def ===(exception); end
2273
+ end
2274
+ 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
2282
+ 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
2298
+ 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
2353
+ 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
2383
+ 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
2422
+ def to_s; end
2423
+ def types; end
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
2432
+ 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
2444
+ 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
1965
2551
  end