packwerk 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. checksums.yaml +7 -0
  2. data/.github/ISSUE_TEMPLATE/bug_report.md +27 -0
  3. data/.github/probots.yml +2 -0
  4. data/.github/pull_request_template.md +27 -0
  5. data/.github/workflows/ci.yml +50 -0
  6. data/.gitignore +12 -0
  7. data/.rubocop.yml +46 -0
  8. data/.ruby-version +1 -0
  9. data/CODEOWNERS +1 -0
  10. data/CODE_OF_CONDUCT.md +76 -0
  11. data/CONTRIBUTING.md +17 -0
  12. data/Gemfile +22 -0
  13. data/Gemfile.lock +236 -0
  14. data/LICENSE.md +7 -0
  15. data/README.md +73 -0
  16. data/Rakefile +13 -0
  17. data/TROUBLESHOOT.md +67 -0
  18. data/USAGE.md +250 -0
  19. data/bin/console +15 -0
  20. data/bin/setup +8 -0
  21. data/dev.yml +32 -0
  22. data/docs/cohesion.png +0 -0
  23. data/exe/packwerk +6 -0
  24. data/lib/packwerk.rb +44 -0
  25. data/lib/packwerk/application_validator.rb +343 -0
  26. data/lib/packwerk/association_inspector.rb +44 -0
  27. data/lib/packwerk/checking_deprecated_references.rb +40 -0
  28. data/lib/packwerk/cli.rb +238 -0
  29. data/lib/packwerk/configuration.rb +82 -0
  30. data/lib/packwerk/const_node_inspector.rb +44 -0
  31. data/lib/packwerk/constant_discovery.rb +60 -0
  32. data/lib/packwerk/constant_name_inspector.rb +22 -0
  33. data/lib/packwerk/dependency_checker.rb +28 -0
  34. data/lib/packwerk/deprecated_references.rb +92 -0
  35. data/lib/packwerk/file_processor.rb +43 -0
  36. data/lib/packwerk/files_for_processing.rb +67 -0
  37. data/lib/packwerk/formatters/progress_formatter.rb +46 -0
  38. data/lib/packwerk/generators/application_validation.rb +62 -0
  39. data/lib/packwerk/generators/configuration_file.rb +69 -0
  40. data/lib/packwerk/generators/inflections_file.rb +43 -0
  41. data/lib/packwerk/generators/root_package.rb +37 -0
  42. data/lib/packwerk/generators/templates/inflections.yml +6 -0
  43. data/lib/packwerk/generators/templates/package.yml +17 -0
  44. data/lib/packwerk/generators/templates/packwerk +23 -0
  45. data/lib/packwerk/generators/templates/packwerk.yml.erb +23 -0
  46. data/lib/packwerk/generators/templates/packwerk_validator_test.rb +11 -0
  47. data/lib/packwerk/graph.rb +74 -0
  48. data/lib/packwerk/inflections/custom.rb +33 -0
  49. data/lib/packwerk/inflections/default.rb +73 -0
  50. data/lib/packwerk/inflector.rb +41 -0
  51. data/lib/packwerk/node.rb +259 -0
  52. data/lib/packwerk/node_processor.rb +49 -0
  53. data/lib/packwerk/node_visitor.rb +22 -0
  54. data/lib/packwerk/offense.rb +44 -0
  55. data/lib/packwerk/output_styles.rb +41 -0
  56. data/lib/packwerk/package.rb +56 -0
  57. data/lib/packwerk/package_set.rb +59 -0
  58. data/lib/packwerk/parsed_constant_definitions.rb +62 -0
  59. data/lib/packwerk/parsers.rb +23 -0
  60. data/lib/packwerk/parsers/erb.rb +66 -0
  61. data/lib/packwerk/parsers/factory.rb +34 -0
  62. data/lib/packwerk/parsers/ruby.rb +42 -0
  63. data/lib/packwerk/privacy_checker.rb +45 -0
  64. data/lib/packwerk/reference.rb +6 -0
  65. data/lib/packwerk/reference_extractor.rb +81 -0
  66. data/lib/packwerk/reference_lister.rb +23 -0
  67. data/lib/packwerk/run_context.rb +103 -0
  68. data/lib/packwerk/sanity_checker.rb +10 -0
  69. data/lib/packwerk/spring_command.rb +28 -0
  70. data/lib/packwerk/updating_deprecated_references.rb +51 -0
  71. data/lib/packwerk/version.rb +6 -0
  72. data/lib/packwerk/violation_type.rb +13 -0
  73. data/library.yml +6 -0
  74. data/packwerk.gemspec +58 -0
  75. data/service.yml +6 -0
  76. data/shipit.rubygems.yml +1 -0
  77. data/sorbet/config +2 -0
  78. data/sorbet/rbi/gems/actioncable@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +840 -0
  79. data/sorbet/rbi/gems/actionmailbox@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +571 -0
  80. data/sorbet/rbi/gems/actionmailer@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +568 -0
  81. data/sorbet/rbi/gems/actionpack@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +5216 -0
  82. data/sorbet/rbi/gems/actiontext@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +663 -0
  83. data/sorbet/rbi/gems/actionview@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +2504 -0
  84. data/sorbet/rbi/gems/activejob@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +635 -0
  85. data/sorbet/rbi/gems/activemodel@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +1201 -0
  86. data/sorbet/rbi/gems/activerecord@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +8011 -0
  87. data/sorbet/rbi/gems/activestorage@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +904 -0
  88. data/sorbet/rbi/gems/activesupport@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +3888 -0
  89. data/sorbet/rbi/gems/ast@2.4.1.rbi +54 -0
  90. data/sorbet/rbi/gems/better_html@1.0.15.rbi +317 -0
  91. data/sorbet/rbi/gems/builder@3.2.4.rbi +8 -0
  92. data/sorbet/rbi/gems/byebug@11.1.3.rbi +8 -0
  93. data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
  94. data/sorbet/rbi/gems/colorize@0.8.1.rbi +40 -0
  95. data/sorbet/rbi/gems/commander@4.5.2.rbi +8 -0
  96. data/sorbet/rbi/gems/concurrent-ruby@1.1.6.rbi +1966 -0
  97. data/sorbet/rbi/gems/constant_resolver@0.1.5.rbi +26 -0
  98. data/sorbet/rbi/gems/crass@1.0.6.rbi +138 -0
  99. data/sorbet/rbi/gems/erubi@1.9.0.rbi +39 -0
  100. data/sorbet/rbi/gems/globalid@0.4.2.rbi +178 -0
  101. data/sorbet/rbi/gems/highline@2.0.3.rbi +8 -0
  102. data/sorbet/rbi/gems/html_tokenizer@0.0.7.rbi +46 -0
  103. data/sorbet/rbi/gems/i18n@1.8.2.rbi +633 -0
  104. data/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi +8 -0
  105. data/sorbet/rbi/gems/loofah@2.5.0.rbi +272 -0
  106. data/sorbet/rbi/gems/m@1.5.1.rbi +108 -0
  107. data/sorbet/rbi/gems/mail@2.7.1.rbi +2490 -0
  108. data/sorbet/rbi/gems/marcel@0.3.3.rbi +30 -0
  109. data/sorbet/rbi/gems/method_source@1.0.0.rbi +76 -0
  110. data/sorbet/rbi/gems/mimemagic@0.3.5.rbi +47 -0
  111. data/sorbet/rbi/gems/mini_mime@1.0.2.rbi +71 -0
  112. data/sorbet/rbi/gems/mini_portile2@2.4.0.rbi +8 -0
  113. data/sorbet/rbi/gems/minitest@5.14.0.rbi +542 -0
  114. data/sorbet/rbi/gems/mocha@1.11.2.rbi +964 -0
  115. data/sorbet/rbi/gems/nio4r@2.5.2.rbi +89 -0
  116. data/sorbet/rbi/gems/nokogiri@1.10.9.rbi +1608 -0
  117. data/sorbet/rbi/gems/parallel@1.19.1.rbi +8 -0
  118. data/sorbet/rbi/gems/parlour@4.0.1.rbi +561 -0
  119. data/sorbet/rbi/gems/parser@2.7.1.4.rbi +1632 -0
  120. data/sorbet/rbi/gems/pry@0.13.1.rbi +8 -0
  121. data/sorbet/rbi/gems/rack-test@1.1.0.rbi +335 -0
  122. data/sorbet/rbi/gems/rack@2.2.2.rbi +1730 -0
  123. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +123 -0
  124. data/sorbet/rbi/gems/rails-html-sanitizer@1.3.0.rbi +213 -0
  125. data/sorbet/rbi/gems/rails@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +8 -0
  126. data/sorbet/rbi/gems/railties@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +869 -0
  127. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +155 -0
  128. data/sorbet/rbi/gems/rake@13.0.1.rbi +841 -0
  129. data/sorbet/rbi/gems/rexml@3.2.4.rbi +8 -0
  130. data/sorbet/rbi/gems/rubocop-performance@1.5.2.rbi +8 -0
  131. data/sorbet/rbi/gems/rubocop-shopify@1.0.2.rbi +8 -0
  132. data/sorbet/rbi/gems/rubocop-sorbet@0.3.7.rbi +8 -0
  133. data/sorbet/rbi/gems/rubocop@0.82.0.rbi +8 -0
  134. data/sorbet/rbi/gems/ruby-progressbar@1.10.1.rbi +8 -0
  135. data/sorbet/rbi/gems/smart_properties@1.15.0.rbi +168 -0
  136. data/sorbet/rbi/gems/spoom@1.0.4.rbi +418 -0
  137. data/sorbet/rbi/gems/spring@2.1.0.rbi +160 -0
  138. data/sorbet/rbi/gems/sprockets-rails@3.2.1.rbi +431 -0
  139. data/sorbet/rbi/gems/sprockets@4.0.0.rbi +1132 -0
  140. data/sorbet/rbi/gems/tapioca@0.4.5.rbi +518 -0
  141. data/sorbet/rbi/gems/thor@1.0.1.rbi +892 -0
  142. data/sorbet/rbi/gems/tzinfo@2.0.2.rbi +547 -0
  143. data/sorbet/rbi/gems/unicode-display_width@1.7.0.rbi +8 -0
  144. data/sorbet/rbi/gems/websocket-driver@0.7.1.rbi +438 -0
  145. data/sorbet/rbi/gems/websocket-extensions@0.1.4.rbi +71 -0
  146. data/sorbet/rbi/gems/zeitwerk@2.3.0.rbi +8 -0
  147. data/sorbet/tapioca/require.rb +25 -0
  148. data/static/packwerk-check-demo.png +0 -0
  149. data/static/packwerk_check.gif +0 -0
  150. data/static/packwerk_check_violation.gif +0 -0
  151. data/static/packwerk_update.gif +0 -0
  152. data/static/packwerk_validate.gif +0 -0
  153. metadata +341 -0
@@ -0,0 +1,3888 @@
1
+ # DO NOT EDIT MANUALLY
2
+ # This is an autogenerated file for types exported from the `activesupport` gem.
3
+ # Please instead update this file by running `dev typecheck update`.
4
+
5
+ # typed: false
6
+
7
+ module ActiveSupport
8
+ extend(::ActiveSupport::LazyLoadHooks)
9
+ extend(::ActiveSupport::Autoload)
10
+
11
+ def parse_json_times; end
12
+ def parse_json_times=(val); end
13
+ def test_order; end
14
+ def test_order=(val); end
15
+
16
+ class << self
17
+ def eager_load!; end
18
+ def escape_html_entities_in_json(*args, &block); end
19
+ def escape_html_entities_in_json=(arg); end
20
+ def gem_version; end
21
+ def json_encoder(*args, &block); end
22
+ def json_encoder=(arg); end
23
+ def parse_json_times; end
24
+ def parse_json_times=(val); end
25
+ def test_order; end
26
+ def test_order=(val); end
27
+ def time_precision(*args, &block); end
28
+ def time_precision=(arg); end
29
+ def to_time_preserves_timezone; end
30
+ def to_time_preserves_timezone=(value); end
31
+ def use_standard_json_time_format(*args, &block); end
32
+ def use_standard_json_time_format=(arg); end
33
+ def utc_to_local_returns_utc_offset_times; end
34
+ def utc_to_local_returns_utc_offset_times=(value); end
35
+ def version; end
36
+ end
37
+ end
38
+
39
+ module ActiveSupport::ActionableError
40
+ extend(::ActiveSupport::Concern)
41
+
42
+ mixes_in_class_methods(::ActiveSupport::ActionableError::ClassMethods)
43
+
44
+ class << self
45
+ def actions(error); end
46
+ def dispatch(error, name); end
47
+ end
48
+ end
49
+
50
+ module ActiveSupport::ActionableError::ClassMethods
51
+ def action(name, &block); end
52
+ end
53
+
54
+ class ActiveSupport::ActionableError::NonActionable < ::StandardError
55
+ end
56
+
57
+ class ActiveSupport::ArrayInquirer < ::Array
58
+ def any?(*candidates); end
59
+
60
+ private
61
+
62
+ def method_missing(name, *args); end
63
+ def respond_to_missing?(name, include_private = T.unsafe(nil)); end
64
+ end
65
+
66
+ module ActiveSupport::Autoload
67
+ def autoload(const_name, path = T.unsafe(nil)); end
68
+ def autoload_at(path); end
69
+ def autoload_under(path); end
70
+ def autoloads; end
71
+ def eager_autoload; end
72
+ def eager_load!; end
73
+
74
+ class << self
75
+ def extended(base); end
76
+ end
77
+ end
78
+
79
+ class ActiveSupport::BacktraceCleaner
80
+ def initialize; end
81
+
82
+ def add_filter(&block); end
83
+ def add_silencer(&block); end
84
+ def clean(backtrace, kind = T.unsafe(nil)); end
85
+ def filter(backtrace, kind = T.unsafe(nil)); end
86
+ def remove_filters!; end
87
+ def remove_silencers!; end
88
+
89
+ private
90
+
91
+ def add_gem_filter; end
92
+ def add_gem_silencer; end
93
+ def add_stdlib_silencer; end
94
+ def filter_backtrace(backtrace); end
95
+ def noise(backtrace); end
96
+ def silence(backtrace); end
97
+ end
98
+
99
+ ActiveSupport::BacktraceCleaner::FORMATTED_GEMS_PATTERN = T.let(T.unsafe(nil), Regexp)
100
+
101
+ module ActiveSupport::Benchmarkable
102
+ def benchmark(message = T.unsafe(nil), options = T.unsafe(nil)); end
103
+ end
104
+
105
+ module ActiveSupport::BigDecimalWithDefaultFormat
106
+ def to_s(format = T.unsafe(nil)); end
107
+ end
108
+
109
+ module ActiveSupport::Cache
110
+ class << self
111
+ def expand_cache_key(key, namespace = T.unsafe(nil)); end
112
+ def lookup_store(store = T.unsafe(nil), *parameters); end
113
+
114
+ private
115
+
116
+ def retrieve_cache_key(key); end
117
+ def retrieve_store_class(store); end
118
+ end
119
+ end
120
+
121
+ class ActiveSupport::Cache::Entry
122
+ def initialize(value, compress: T.unsafe(nil), compress_threshold: T.unsafe(nil), version: T.unsafe(nil), expires_in: T.unsafe(nil), **_); end
123
+
124
+ def dup_value!; end
125
+ def expired?; end
126
+ def expires_at; end
127
+ def expires_at=(value); end
128
+ def mismatched?(version); end
129
+ def size; end
130
+ def value; end
131
+ def version; end
132
+
133
+ private
134
+
135
+ def compress!(compress_threshold); end
136
+ def compressed?; end
137
+ def uncompress(value); end
138
+ end
139
+
140
+ ActiveSupport::Cache::Entry::DEFAULT_COMPRESS_LIMIT = T.let(T.unsafe(nil), Integer)
141
+
142
+ class ActiveSupport::Cache::FileStore < ::ActiveSupport::Cache::Store
143
+ include(::ActiveSupport::Cache::Strategy::LocalCache)
144
+
145
+ def initialize(cache_path, options = T.unsafe(nil)); end
146
+
147
+ def cache_path; end
148
+ def delete_matched(matcher, options = T.unsafe(nil)); end
149
+
150
+ private
151
+
152
+ def delete_empty_directories(dir); end
153
+ def ensure_cache_path(path); end
154
+ def file_path_key(path); end
155
+ def lock_file(file_name, &block); end
156
+ def modify_value(name, amount, options); end
157
+ def normalize_key(key, options); end
158
+ def search_dir(dir, &callback); end
159
+
160
+ class << self
161
+ def supports_cache_versioning?; end
162
+ end
163
+ end
164
+
165
+ ActiveSupport::Cache::FileStore::DIR_FORMATTER = T.let(T.unsafe(nil), String)
166
+
167
+ ActiveSupport::Cache::FileStore::FILENAME_MAX_SIZE = T.let(T.unsafe(nil), Integer)
168
+
169
+ ActiveSupport::Cache::FileStore::FILEPATH_MAX_SIZE = T.let(T.unsafe(nil), Integer)
170
+
171
+ ActiveSupport::Cache::FileStore::GITKEEP_FILES = T.let(T.unsafe(nil), Array)
172
+
173
+ class ActiveSupport::Cache::MemoryStore < ::ActiveSupport::Cache::Store
174
+ def initialize(options = T.unsafe(nil)); end
175
+
176
+ def cleanup(options = T.unsafe(nil)); end
177
+ def clear(options = T.unsafe(nil)); end
178
+ def decrement(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end
179
+ def delete_matched(matcher, options = T.unsafe(nil)); end
180
+ def increment(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end
181
+ def inspect; end
182
+ def prune(target_size, max_time = T.unsafe(nil)); end
183
+ def pruning?; end
184
+ def synchronize(&block); end
185
+
186
+ private
187
+
188
+ def cached_size(key, entry); end
189
+ def delete_entry(key, **options); end
190
+ def modify_value(name, amount, options); end
191
+ def read_entry(key, **options); end
192
+ def write_entry(key, entry, **options); end
193
+
194
+ class << self
195
+ def supports_cache_versioning?; end
196
+ end
197
+ end
198
+
199
+ ActiveSupport::Cache::MemoryStore::PER_ENTRY_OVERHEAD = T.let(T.unsafe(nil), Integer)
200
+
201
+ class ActiveSupport::Cache::NullStore < ::ActiveSupport::Cache::Store
202
+ include(::ActiveSupport::Cache::Strategy::LocalCache)
203
+
204
+ def delete_matched(matcher, options = T.unsafe(nil)); end
205
+
206
+ class << self
207
+ def supports_cache_versioning?; end
208
+ end
209
+ end
210
+
211
+ class ActiveSupport::Cache::Store
212
+ def initialize(options = T.unsafe(nil)); end
213
+
214
+ def cleanup(options = T.unsafe(nil)); end
215
+ def clear(options = T.unsafe(nil)); end
216
+ def decrement(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end
217
+ def delete(name, options = T.unsafe(nil)); end
218
+ def delete_matched(matcher, options = T.unsafe(nil)); end
219
+ def delete_multi(names, options = T.unsafe(nil)); end
220
+ def exist?(name, options = T.unsafe(nil)); end
221
+ def fetch(name, options = T.unsafe(nil), &block); end
222
+ def fetch_multi(*names); end
223
+ def increment(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end
224
+ def logger; end
225
+ def logger=(val); end
226
+ def mute; end
227
+ def options; end
228
+ def read(name, options = T.unsafe(nil)); end
229
+ def read_multi(*names); end
230
+ def silence; end
231
+ def silence!; end
232
+ def silence?; end
233
+ def write(name, value, options = T.unsafe(nil)); end
234
+ def write_multi(hash, options = T.unsafe(nil)); end
235
+
236
+ private
237
+
238
+ def delete_entry(key, **options); end
239
+ def delete_multi_entries(entries, **options); end
240
+ def expanded_key(key); end
241
+ def expanded_version(key); end
242
+ def get_entry_value(entry, name, options); end
243
+ def handle_expired_entry(entry, key, options); end
244
+ def instrument(operation, key, options = T.unsafe(nil)); end
245
+ def key_matcher(pattern, options); end
246
+ def merged_options(call_options); end
247
+ def namespace_key(key, options = T.unsafe(nil)); end
248
+ def normalize_key(key, options = T.unsafe(nil)); end
249
+ def normalize_version(key, options = T.unsafe(nil)); end
250
+ def read_entry(key, **options); end
251
+ def read_multi_entries(names, **options); end
252
+ def save_block_result_to_cache(name, options); end
253
+ def write_entry(key, entry, **options); end
254
+ def write_multi_entries(hash, **options); end
255
+
256
+ class << self
257
+ def logger; end
258
+ def logger=(val); end
259
+
260
+ private
261
+
262
+ def ensure_connection_pool_added!; end
263
+ def retrieve_pool_options(options); end
264
+ end
265
+ end
266
+
267
+ module ActiveSupport::Cache::Strategy
268
+ end
269
+
270
+ module ActiveSupport::Cache::Strategy::LocalCache
271
+ def cleanup(**options); end
272
+ def clear(**options); end
273
+ def decrement(name, amount = T.unsafe(nil), **options); end
274
+ def increment(name, amount = T.unsafe(nil), **options); end
275
+ def middleware; end
276
+ def with_local_cache; end
277
+
278
+ private
279
+
280
+ def bypass_local_cache; end
281
+ def delete_entry(key, **options); end
282
+ def local_cache; end
283
+ def local_cache_key; end
284
+ def read_entry(key, **options); end
285
+ def read_multi_entries(keys, **options); end
286
+ def use_temporary_local_cache(temporary_cache); end
287
+ def write_cache_value(name, value, **options); end
288
+ def write_entry(key, entry, **options); end
289
+ end
290
+
291
+ class ActiveSupport::Cache::Strategy::LocalCache::LocalCacheRegistry
292
+ extend(::ActiveSupport::PerThreadRegistry)
293
+
294
+ def initialize; end
295
+
296
+ def cache_for(local_cache_key); end
297
+ def set_cache_for(local_cache_key, value); end
298
+
299
+ class << self
300
+ def cache_for(l); end
301
+ def set_cache_for(l, v); end
302
+ end
303
+ end
304
+
305
+ class ActiveSupport::Cache::Strategy::LocalCache::LocalStore < ::ActiveSupport::Cache::Store
306
+ def initialize; end
307
+
308
+ def clear(options = T.unsafe(nil)); end
309
+ def delete_entry(key, **options); end
310
+ def fetch_entry(key, options = T.unsafe(nil)); end
311
+ def read_entry(key, **options); end
312
+ def read_multi_entries(keys, **options); end
313
+ def synchronize; end
314
+ def write_entry(key, entry, **options); end
315
+ end
316
+
317
+ class ActiveSupport::Cache::Strategy::LocalCache::Middleware
318
+ def initialize(name, local_cache_key); end
319
+
320
+ def call(env); end
321
+ def local_cache_key; end
322
+ def name; end
323
+ def new(app); end
324
+ end
325
+
326
+ ActiveSupport::Cache::UNIVERSAL_OPTIONS = T.let(T.unsafe(nil), Array)
327
+
328
+ class ActiveSupport::CachingKeyGenerator
329
+ def initialize(key_generator); end
330
+
331
+ def generate_key(*args); end
332
+ end
333
+
334
+ module ActiveSupport::Callbacks
335
+ extend(::ActiveSupport::Concern)
336
+
337
+ mixes_in_class_methods(::ActiveSupport::Callbacks::ClassMethods)
338
+
339
+ def run_callbacks(kind); end
340
+
341
+ private
342
+
343
+ def halted_callback_hook(filter, name); end
344
+ end
345
+
346
+ ActiveSupport::Callbacks::CALLBACK_FILTER_TYPES = T.let(T.unsafe(nil), Array)
347
+
348
+ class ActiveSupport::Callbacks::CallTemplate
349
+ def initialize(target, method, arguments, block); end
350
+
351
+ def expand(target, value, block); end
352
+ def inverted_lambda; end
353
+ def make_lambda; end
354
+
355
+ class << self
356
+ def build(filter, callback); end
357
+ end
358
+ end
359
+
360
+ class ActiveSupport::Callbacks::Callback
361
+ def initialize(name, filter, kind, options, chain_config); end
362
+
363
+ def apply(callback_sequence); end
364
+ def chain_config; end
365
+ def current_scopes; end
366
+ def duplicates?(other); end
367
+ def filter; end
368
+ def kind; end
369
+ def kind=(_); end
370
+ def matches?(_kind, _filter); end
371
+ def merge_conditional_options(chain, if_option:, unless_option:); end
372
+ def name; end
373
+ def name=(_); end
374
+ def raw_filter; end
375
+
376
+ private
377
+
378
+ def check_conditionals(conditionals); end
379
+ def compute_identifier(filter); end
380
+ def conditions_lambdas; end
381
+
382
+ class << self
383
+ def build(chain, filter, kind, options); end
384
+ end
385
+ end
386
+
387
+ class ActiveSupport::Callbacks::CallbackChain
388
+ include(::Enumerable)
389
+
390
+ def initialize(name, config); end
391
+
392
+ def append(*callbacks); end
393
+ def clear; end
394
+ def compile; end
395
+ def config; end
396
+ def delete(o); end
397
+ def each(&block); end
398
+ def empty?; end
399
+ def index(o); end
400
+ def insert(index, o); end
401
+ def name; end
402
+ def prepend(*callbacks); end
403
+
404
+ protected
405
+
406
+ def chain; end
407
+
408
+ private
409
+
410
+ def append_one(callback); end
411
+ def default_terminator; end
412
+ def initialize_copy(other); end
413
+ def prepend_one(callback); end
414
+ def remove_duplicates(callback); end
415
+ end
416
+
417
+ class ActiveSupport::Callbacks::CallbackSequence
418
+ def initialize(nested = T.unsafe(nil), call_template = T.unsafe(nil), user_conditions = T.unsafe(nil)); end
419
+
420
+ def after(&after); end
421
+ def around(call_template, user_conditions); end
422
+ def before(&before); end
423
+ def expand_call_template(arg, block); end
424
+ def final?; end
425
+ def invoke_after(arg); end
426
+ def invoke_before(arg); end
427
+ def nested; end
428
+ def skip?(arg); end
429
+ end
430
+
431
+ module ActiveSupport::Callbacks::ClassMethods
432
+ def __update_callbacks(name); end
433
+ def define_callbacks(*names); end
434
+ def normalize_callback_params(filters, block); end
435
+ def reset_callbacks(name); end
436
+ def set_callback(name, *filter_list, &block); end
437
+ def skip_callback(name, *filter_list, &block); end
438
+
439
+ protected
440
+
441
+ def get_callbacks(name); end
442
+ def set_callbacks(name, callbacks); end
443
+ end
444
+
445
+ module ActiveSupport::Callbacks::Conditionals
446
+ end
447
+
448
+ class ActiveSupport::Callbacks::Conditionals::Value
449
+ def initialize(&block); end
450
+
451
+ def call(target, value); end
452
+ end
453
+
454
+ module ActiveSupport::Callbacks::Filters
455
+ end
456
+
457
+ class ActiveSupport::Callbacks::Filters::After
458
+ class << self
459
+ def build(callback_sequence, user_callback, user_conditions, chain_config); end
460
+
461
+ private
462
+
463
+ def conditional(callback_sequence, user_callback, user_conditions); end
464
+ def halting(callback_sequence, user_callback); end
465
+ def halting_and_conditional(callback_sequence, user_callback, user_conditions); end
466
+ def simple(callback_sequence, user_callback); end
467
+ end
468
+ end
469
+
470
+ class ActiveSupport::Callbacks::Filters::Before
471
+ class << self
472
+ def build(callback_sequence, user_callback, user_conditions, chain_config, filter, name); end
473
+
474
+ private
475
+
476
+ def halting(callback_sequence, user_callback, halted_lambda, filter, name); end
477
+ def halting_and_conditional(callback_sequence, user_callback, user_conditions, halted_lambda, filter, name); end
478
+ end
479
+ end
480
+
481
+ class ActiveSupport::Callbacks::Filters::Environment < ::Struct
482
+ def halted; end
483
+ def halted=(_); end
484
+ def target; end
485
+ def target=(_); end
486
+ def value; end
487
+ def value=(_); end
488
+
489
+ class << self
490
+ def [](*_); end
491
+ def inspect; end
492
+ def members; end
493
+ def new(*_); end
494
+ end
495
+ end
496
+
497
+ module ActiveSupport::CompareWithRange
498
+ def ===(value); end
499
+ def cover?(value); end
500
+ def include?(value); end
501
+ end
502
+
503
+ module ActiveSupport::Concern
504
+ def append_features(base); end
505
+ def class_methods(&class_methods_module_definition); end
506
+ def included(base = T.unsafe(nil), &block); end
507
+ def prepend_features(base); end
508
+ def prepended(base = T.unsafe(nil), &block); end
509
+
510
+ class << self
511
+ def extended(base); end
512
+ end
513
+ end
514
+
515
+ class ActiveSupport::Concern::MultipleIncludedBlocks < ::StandardError
516
+ def initialize; end
517
+ end
518
+
519
+ class ActiveSupport::Concern::MultiplePrependBlocks < ::StandardError
520
+ def initialize; end
521
+ end
522
+
523
+ module ActiveSupport::Concurrency
524
+ end
525
+
526
+ class ActiveSupport::Concurrency::LoadInterlockAwareMonitor < ::Monitor
527
+ def mon_enter; end
528
+ def synchronize; end
529
+ end
530
+
531
+ class ActiveSupport::Concurrency::ShareLock
532
+ include(::MonitorMixin)
533
+
534
+ def initialize; end
535
+
536
+ def exclusive(purpose: T.unsafe(nil), compatible: T.unsafe(nil), after_compatible: T.unsafe(nil), no_wait: T.unsafe(nil)); end
537
+ def raw_state; end
538
+ def sharing; end
539
+ def start_exclusive(purpose: T.unsafe(nil), compatible: T.unsafe(nil), no_wait: T.unsafe(nil)); end
540
+ def start_sharing; end
541
+ def stop_exclusive(compatible: T.unsafe(nil)); end
542
+ def stop_sharing; end
543
+ def yield_shares(purpose: T.unsafe(nil), compatible: T.unsafe(nil), block_share: T.unsafe(nil)); end
544
+
545
+ private
546
+
547
+ def busy_for_exclusive?(purpose); end
548
+ def busy_for_sharing?(purpose); end
549
+ def eligible_waiters?(compatible); end
550
+ def wait_for(method); end
551
+ end
552
+
553
+ module ActiveSupport::Configurable
554
+ extend(::ActiveSupport::Concern)
555
+
556
+ mixes_in_class_methods(::ActiveSupport::Configurable::ClassMethods)
557
+
558
+ def config; end
559
+ end
560
+
561
+ module ActiveSupport::Configurable::ClassMethods
562
+ def config; end
563
+ def configure; end
564
+
565
+ private
566
+
567
+ def config_accessor(*names, instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil)); end
568
+ end
569
+
570
+ class ActiveSupport::Configurable::Configuration < ::ActiveSupport::InheritableOptions
571
+ def compile_methods!; end
572
+
573
+ class << self
574
+ def compile_methods!(keys); end
575
+ end
576
+ end
577
+
578
+ class ActiveSupport::ConfigurationFile
579
+ def initialize(content_path); end
580
+
581
+ def parse(context: T.unsafe(nil), **options); end
582
+
583
+ private
584
+
585
+ def read(content_path); end
586
+ def render(context); end
587
+
588
+ class << self
589
+ def parse(content_path, **options); end
590
+ end
591
+ end
592
+
593
+ class ActiveSupport::ConfigurationFile::FormatError < ::StandardError
594
+ end
595
+
596
+ class ActiveSupport::CurrentAttributes
597
+ include(::ActiveSupport::Callbacks)
598
+ extend(::ActiveSupport::Callbacks::ClassMethods)
599
+ extend(::ActiveSupport::DescendantsTracker)
600
+
601
+ def initialize; end
602
+
603
+ def __callbacks; end
604
+ def __callbacks?; end
605
+ def _reset_callbacks; end
606
+ def _run_reset_callbacks(&block); end
607
+ def attributes; end
608
+ def attributes=(_); end
609
+ def reset; end
610
+ def set(set_attributes); end
611
+
612
+ private
613
+
614
+ def assign_attributes(new_attributes); end
615
+ def compute_attributes(keys); end
616
+
617
+ class << self
618
+ def __callbacks; end
619
+ def __callbacks=(value); end
620
+ def __callbacks?; end
621
+ def _reset_callbacks; end
622
+ def _reset_callbacks=(value); end
623
+ def after_reset(&block); end
624
+ def attribute(*names); end
625
+ def before_reset(&block); end
626
+ def clear_all; end
627
+ def instance; end
628
+ def reset(*args, &block); end
629
+ def reset_all; end
630
+ def resets(&block); end
631
+ def set(*args, &block); end
632
+
633
+ private
634
+
635
+ def current_instances; end
636
+ def current_instances_key; end
637
+ def generated_attribute_methods; end
638
+ def method_missing(name, *args, &block); end
639
+ end
640
+ end
641
+
642
+ module ActiveSupport::Dependencies
643
+ extend(::ActiveSupport::Dependencies)
644
+
645
+ def _eager_load_paths; end
646
+ def _eager_load_paths=(val); end
647
+ def autoload_module!(into, const_name, qualified_name, path_suffix); end
648
+ def autoload_once_paths; end
649
+ def autoload_once_paths=(val); end
650
+ def autoload_paths; end
651
+ def autoload_paths=(val); end
652
+ def autoloadable_module?(path_suffix); end
653
+ def autoloaded?(desc); end
654
+ def autoloaded_constants; end
655
+ def autoloaded_constants=(val); end
656
+ def clear; end
657
+ def constant_watch_stack; end
658
+ def constant_watch_stack=(val); end
659
+ def constantize(name); end
660
+ def depend_on(file_name, message = T.unsafe(nil)); end
661
+ def explicitly_unloadable_constants; end
662
+ def explicitly_unloadable_constants=(val); end
663
+ def history; end
664
+ def history=(val); end
665
+ def hook!; end
666
+ def interlock; end
667
+ def interlock=(val); end
668
+ def load?; end
669
+ def load_file(path, const_paths = T.unsafe(nil)); end
670
+ def load_missing_constant(from_mod, const_name); end
671
+ def load_once_path?(path); end
672
+ def loadable_constants_for_path(path, bases = T.unsafe(nil)); end
673
+ def loaded; end
674
+ def loaded=(val); end
675
+ def loading; end
676
+ def loading=(val); end
677
+ def log(message); end
678
+ def logger; end
679
+ def logger=(val); end
680
+ def mark_for_unload(const_desc); end
681
+ def mechanism; end
682
+ def mechanism=(val); end
683
+ def new_constants_in(*descs); end
684
+ def qualified_const_defined?(path); end
685
+ def qualified_name_for(mod, name); end
686
+ def reference(klass); end
687
+ def remove_constant(const); end
688
+ def remove_unloadable_constants!; end
689
+ def require_or_load(file_name, const_path = T.unsafe(nil)); end
690
+ def safe_constantize(name); end
691
+ def search_for_file(path_suffix); end
692
+ def to_constant_name(desc); end
693
+ def unhook!; end
694
+ def verbose; end
695
+ def verbose=(val); end
696
+ def warnings_on_first_load; end
697
+ def warnings_on_first_load=(val); end
698
+ def will_unload?(const_desc); end
699
+
700
+ private
701
+
702
+ def real_mod_name(mod); end
703
+
704
+ class << self
705
+ def _eager_load_paths; end
706
+ def _eager_load_paths=(val); end
707
+ def autoload_once_paths; end
708
+ def autoload_once_paths=(val); end
709
+ def autoload_paths; end
710
+ def autoload_paths=(val); end
711
+ def autoloaded_constants; end
712
+ def autoloaded_constants=(val); end
713
+ def constant_watch_stack; end
714
+ def constant_watch_stack=(val); end
715
+ def explicitly_unloadable_constants; end
716
+ def explicitly_unloadable_constants=(val); end
717
+ def history; end
718
+ def history=(val); end
719
+ def interlock; end
720
+ def interlock=(val); end
721
+ def load_interlock; end
722
+ def loaded; end
723
+ def loaded=(val); end
724
+ def loading; end
725
+ def loading=(val); end
726
+ def logger; end
727
+ def logger=(val); end
728
+ def mechanism; end
729
+ def mechanism=(val); end
730
+ def run_interlock; end
731
+ def unload_interlock; end
732
+ def verbose; end
733
+ def verbose=(val); end
734
+ def warnings_on_first_load; end
735
+ def warnings_on_first_load=(val); end
736
+ end
737
+ end
738
+
739
+ module ActiveSupport::Dependencies::Blamable
740
+ def blame_file!(file); end
741
+ def blamed_files; end
742
+ def copy_blame!(exc); end
743
+ def describe_blame; end
744
+ end
745
+
746
+ class ActiveSupport::Dependencies::ClassCache
747
+ def initialize; end
748
+
749
+ def [](key); end
750
+ def clear!; end
751
+ def empty?; end
752
+ def get(key); end
753
+ def key?(key); end
754
+ def safe_get(key); end
755
+ def store(klass); end
756
+ end
757
+
758
+ class ActiveSupport::Dependencies::Interlock
759
+ def initialize; end
760
+
761
+ def done_running; end
762
+ def done_unloading; end
763
+ def loading; end
764
+ def permit_concurrent_loads; end
765
+ def raw_state(&block); end
766
+ def running; end
767
+ def start_running; end
768
+ def start_unloading; end
769
+ def unloading; end
770
+ end
771
+
772
+ module ActiveSupport::Dependencies::Loadable
773
+ def load_dependency(file); end
774
+ def require_dependency(file_name, message = T.unsafe(nil)); end
775
+ def require_or_load(file_name); end
776
+ def unloadable(const_desc); end
777
+
778
+ private
779
+
780
+ def load(file, wrap = T.unsafe(nil)); end
781
+ def require(file); end
782
+
783
+ class << self
784
+ def exclude_from(base); end
785
+ def include_into(base); end
786
+ end
787
+ end
788
+
789
+ module ActiveSupport::Dependencies::ModuleConstMissing
790
+ def const_missing(const_name); end
791
+ def guess_for_anonymous(const_name); end
792
+ def unloadable(const_desc = T.unsafe(nil)); end
793
+
794
+ class << self
795
+ def append_features(base); end
796
+ def exclude_from(base); end
797
+ def include_into(base); end
798
+ end
799
+ end
800
+
801
+ ActiveSupport::Dependencies::Reference = T.let(T.unsafe(nil), ActiveSupport::Dependencies::ClassCache)
802
+
803
+ class ActiveSupport::Dependencies::WatchStack
804
+ include(::Enumerable)
805
+
806
+ def initialize; end
807
+
808
+ def each(&block); end
809
+ def new_constants; end
810
+ def watch_namespaces(namespaces); end
811
+ def watching; end
812
+ def watching?; end
813
+
814
+ private
815
+
816
+ def pop_modules(modules); end
817
+ end
818
+
819
+ module ActiveSupport::Dependencies::ZeitwerkIntegration
820
+ class << self
821
+ def take_over(enable_reloading:); end
822
+
823
+ private
824
+
825
+ def autoload_once?(autoload_path); end
826
+ def decorate_dependencies; end
827
+ def eager_load?(autoload_path); end
828
+ def freeze_paths; end
829
+ def setup_autoloaders(enable_reloading); end
830
+ end
831
+ end
832
+
833
+ module ActiveSupport::Dependencies::ZeitwerkIntegration::Decorations
834
+ def autoloaded?(object); end
835
+ def autoloaded_constants; end
836
+ def clear; end
837
+ def constantize(cpath); end
838
+ def safe_constantize(cpath); end
839
+ def unhook!; end
840
+ def verbose=(verbose); end
841
+ end
842
+
843
+ module ActiveSupport::Dependencies::ZeitwerkIntegration::Inflector
844
+ class << self
845
+ def camelize(basename, _abspath); end
846
+ def inflect(overrides); end
847
+ end
848
+ end
849
+
850
+ module ActiveSupport::Dependencies::ZeitwerkIntegration::RequireDependency
851
+ def require_dependency(filename); end
852
+ end
853
+
854
+ class ActiveSupport::Deprecation
855
+ include(::Singleton)
856
+ include(::ActiveSupport::Deprecation::InstanceDelegator)
857
+ include(::ActiveSupport::Deprecation::Behavior)
858
+ include(::ActiveSupport::Deprecation::Reporting)
859
+ include(::ActiveSupport::Deprecation::Disallowed)
860
+ include(::ActiveSupport::Deprecation::MethodWrapper)
861
+ extend(::Singleton::SingletonClassMethods)
862
+ extend(::ActiveSupport::Deprecation::InstanceDelegator::ClassMethods)
863
+ extend(::ActiveSupport::Deprecation::InstanceDelegator::OverrideDelegators)
864
+
865
+ def initialize(deprecation_horizon = T.unsafe(nil), gem_name = T.unsafe(nil)); end
866
+
867
+ def deprecation_horizon; end
868
+ def deprecation_horizon=(_); end
869
+
870
+ class << self
871
+ def allow(*args, &block); end
872
+ def behavior(*args, &block); end
873
+ def behavior=(arg); end
874
+ def debug(*args, &block); end
875
+ def debug=(arg); end
876
+ def deprecate_methods(*args, &block); end
877
+ def deprecation_horizon(*args, &block); end
878
+ def deprecation_horizon=(arg); end
879
+ def disallowed_behavior(*args, &block); end
880
+ def disallowed_behavior=(arg); end
881
+ def disallowed_warnings(*args, &block); end
882
+ def disallowed_warnings=(arg); end
883
+ def gem_name(*args, &block); end
884
+ def gem_name=(arg); end
885
+ def instance; end
886
+ def silence(*args, &block); end
887
+ def silenced(*args, &block); end
888
+ def silenced=(arg); end
889
+ end
890
+ end
891
+
892
+ module ActiveSupport::Deprecation::Behavior
893
+ def behavior; end
894
+ def behavior=(behavior); end
895
+ def debug; end
896
+ def debug=(_); end
897
+ def disallowed_behavior; end
898
+ def disallowed_behavior=(behavior); end
899
+
900
+ private
901
+
902
+ def arity_coerce(behavior); end
903
+ end
904
+
905
+ ActiveSupport::Deprecation::DEFAULT_BEHAVIORS = T.let(T.unsafe(nil), Hash)
906
+
907
+ module ActiveSupport::Deprecation::DeprecatedConstantAccessor
908
+ class << self
909
+ def included(base); end
910
+ end
911
+ end
912
+
913
+ class ActiveSupport::Deprecation::DeprecatedConstantProxy < ::Module
914
+ def initialize(old_const, new_const, deprecator = T.unsafe(nil), message: T.unsafe(nil)); end
915
+
916
+ def class; end
917
+ def hash(*args, &block); end
918
+ def inspect; end
919
+ def instance_methods(*args, &block); end
920
+ def name(*args, &block); end
921
+ def respond_to?(*args, &block); end
922
+
923
+ private
924
+
925
+ def const_missing(name); end
926
+ def method_missing(called, *args, &block); end
927
+ def target; end
928
+
929
+ class << self
930
+ def new(*args, **options, &block); end
931
+ end
932
+ end
933
+
934
+ class ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy < ::ActiveSupport::Deprecation::DeprecationProxy
935
+ def initialize(instance, method, var = T.unsafe(nil), deprecator = T.unsafe(nil)); end
936
+
937
+
938
+ private
939
+
940
+ def target; end
941
+ def warn(callstack, called, args); end
942
+ end
943
+
944
+ class ActiveSupport::Deprecation::DeprecatedObjectProxy < ::ActiveSupport::Deprecation::DeprecationProxy
945
+ def initialize(object, message, deprecator = T.unsafe(nil)); end
946
+
947
+
948
+ private
949
+
950
+ def target; end
951
+ def warn(callstack, called, args); end
952
+ end
953
+
954
+ class ActiveSupport::Deprecation::DeprecationProxy
955
+ def inspect; end
956
+
957
+ private
958
+
959
+ def method_missing(called, *args, &block); end
960
+
961
+ class << self
962
+ def new(*args, &block); end
963
+ end
964
+ end
965
+
966
+ module ActiveSupport::Deprecation::Disallowed
967
+ def disallowed_warnings; end
968
+ def disallowed_warnings=(_); end
969
+
970
+ private
971
+
972
+ def deprecation_disallowed?(message); end
973
+ def explicitly_allowed?(message); end
974
+ end
975
+
976
+ module ActiveSupport::Deprecation::InstanceDelegator
977
+ mixes_in_class_methods(::ActiveSupport::Deprecation::InstanceDelegator::OverrideDelegators)
978
+
979
+ class << self
980
+ def included(base); end
981
+ end
982
+ end
983
+
984
+ module ActiveSupport::Deprecation::InstanceDelegator::ClassMethods
985
+ def include(included_module); end
986
+ def method_added(method_name); end
987
+ end
988
+
989
+ module ActiveSupport::Deprecation::InstanceDelegator::OverrideDelegators
990
+ def deprecation_warning(deprecated_method_name, message = T.unsafe(nil), caller_backtrace = T.unsafe(nil)); end
991
+ def warn(message = T.unsafe(nil), callstack = T.unsafe(nil)); end
992
+ end
993
+
994
+ module ActiveSupport::Deprecation::MethodWrapper
995
+ def deprecate_methods(target_module, *method_names); end
996
+ end
997
+
998
+ module ActiveSupport::Deprecation::Reporting
999
+ def allow(allowed_warnings = T.unsafe(nil), if: T.unsafe(nil), &block); end
1000
+ def deprecation_warning(deprecated_method_name, message = T.unsafe(nil), caller_backtrace = T.unsafe(nil)); end
1001
+ def gem_name; end
1002
+ def gem_name=(_); end
1003
+ def silence(&block); end
1004
+ def silenced; end
1005
+ def silenced=(_); end
1006
+ def warn(message = T.unsafe(nil), callstack = T.unsafe(nil)); end
1007
+
1008
+ private
1009
+
1010
+ def _extract_callstack(callstack); end
1011
+ def deprecated_method_warning(method_name, message = T.unsafe(nil)); end
1012
+ def deprecation_caller_message(callstack); end
1013
+ def deprecation_message(callstack, message = T.unsafe(nil)); end
1014
+ def extract_callstack(callstack); end
1015
+ def ignored_callstack(path); end
1016
+ end
1017
+
1018
+ ActiveSupport::Deprecation::Reporting::RAILS_GEM_ROOT = T.let(T.unsafe(nil), String)
1019
+
1020
+ class ActiveSupport::DeprecationException < ::StandardError
1021
+ end
1022
+
1023
+ module ActiveSupport::DescendantsTracker
1024
+ def descendants; end
1025
+ def direct_descendants; end
1026
+ def inherited(base); end
1027
+
1028
+ class << self
1029
+ def clear; end
1030
+ def descendants(klass); end
1031
+ def direct_descendants(klass); end
1032
+ def store_inherited(klass, descendant); end
1033
+
1034
+ private
1035
+
1036
+ def accumulate_descendants(klass, acc); end
1037
+ end
1038
+ end
1039
+
1040
+ class ActiveSupport::DescendantsTracker::DescendantsArray
1041
+ include(::Enumerable)
1042
+
1043
+ def initialize; end
1044
+
1045
+ def <<(klass); end
1046
+ def cleanup!; end
1047
+ def each; end
1048
+ def refs_size; end
1049
+ def reject!; end
1050
+
1051
+ private
1052
+
1053
+ def initialize_copy(orig); end
1054
+ end
1055
+
1056
+ class ActiveSupport::Digest
1057
+ class << self
1058
+ def hash_digest_class; end
1059
+ def hash_digest_class=(klass); end
1060
+ def hexdigest(arg); end
1061
+ end
1062
+ end
1063
+
1064
+ class ActiveSupport::Duration
1065
+ def initialize(value, parts); end
1066
+
1067
+ def %(other); end
1068
+ def *(other); end
1069
+ def +(other); end
1070
+ def +@; end
1071
+ def -(other); end
1072
+ def -@; end
1073
+ def /(other); end
1074
+ def <=>(other); end
1075
+ def ==(other); end
1076
+ def after(time = T.unsafe(nil)); end
1077
+ def ago(time = T.unsafe(nil)); end
1078
+ def as_json(options = T.unsafe(nil)); end
1079
+ def before(time = T.unsafe(nil)); end
1080
+ def coerce(other); end
1081
+ def encode_with(coder); end
1082
+ def eql?(other); end
1083
+ def from_now(time = T.unsafe(nil)); end
1084
+ def hash; end
1085
+ def init_with(coder); end
1086
+ def inspect; end
1087
+ def instance_of?(klass); end
1088
+ def is_a?(klass); end
1089
+ def iso8601(precision: T.unsafe(nil)); end
1090
+ def kind_of?(klass); end
1091
+ def parts; end
1092
+ def parts=(_); end
1093
+ def since(time = T.unsafe(nil)); end
1094
+ def to_i; end
1095
+ def to_s; end
1096
+ def until(time = T.unsafe(nil)); end
1097
+ def value; end
1098
+ def value=(_); end
1099
+
1100
+ private
1101
+
1102
+ def method_missing(method, *args, &block); end
1103
+ def raise_type_error(other); end
1104
+ def respond_to_missing?(method, _); end
1105
+ def sum(sign, time = T.unsafe(nil)); end
1106
+
1107
+ class << self
1108
+ def ===(other); end
1109
+ def build(value); end
1110
+ def days(value); end
1111
+ def hours(value); end
1112
+ def minutes(value); end
1113
+ def months(value); end
1114
+ def parse(iso8601duration); end
1115
+ def seconds(value); end
1116
+ def weeks(value); end
1117
+ def years(value); end
1118
+
1119
+ private
1120
+
1121
+ def calculate_total_seconds(parts); end
1122
+ end
1123
+ end
1124
+
1125
+ class ActiveSupport::Duration::ISO8601Parser
1126
+ def initialize(string); end
1127
+
1128
+ def mode; end
1129
+ def mode=(_); end
1130
+ def parse!; end
1131
+ def parts; end
1132
+ def scanner; end
1133
+ def sign; end
1134
+ def sign=(_); end
1135
+
1136
+ private
1137
+
1138
+ def finished?; end
1139
+ def number; end
1140
+ def raise_parsing_error(reason = T.unsafe(nil)); end
1141
+ def scan(pattern); end
1142
+ def validate!; end
1143
+ end
1144
+
1145
+ ActiveSupport::Duration::ISO8601Parser::COMMA = T.let(T.unsafe(nil), String)
1146
+
1147
+ ActiveSupport::Duration::ISO8601Parser::DATE_COMPONENT = T.let(T.unsafe(nil), Regexp)
1148
+
1149
+ ActiveSupport::Duration::ISO8601Parser::DATE_COMPONENTS = T.let(T.unsafe(nil), Array)
1150
+
1151
+ ActiveSupport::Duration::ISO8601Parser::DATE_MARKER = T.let(T.unsafe(nil), Regexp)
1152
+
1153
+ ActiveSupport::Duration::ISO8601Parser::DATE_TO_PART = T.let(T.unsafe(nil), Hash)
1154
+
1155
+ ActiveSupport::Duration::ISO8601Parser::PERIOD = T.let(T.unsafe(nil), String)
1156
+
1157
+ ActiveSupport::Duration::ISO8601Parser::PERIOD_OR_COMMA = T.let(T.unsafe(nil), Regexp)
1158
+
1159
+ class ActiveSupport::Duration::ISO8601Parser::ParsingError < ::ArgumentError
1160
+ end
1161
+
1162
+ ActiveSupport::Duration::ISO8601Parser::SIGN_MARKER = T.let(T.unsafe(nil), Regexp)
1163
+
1164
+ ActiveSupport::Duration::ISO8601Parser::TIME_COMPONENT = T.let(T.unsafe(nil), Regexp)
1165
+
1166
+ ActiveSupport::Duration::ISO8601Parser::TIME_COMPONENTS = T.let(T.unsafe(nil), Array)
1167
+
1168
+ ActiveSupport::Duration::ISO8601Parser::TIME_MARKER = T.let(T.unsafe(nil), Regexp)
1169
+
1170
+ ActiveSupport::Duration::ISO8601Parser::TIME_TO_PART = T.let(T.unsafe(nil), Hash)
1171
+
1172
+ class ActiveSupport::Duration::ISO8601Serializer
1173
+ def initialize(duration, precision: T.unsafe(nil)); end
1174
+
1175
+ def serialize; end
1176
+
1177
+ private
1178
+
1179
+ def normalize; end
1180
+ def week_mixed_with_date?(parts); end
1181
+ end
1182
+
1183
+ ActiveSupport::Duration::ISO8601Serializer::DATE_COMPONENTS = T.let(T.unsafe(nil), Array)
1184
+
1185
+ ActiveSupport::Duration::PARTS = T.let(T.unsafe(nil), Array)
1186
+
1187
+ ActiveSupport::Duration::PARTS_IN_SECONDS = T.let(T.unsafe(nil), Hash)
1188
+
1189
+ ActiveSupport::Duration::SECONDS_PER_DAY = T.let(T.unsafe(nil), Integer)
1190
+
1191
+ ActiveSupport::Duration::SECONDS_PER_HOUR = T.let(T.unsafe(nil), Integer)
1192
+
1193
+ ActiveSupport::Duration::SECONDS_PER_MINUTE = T.let(T.unsafe(nil), Integer)
1194
+
1195
+ ActiveSupport::Duration::SECONDS_PER_MONTH = T.let(T.unsafe(nil), Integer)
1196
+
1197
+ ActiveSupport::Duration::SECONDS_PER_WEEK = T.let(T.unsafe(nil), Integer)
1198
+
1199
+ ActiveSupport::Duration::SECONDS_PER_YEAR = T.let(T.unsafe(nil), Integer)
1200
+
1201
+ class ActiveSupport::Duration::Scalar < ::Numeric
1202
+ def initialize(value); end
1203
+
1204
+ def %(other); end
1205
+ def *(other); end
1206
+ def +(other); end
1207
+ def -(other); end
1208
+ def -@; end
1209
+ def /(other); end
1210
+ def <=>(other); end
1211
+ def coerce(other); end
1212
+ def to_f(*args, &block); end
1213
+ def to_i(*args, &block); end
1214
+ def to_s(*args, &block); end
1215
+ def value; end
1216
+
1217
+ private
1218
+
1219
+ def calculate(op, other); end
1220
+ def raise_type_error(other); end
1221
+ end
1222
+
1223
+ module ActiveSupport::EachTimeWithZone
1224
+ def each(&block); end
1225
+ def step(n = T.unsafe(nil), &block); end
1226
+
1227
+ private
1228
+
1229
+ def ensure_iteration_allowed; end
1230
+ end
1231
+
1232
+ class ActiveSupport::EncryptedConfiguration < ::ActiveSupport::EncryptedFile
1233
+ def initialize(config_path:, key_path:, env_key:, raise_if_missing_key:); end
1234
+
1235
+ def [](*args, &block); end
1236
+ def config; end
1237
+ def fetch(*args, &block); end
1238
+ def method_missing(method, *args, &block); end
1239
+ def read; end
1240
+ def write(contents); end
1241
+
1242
+ private
1243
+
1244
+ def deserialize(config); end
1245
+ def options; end
1246
+ def respond_to_missing?(name, include_private = T.unsafe(nil)); end
1247
+ end
1248
+
1249
+ class ActiveSupport::EncryptedFile
1250
+ def initialize(content_path:, key_path:, env_key:, raise_if_missing_key:); end
1251
+
1252
+ def change(&block); end
1253
+ def content_path; end
1254
+ def env_key; end
1255
+ def key; end
1256
+ def key_path; end
1257
+ def raise_if_missing_key; end
1258
+ def read; end
1259
+ def write(contents); end
1260
+
1261
+ private
1262
+
1263
+ def decrypt(contents); end
1264
+ def encrypt(contents); end
1265
+ def encryptor; end
1266
+ def handle_missing_key; end
1267
+ def read_env_key; end
1268
+ def read_key_file; end
1269
+ def writing(contents); end
1270
+
1271
+ class << self
1272
+ def generate_key; end
1273
+ end
1274
+ end
1275
+
1276
+ ActiveSupport::EncryptedFile::CIPHER = T.let(T.unsafe(nil), String)
1277
+
1278
+ class ActiveSupport::EncryptedFile::MissingContentError < ::RuntimeError
1279
+ def initialize(content_path); end
1280
+ end
1281
+
1282
+ class ActiveSupport::EncryptedFile::MissingKeyError < ::RuntimeError
1283
+ def initialize(key_path:, env_key:); end
1284
+ end
1285
+
1286
+ class ActiveSupport::EnvironmentInquirer < ::ActiveSupport::StringInquirer
1287
+ def initialize(env); end
1288
+
1289
+ def development?; end
1290
+ def production?; end
1291
+ def test?; end
1292
+ end
1293
+
1294
+ ActiveSupport::EnvironmentInquirer::DEFAULT_ENVIRONMENTS = T.let(T.unsafe(nil), Array)
1295
+
1296
+ class ActiveSupport::ExecutionWrapper
1297
+ include(::ActiveSupport::Callbacks)
1298
+ extend(::ActiveSupport::Callbacks::ClassMethods)
1299
+ extend(::ActiveSupport::DescendantsTracker)
1300
+
1301
+ def __callbacks; end
1302
+ def __callbacks?; end
1303
+ def _complete_callbacks; end
1304
+ def _run_callbacks; end
1305
+ def _run_complete_callbacks(&block); end
1306
+ def _run_run_callbacks(&block); end
1307
+ def complete!; end
1308
+ def run!; end
1309
+
1310
+ private
1311
+
1312
+ def hook_state; end
1313
+
1314
+ class << self
1315
+ def __callbacks; end
1316
+ def __callbacks=(value); end
1317
+ def __callbacks?; end
1318
+ def _complete_callbacks; end
1319
+ def _complete_callbacks=(value); end
1320
+ def _run_callbacks; end
1321
+ def _run_callbacks=(value); end
1322
+ def active; end
1323
+ def active=(_); end
1324
+ def active?; end
1325
+ def inherited(other); end
1326
+ def register_hook(hook, outer: T.unsafe(nil)); end
1327
+ def run!; end
1328
+ def to_complete(*args, &block); end
1329
+ def to_run(*args, &block); end
1330
+ def wrap; end
1331
+ end
1332
+ end
1333
+
1334
+ class ActiveSupport::ExecutionWrapper::CompleteHook < ::Struct
1335
+ def after(target); end
1336
+ def before(target); end
1337
+ def hook; end
1338
+ def hook=(_); end
1339
+
1340
+ class << self
1341
+ def [](*_); end
1342
+ def inspect; end
1343
+ def members; end
1344
+ def new(*_); end
1345
+ end
1346
+ end
1347
+
1348
+ ActiveSupport::ExecutionWrapper::Null = T.let(T.unsafe(nil), Object)
1349
+
1350
+ class ActiveSupport::ExecutionWrapper::RunHook < ::Struct
1351
+ def before(target); end
1352
+ def hook; end
1353
+ def hook=(_); end
1354
+
1355
+ class << self
1356
+ def [](*_); end
1357
+ def inspect; end
1358
+ def members; end
1359
+ def new(*_); end
1360
+ end
1361
+ end
1362
+
1363
+ class ActiveSupport::Executor < ::ActiveSupport::ExecutionWrapper
1364
+ end
1365
+
1366
+ class ActiveSupport::FileUpdateChecker
1367
+ def initialize(files, dirs = T.unsafe(nil), &block); end
1368
+
1369
+ def execute; end
1370
+ def execute_if_updated; end
1371
+ def updated?; end
1372
+
1373
+ private
1374
+
1375
+ def compile_ext(array); end
1376
+ def compile_glob(hash); end
1377
+ def escape(key); end
1378
+ def max_mtime(paths); end
1379
+ def updated_at(paths); end
1380
+ def watched; end
1381
+ end
1382
+
1383
+ module ActiveSupport::ForkTracker
1384
+ class << self
1385
+ def after_fork(&block); end
1386
+ def check!; end
1387
+ def hook!; end
1388
+ def unregister(callback); end
1389
+ end
1390
+ end
1391
+
1392
+ module ActiveSupport::ForkTracker::CoreExt
1393
+ def fork(*_); end
1394
+ end
1395
+
1396
+ module ActiveSupport::ForkTracker::CoreExtPrivate
1397
+ end
1398
+
1399
+ module ActiveSupport::Gzip
1400
+ class << self
1401
+ def compress(source, level = T.unsafe(nil), strategy = T.unsafe(nil)); end
1402
+ def decompress(source); end
1403
+ end
1404
+ end
1405
+
1406
+ class ActiveSupport::Gzip::Stream < ::StringIO
1407
+ def initialize(*_); end
1408
+
1409
+ def close; end
1410
+ end
1411
+
1412
+ class ActiveSupport::HashWithIndifferentAccess < ::Hash
1413
+ def initialize(constructor = T.unsafe(nil)); end
1414
+
1415
+ def [](key); end
1416
+ def []=(key, value); end
1417
+ def assoc(key); end
1418
+ def compact; end
1419
+ def deep_stringify_keys; end
1420
+ def deep_stringify_keys!; end
1421
+ def deep_symbolize_keys; end
1422
+ def default(*args); end
1423
+ def delete(key); end
1424
+ def dig(*args); end
1425
+ def dup; end
1426
+ def except(*keys); end
1427
+ def extractable_options?; end
1428
+ def fetch(key, *extras); end
1429
+ def fetch_values(*indices, &block); end
1430
+ def has_key?(key); end
1431
+ def include?(key); end
1432
+ def key?(key); end
1433
+ def member?(key); end
1434
+ def merge(*hashes, &block); end
1435
+ def merge!(*other_hashes, &block); end
1436
+ def nested_under_indifferent_access; end
1437
+ def regular_update(*_); end
1438
+ def regular_writer(_, _); end
1439
+ def reject(*args, &block); end
1440
+ def replace(other_hash); end
1441
+ def reverse_merge(other_hash); end
1442
+ def reverse_merge!(other_hash); end
1443
+ def select(*args, &block); end
1444
+ def slice(*keys); end
1445
+ def slice!(*keys); end
1446
+ def store(key, value); end
1447
+ def stringify_keys; end
1448
+ def stringify_keys!; end
1449
+ def symbolize_keys; end
1450
+ def to_hash; end
1451
+ def to_options; end
1452
+ def to_options!; end
1453
+ def transform_keys(*args, &block); end
1454
+ def transform_keys!; end
1455
+ def transform_values(*args, &block); end
1456
+ def update(*other_hashes, &block); end
1457
+ def values_at(*keys); end
1458
+ def with_defaults(other_hash); end
1459
+ def with_defaults!(other_hash); end
1460
+ def with_indifferent_access; end
1461
+ def without(*keys); end
1462
+
1463
+ private
1464
+
1465
+ def convert_key(key); end
1466
+ def convert_value(value, conversion: T.unsafe(nil)); end
1467
+ def set_defaults(target); end
1468
+ def update_with_single_argument(other_hash, block); end
1469
+
1470
+ class << self
1471
+ def [](*args); end
1472
+ end
1473
+ end
1474
+
1475
+ module ActiveSupport::IncludeTimeWithZone
1476
+ def include?(value); end
1477
+ end
1478
+
1479
+ module ActiveSupport::Inflector
1480
+ extend(::ActiveSupport::Inflector)
1481
+
1482
+ def camelize(term, uppercase_first_letter = T.unsafe(nil)); end
1483
+ def classify(table_name); end
1484
+ def constantize(camel_cased_word); end
1485
+ def dasherize(underscored_word); end
1486
+ def deconstantize(path); end
1487
+ def demodulize(path); end
1488
+ def foreign_key(class_name, separate_class_name_and_id_with_underscore = T.unsafe(nil)); end
1489
+ def humanize(lower_case_and_underscored_word, capitalize: T.unsafe(nil), keep_id_suffix: T.unsafe(nil)); end
1490
+ def inflections(locale = T.unsafe(nil)); end
1491
+ def ordinal(number); end
1492
+ def ordinalize(number); end
1493
+ def parameterize(string, separator: T.unsafe(nil), preserve_case: T.unsafe(nil), locale: T.unsafe(nil)); end
1494
+ def pluralize(word, locale = T.unsafe(nil)); end
1495
+ def safe_constantize(camel_cased_word); end
1496
+ def singularize(word, locale = T.unsafe(nil)); end
1497
+ def tableize(class_name); end
1498
+ def titleize(word, keep_id_suffix: T.unsafe(nil)); end
1499
+ def transliterate(string, replacement = T.unsafe(nil), locale: T.unsafe(nil)); end
1500
+ def underscore(camel_cased_word); end
1501
+ def upcase_first(string); end
1502
+
1503
+ private
1504
+
1505
+ def apply_inflections(word, rules, locale = T.unsafe(nil)); end
1506
+ def const_regexp(camel_cased_word); end
1507
+ end
1508
+
1509
+ ActiveSupport::Inflector::ALLOWED_ENCODINGS_FOR_TRANSLITERATE = T.let(T.unsafe(nil), Array)
1510
+
1511
+ class ActiveSupport::Inflector::Inflections
1512
+ def initialize; end
1513
+
1514
+ def acronym(word); end
1515
+ def acronyms; end
1516
+ def acronyms_camelize_regex; end
1517
+ def acronyms_underscore_regex; end
1518
+ def clear(scope = T.unsafe(nil)); end
1519
+ def human(rule, replacement); end
1520
+ def humans; end
1521
+ def irregular(singular, plural); end
1522
+ def plural(rule, replacement); end
1523
+ def plurals; end
1524
+ def singular(rule, replacement); end
1525
+ def singulars; end
1526
+ def uncountable(*words); end
1527
+ def uncountables; end
1528
+
1529
+ private
1530
+
1531
+ def define_acronym_regex_patterns; end
1532
+ def initialize_dup(orig); end
1533
+
1534
+ class << self
1535
+ def instance(locale = T.unsafe(nil)); end
1536
+ end
1537
+ end
1538
+
1539
+ class ActiveSupport::Inflector::Inflections::Uncountables < ::Array
1540
+ def initialize; end
1541
+
1542
+ def <<(*word); end
1543
+ def add(words); end
1544
+ def delete(entry); end
1545
+ def uncountable?(str); end
1546
+
1547
+ private
1548
+
1549
+ def to_regex(string); end
1550
+ end
1551
+
1552
+ class ActiveSupport::InheritableOptions < ::ActiveSupport::OrderedOptions
1553
+ def initialize(parent = T.unsafe(nil)); end
1554
+
1555
+ def inheritable_copy; end
1556
+ end
1557
+
1558
+ module ActiveSupport::JSON
1559
+ class << self
1560
+ def decode(json); end
1561
+ def encode(value, options = T.unsafe(nil)); end
1562
+ def parse_error; end
1563
+
1564
+ private
1565
+
1566
+ def convert_dates_from(data); end
1567
+ end
1568
+ end
1569
+
1570
+ ActiveSupport::JSON::DATETIME_REGEX = T.let(T.unsafe(nil), Regexp)
1571
+
1572
+ ActiveSupport::JSON::DATE_REGEX = T.let(T.unsafe(nil), Regexp)
1573
+
1574
+ module ActiveSupport::JSON::Encoding
1575
+ class << self
1576
+ def escape_html_entities_in_json; end
1577
+ def escape_html_entities_in_json=(_); end
1578
+ def json_encoder; end
1579
+ def json_encoder=(_); end
1580
+ def time_precision; end
1581
+ def time_precision=(_); end
1582
+ def use_standard_json_time_format; end
1583
+ def use_standard_json_time_format=(_); end
1584
+ end
1585
+ end
1586
+
1587
+ class ActiveSupport::JSON::Encoding::JSONGemEncoder
1588
+ def initialize(options = T.unsafe(nil)); end
1589
+
1590
+ def encode(value); end
1591
+ def options; end
1592
+
1593
+ private
1594
+
1595
+ def jsonify(value); end
1596
+ def stringify(jsonified); end
1597
+ end
1598
+
1599
+ class ActiveSupport::KeyGenerator
1600
+ def initialize(secret, options = T.unsafe(nil)); end
1601
+
1602
+ def generate_key(salt, key_size = T.unsafe(nil)); end
1603
+ end
1604
+
1605
+ module ActiveSupport::LazyLoadHooks
1606
+ def on_load(name, options = T.unsafe(nil), &block); end
1607
+ def run_load_hooks(name, base = T.unsafe(nil)); end
1608
+
1609
+ private
1610
+
1611
+ def execute_hook(name, base, options, block); end
1612
+ def with_execution_control(name, block, once); end
1613
+
1614
+ class << self
1615
+ def extended(base); end
1616
+ end
1617
+ end
1618
+
1619
+ class ActiveSupport::LogSubscriber < ::ActiveSupport::Subscriber
1620
+ def colorize_logging; end
1621
+ def colorize_logging=(val); end
1622
+ def debug(progname = T.unsafe(nil), &block); end
1623
+ def error(progname = T.unsafe(nil), &block); end
1624
+ def fatal(progname = T.unsafe(nil), &block); end
1625
+ def finish(name, id, payload); end
1626
+ def info(progname = T.unsafe(nil), &block); end
1627
+ def logger; end
1628
+ def start(name, id, payload); end
1629
+ def unknown(progname = T.unsafe(nil), &block); end
1630
+ def warn(progname = T.unsafe(nil), &block); end
1631
+
1632
+ private
1633
+
1634
+ def color(text, color, bold = T.unsafe(nil)); end
1635
+
1636
+ class << self
1637
+ def colorize_logging; end
1638
+ def colorize_logging=(val); end
1639
+ def flush_all!; end
1640
+ def log_subscribers; end
1641
+ def logger; end
1642
+ def logger=(_); end
1643
+ end
1644
+ end
1645
+
1646
+ ActiveSupport::LogSubscriber::BLACK = T.let(T.unsafe(nil), String)
1647
+
1648
+ ActiveSupport::LogSubscriber::BLUE = T.let(T.unsafe(nil), String)
1649
+
1650
+ ActiveSupport::LogSubscriber::BOLD = T.let(T.unsafe(nil), String)
1651
+
1652
+ ActiveSupport::LogSubscriber::CLEAR = T.let(T.unsafe(nil), String)
1653
+
1654
+ ActiveSupport::LogSubscriber::CYAN = T.let(T.unsafe(nil), String)
1655
+
1656
+ ActiveSupport::LogSubscriber::GREEN = T.let(T.unsafe(nil), String)
1657
+
1658
+ ActiveSupport::LogSubscriber::MAGENTA = T.let(T.unsafe(nil), String)
1659
+
1660
+ ActiveSupport::LogSubscriber::RED = T.let(T.unsafe(nil), String)
1661
+
1662
+ ActiveSupport::LogSubscriber::WHITE = T.let(T.unsafe(nil), String)
1663
+
1664
+ ActiveSupport::LogSubscriber::YELLOW = T.let(T.unsafe(nil), String)
1665
+
1666
+ class ActiveSupport::Logger < ::Logger
1667
+ include(::ActiveSupport::LoggerSilence)
1668
+ include(::ActiveSupport::LoggerThreadSafeLevel)
1669
+
1670
+ def initialize(*args, **kwargs); end
1671
+
1672
+ def silencer; end
1673
+ def silencer=(val); end
1674
+
1675
+ class << self
1676
+ def broadcast(logger); end
1677
+ def local_levels; end
1678
+ def local_levels=(val); end
1679
+ def logger_outputs_to?(logger, *sources); end
1680
+ def silencer; end
1681
+ def silencer=(val); end
1682
+ end
1683
+ end
1684
+
1685
+ class ActiveSupport::Logger::SimpleFormatter < ::Logger::Formatter
1686
+ def call(severity, timestamp, progname, msg); end
1687
+ end
1688
+
1689
+ module ActiveSupport::LoggerSilence
1690
+ extend(::ActiveSupport::Concern)
1691
+
1692
+ include(::ActiveSupport::LoggerThreadSafeLevel)
1693
+
1694
+ def silence(severity = T.unsafe(nil)); end
1695
+ end
1696
+
1697
+ module ActiveSupport::LoggerThreadSafeLevel
1698
+ extend(::ActiveSupport::Concern)
1699
+
1700
+ def add(severity, message = T.unsafe(nil), progname = T.unsafe(nil), &block); end
1701
+ def after_initialize; end
1702
+ def debug?; end
1703
+ def error?; end
1704
+ def fatal?; end
1705
+ def info?; end
1706
+ def level; end
1707
+ def local_level; end
1708
+ def local_level=(level); end
1709
+ def local_log_id; end
1710
+ def log_at(level); end
1711
+ def unknown?; end
1712
+ def warn?; end
1713
+ end
1714
+
1715
+ class ActiveSupport::MessageEncryptor
1716
+ include(::ActiveSupport::Messages::Rotator)
1717
+ include(::ActiveSupport::Messages::Rotator::Encryptor)
1718
+
1719
+ def encrypt_and_sign(value, expires_at: T.unsafe(nil), expires_in: T.unsafe(nil), purpose: T.unsafe(nil)); end
1720
+
1721
+ private
1722
+
1723
+ def _decrypt(encrypted_message, purpose); end
1724
+ def _encrypt(value, **metadata_options); end
1725
+ def aead_mode?; end
1726
+ def new_cipher; end
1727
+ def resolve_verifier; end
1728
+ def verifier; end
1729
+
1730
+ class << self
1731
+ def default_cipher; end
1732
+ def key_len(cipher = T.unsafe(nil)); end
1733
+ def use_authenticated_message_encryption; end
1734
+ def use_authenticated_message_encryption=(val); end
1735
+ end
1736
+ end
1737
+
1738
+ class ActiveSupport::MessageEncryptor::InvalidMessage < ::StandardError
1739
+ end
1740
+
1741
+ module ActiveSupport::MessageEncryptor::NullSerializer
1742
+ class << self
1743
+ def dump(value); end
1744
+ def load(value); end
1745
+ end
1746
+ end
1747
+
1748
+ module ActiveSupport::MessageEncryptor::NullVerifier
1749
+ class << self
1750
+ def generate(value); end
1751
+ def verify(value); end
1752
+ end
1753
+ end
1754
+
1755
+ ActiveSupport::MessageEncryptor::OpenSSLCipherError = OpenSSL::Cipher::CipherError
1756
+
1757
+ class ActiveSupport::MessageVerifier
1758
+ include(::ActiveSupport::Messages::Rotator)
1759
+ include(::ActiveSupport::Messages::Rotator::Verifier)
1760
+
1761
+ def generate(value, expires_at: T.unsafe(nil), expires_in: T.unsafe(nil), purpose: T.unsafe(nil)); end
1762
+ def valid_message?(signed_message); end
1763
+ def verify(*args, **options); end
1764
+
1765
+ private
1766
+
1767
+ def decode(data); end
1768
+ def encode(data); end
1769
+ def generate_digest(data); end
1770
+ end
1771
+
1772
+ class ActiveSupport::MessageVerifier::InvalidSignature < ::StandardError
1773
+ end
1774
+
1775
+ module ActiveSupport::Messages
1776
+ end
1777
+
1778
+ class ActiveSupport::Messages::Metadata
1779
+ def initialize(message, expires_at = T.unsafe(nil), purpose = T.unsafe(nil)); end
1780
+
1781
+ def as_json(options = T.unsafe(nil)); end
1782
+ def verify(purpose); end
1783
+
1784
+ private
1785
+
1786
+ def fresh?; end
1787
+ def match?(purpose); end
1788
+
1789
+ class << self
1790
+ def verify(message, purpose); end
1791
+ def wrap(message, expires_at: T.unsafe(nil), expires_in: T.unsafe(nil), purpose: T.unsafe(nil)); end
1792
+
1793
+ private
1794
+
1795
+ def decode(message); end
1796
+ def encode(message); end
1797
+ def extract_metadata(message); end
1798
+ def pick_expiry(expires_at, expires_in); end
1799
+ end
1800
+ end
1801
+
1802
+ class ActiveSupport::Messages::RotationConfiguration
1803
+ def initialize; end
1804
+
1805
+ def encrypted; end
1806
+ def rotate(kind, *args, **options); end
1807
+ def signed; end
1808
+ end
1809
+
1810
+ module ActiveSupport::Messages::Rotator
1811
+ def initialize(*secrets, on_rotation: T.unsafe(nil), **options); end
1812
+
1813
+ def rotate(*secrets, **options); end
1814
+
1815
+ private
1816
+
1817
+ def run_rotations(on_rotation); end
1818
+ end
1819
+
1820
+ module ActiveSupport::Messages::Rotator::Encryptor
1821
+ include(::ActiveSupport::Messages::Rotator)
1822
+
1823
+ def decrypt_and_verify(*args, on_rotation: T.unsafe(nil), **options); end
1824
+
1825
+ private
1826
+
1827
+ def build_rotation(secret = T.unsafe(nil), sign_secret = T.unsafe(nil), options); end
1828
+ end
1829
+
1830
+ module ActiveSupport::Messages::Rotator::Verifier
1831
+ include(::ActiveSupport::Messages::Rotator)
1832
+
1833
+ def verified(*args, on_rotation: T.unsafe(nil), **options); end
1834
+
1835
+ private
1836
+
1837
+ def build_rotation(secret = T.unsafe(nil), options); end
1838
+ end
1839
+
1840
+ module ActiveSupport::Multibyte
1841
+ class << self
1842
+ def proxy_class; end
1843
+ def proxy_class=(klass); end
1844
+ end
1845
+ end
1846
+
1847
+ class ActiveSupport::Multibyte::Chars
1848
+ include(::Comparable)
1849
+
1850
+ def initialize(string); end
1851
+
1852
+ def <=>(*args, &block); end
1853
+ def =~(*args, &block); end
1854
+ def acts_like_string?(*args, &block); end
1855
+ def as_json(options = T.unsafe(nil)); end
1856
+ def compose; end
1857
+ def decompose; end
1858
+ def grapheme_length; end
1859
+ def limit(limit); end
1860
+ def match?(*args, &block); end
1861
+ def method_missing(method, *args, &block); end
1862
+ def normalize(form = T.unsafe(nil)); end
1863
+ def reverse; end
1864
+ def reverse!(*args); end
1865
+ def slice!(*args); end
1866
+ def split(*args); end
1867
+ def tidy_bytes(force = T.unsafe(nil)); end
1868
+ def tidy_bytes!(*args); end
1869
+ def titlecase; end
1870
+ def titleize; end
1871
+ def to_s; end
1872
+ def to_str; end
1873
+ def wrapped_string; end
1874
+
1875
+ private
1876
+
1877
+ def chars(string); end
1878
+ def respond_to_missing?(method, include_private); end
1879
+
1880
+ class << self
1881
+ def consumes?(string); end
1882
+ end
1883
+ end
1884
+
1885
+ module ActiveSupport::Multibyte::Unicode
1886
+ extend(::ActiveSupport::Multibyte::Unicode)
1887
+
1888
+ def compose(codepoints); end
1889
+ def decompose(type, codepoints); end
1890
+ def default_normalization_form; end
1891
+ def default_normalization_form=(_); end
1892
+ def downcase(string); end
1893
+ def normalize(string, form = T.unsafe(nil)); end
1894
+ def pack_graphemes(unpacked); end
1895
+ def swapcase(string); end
1896
+ def tidy_bytes(string, force = T.unsafe(nil)); end
1897
+ def unpack_graphemes(string); end
1898
+ def upcase(string); end
1899
+
1900
+ private
1901
+
1902
+ def recode_windows1252_chars(string); end
1903
+ end
1904
+
1905
+ ActiveSupport::Multibyte::Unicode::NORMALIZATION_FORMS = T.let(T.unsafe(nil), Array)
1906
+
1907
+ ActiveSupport::Multibyte::Unicode::NORMALIZATION_FORM_ALIASES = T.let(T.unsafe(nil), Hash)
1908
+
1909
+ ActiveSupport::Multibyte::Unicode::UNICODE_VERSION = T.let(T.unsafe(nil), String)
1910
+
1911
+ module ActiveSupport::Notifications
1912
+ class << self
1913
+ def instrument(name, payload = T.unsafe(nil)); end
1914
+ def instrumenter; end
1915
+ def monotonic_subscribe(pattern = T.unsafe(nil), callback = T.unsafe(nil), &block); end
1916
+ def notifier; end
1917
+ def notifier=(_); end
1918
+ def publish(name, *args); end
1919
+ def subscribe(pattern = T.unsafe(nil), callback = T.unsafe(nil), &block); end
1920
+ def subscribed(callback, pattern = T.unsafe(nil), monotonic: T.unsafe(nil), &block); end
1921
+ def unsubscribe(subscriber_or_name); end
1922
+ end
1923
+ end
1924
+
1925
+ class ActiveSupport::Notifications::Event
1926
+ def initialize(name, start, ending, transaction_id, payload); end
1927
+
1928
+ def <<(event); end
1929
+ def allocations; end
1930
+ def children; end
1931
+ def cpu_time; end
1932
+ def duration; end
1933
+ def end; end
1934
+ def end=(ending); end
1935
+ def finish!; end
1936
+ def idle_time; end
1937
+ def name; end
1938
+ def parent_of?(event); end
1939
+ def payload; end
1940
+ def payload=(_); end
1941
+ def start!; end
1942
+ def time; end
1943
+ def transaction_id; end
1944
+
1945
+ private
1946
+
1947
+ def now; end
1948
+ def now_allocations; end
1949
+ def now_cpu; end
1950
+
1951
+ class << self
1952
+
1953
+ private
1954
+
1955
+ def clock_gettime_supported?; end
1956
+ end
1957
+ end
1958
+
1959
+ class ActiveSupport::Notifications::Fanout
1960
+ include(::Mutex_m)
1961
+
1962
+ def initialize; end
1963
+
1964
+ def finish(name, id, payload, listeners = T.unsafe(nil)); end
1965
+ def listeners_for(name); end
1966
+ def listening?(name); end
1967
+ def lock; end
1968
+ def locked?; end
1969
+ def publish(name, *args); end
1970
+ def start(name, id, payload); end
1971
+ def subscribe(pattern = T.unsafe(nil), callable = T.unsafe(nil), monotonic: T.unsafe(nil), &block); end
1972
+ def synchronize(&block); end
1973
+ def try_lock; end
1974
+ def unlock; end
1975
+ def unsubscribe(subscriber_or_name); end
1976
+ def wait; end
1977
+ end
1978
+
1979
+ module ActiveSupport::Notifications::Fanout::Subscribers
1980
+ class << self
1981
+ def new(pattern, listener, monotonic); end
1982
+ def wrap_all(pattern, subscriber); end
1983
+ end
1984
+ end
1985
+
1986
+ class ActiveSupport::Notifications::Fanout::Subscribers::AllMessages
1987
+ def initialize(delegate); end
1988
+
1989
+ def finish(name, id, payload); end
1990
+ def matches?(_); end
1991
+ def publish(name, *args); end
1992
+ def start(name, id, payload); end
1993
+ def subscribed_to?(name); end
1994
+ def unsubscribe!(*_); end
1995
+ end
1996
+
1997
+ class ActiveSupport::Notifications::Fanout::Subscribers::EventObject < ::ActiveSupport::Notifications::Fanout::Subscribers::Evented
1998
+ def finish(name, id, payload); end
1999
+ def start(name, id, payload); end
2000
+
2001
+ private
2002
+
2003
+ def build_event(name, id, payload); end
2004
+ end
2005
+
2006
+ class ActiveSupport::Notifications::Fanout::Subscribers::Evented
2007
+ def initialize(pattern, delegate); end
2008
+
2009
+ def finish(name, id, payload); end
2010
+ def matches?(name); end
2011
+ def pattern; end
2012
+ def publish(name, *args); end
2013
+ def start(name, id, payload); end
2014
+ def subscribed_to?(name); end
2015
+ def unsubscribe!(name); end
2016
+ end
2017
+
2018
+ class ActiveSupport::Notifications::Fanout::Subscribers::Matcher
2019
+ def initialize(pattern); end
2020
+
2021
+ def ===(name); end
2022
+ def exclusions; end
2023
+ def pattern; end
2024
+ def unsubscribe!(name); end
2025
+
2026
+ class << self
2027
+ def wrap(pattern); end
2028
+ end
2029
+ end
2030
+
2031
+ class ActiveSupport::Notifications::Fanout::Subscribers::MonotonicTimed < ::ActiveSupport::Notifications::Fanout::Subscribers::Evented
2032
+ def finish(name, id, payload); end
2033
+ def publish(name, *args); end
2034
+ def start(name, id, payload); end
2035
+ end
2036
+
2037
+ class ActiveSupport::Notifications::Fanout::Subscribers::Timed < ::ActiveSupport::Notifications::Fanout::Subscribers::Evented
2038
+ def finish(name, id, payload); end
2039
+ def publish(name, *args); end
2040
+ def start(name, id, payload); end
2041
+ end
2042
+
2043
+ class ActiveSupport::Notifications::InstrumentationRegistry
2044
+ extend(::ActiveSupport::PerThreadRegistry)
2045
+
2046
+ def initialize; end
2047
+
2048
+ def instrumenter_for(notifier); end
2049
+ end
2050
+
2051
+ class ActiveSupport::Notifications::Instrumenter
2052
+ def initialize(notifier); end
2053
+
2054
+ def finish(name, payload); end
2055
+ def finish_with_state(listeners_state, name, payload); end
2056
+ def id; end
2057
+ def instrument(name, payload = T.unsafe(nil)); end
2058
+ def start(name, payload); end
2059
+
2060
+ private
2061
+
2062
+ def unique_id; end
2063
+ end
2064
+
2065
+ module ActiveSupport::NumberHelper
2066
+ extend(::ActiveSupport::Autoload)
2067
+ extend(::ActiveSupport::NumberHelper)
2068
+
2069
+ def number_to_currency(number, options = T.unsafe(nil)); end
2070
+ def number_to_delimited(number, options = T.unsafe(nil)); end
2071
+ def number_to_human(number, options = T.unsafe(nil)); end
2072
+ def number_to_human_size(number, options = T.unsafe(nil)); end
2073
+ def number_to_percentage(number, options = T.unsafe(nil)); end
2074
+ def number_to_phone(number, options = T.unsafe(nil)); end
2075
+ def number_to_rounded(number, options = T.unsafe(nil)); end
2076
+ end
2077
+
2078
+ class ActiveSupport::NumberHelper::NumberConverter
2079
+ def initialize(number, options); end
2080
+
2081
+ def execute; end
2082
+ def namespace; end
2083
+ def namespace=(_); end
2084
+ def namespace?; end
2085
+ def number; end
2086
+ def opts; end
2087
+ def validate_float; end
2088
+ def validate_float=(_); end
2089
+ def validate_float?; end
2090
+
2091
+ private
2092
+
2093
+ def default_format_options; end
2094
+ def default_value(key); end
2095
+ def format_options; end
2096
+ def i18n_format_options; end
2097
+ def options; end
2098
+ def translate_in_locale(key, **i18n_options); end
2099
+ def translate_number_value_with_default(key, **i18n_options); end
2100
+ def valid_float?; end
2101
+
2102
+ class << self
2103
+ def convert(number, options); end
2104
+ def namespace; end
2105
+ def namespace=(value); end
2106
+ def namespace?; end
2107
+ def validate_float; end
2108
+ def validate_float=(value); end
2109
+ def validate_float?; end
2110
+ end
2111
+ end
2112
+
2113
+ ActiveSupport::NumberHelper::NumberConverter::DEFAULTS = T.let(T.unsafe(nil), Hash)
2114
+
2115
+ class ActiveSupport::NumberHelper::NumberToCurrencyConverter < ::ActiveSupport::NumberHelper::NumberConverter
2116
+ def convert; end
2117
+
2118
+ private
2119
+
2120
+ def i18n_opts; end
2121
+ def options; end
2122
+
2123
+ class << self
2124
+ def namespace; end
2125
+ end
2126
+ end
2127
+
2128
+ class ActiveSupport::NumberHelper::NumberToDelimitedConverter < ::ActiveSupport::NumberHelper::NumberConverter
2129
+ def convert; end
2130
+
2131
+ private
2132
+
2133
+ def delimiter_pattern; end
2134
+ def parts; end
2135
+
2136
+ class << self
2137
+ def validate_float; end
2138
+ end
2139
+ end
2140
+
2141
+ ActiveSupport::NumberHelper::NumberToDelimitedConverter::DEFAULT_DELIMITER_REGEX = T.let(T.unsafe(nil), Regexp)
2142
+
2143
+ class ActiveSupport::NumberHelper::NumberToHumanConverter < ::ActiveSupport::NumberHelper::NumberConverter
2144
+ def convert; end
2145
+
2146
+ private
2147
+
2148
+ def calculate_exponent(units); end
2149
+ def determine_unit(units, exponent); end
2150
+ def format; end
2151
+ def unit_exponents(units); end
2152
+
2153
+ class << self
2154
+ def namespace; end
2155
+ def validate_float; end
2156
+ end
2157
+ end
2158
+
2159
+ ActiveSupport::NumberHelper::NumberToHumanConverter::DECIMAL_UNITS = T.let(T.unsafe(nil), Hash)
2160
+
2161
+ ActiveSupport::NumberHelper::NumberToHumanConverter::INVERTED_DECIMAL_UNITS = T.let(T.unsafe(nil), Hash)
2162
+
2163
+ class ActiveSupport::NumberHelper::NumberToHumanSizeConverter < ::ActiveSupport::NumberHelper::NumberConverter
2164
+ def convert; end
2165
+
2166
+ private
2167
+
2168
+ def base; end
2169
+ def conversion_format; end
2170
+ def exponent; end
2171
+ def smaller_than_base?; end
2172
+ def storage_unit_key; end
2173
+ def unit; end
2174
+
2175
+ class << self
2176
+ def namespace; end
2177
+ def validate_float; end
2178
+ end
2179
+ end
2180
+
2181
+ ActiveSupport::NumberHelper::NumberToHumanSizeConverter::STORAGE_UNITS = T.let(T.unsafe(nil), Array)
2182
+
2183
+ class ActiveSupport::NumberHelper::NumberToPercentageConverter < ::ActiveSupport::NumberHelper::NumberConverter
2184
+ def convert; end
2185
+
2186
+ class << self
2187
+ def namespace; end
2188
+ end
2189
+ end
2190
+
2191
+ class ActiveSupport::NumberHelper::NumberToPhoneConverter < ::ActiveSupport::NumberHelper::NumberConverter
2192
+ def convert; end
2193
+
2194
+ private
2195
+
2196
+ def convert_to_phone_number(number); end
2197
+ def convert_with_area_code(number); end
2198
+ def convert_without_area_code(number); end
2199
+ def country_code(code); end
2200
+ def delimiter; end
2201
+ def phone_ext(ext); end
2202
+ def regexp_pattern(default_pattern); end
2203
+ def start_with_delimiter?(number); end
2204
+ end
2205
+
2206
+ class ActiveSupport::NumberHelper::NumberToRoundedConverter < ::ActiveSupport::NumberHelper::NumberConverter
2207
+ def convert; end
2208
+
2209
+ private
2210
+
2211
+ def format_number(number); end
2212
+ def strip_insignificant_zeros; end
2213
+
2214
+ class << self
2215
+ def namespace; end
2216
+ def validate_float; end
2217
+ end
2218
+ end
2219
+
2220
+ class ActiveSupport::NumberHelper::RoundingHelper
2221
+ def initialize(options); end
2222
+
2223
+ def digit_count(number); end
2224
+ def options; end
2225
+ def round(number); end
2226
+
2227
+ private
2228
+
2229
+ def absolute_precision(number); end
2230
+ def convert_to_decimal(number); end
2231
+ def significant; end
2232
+ end
2233
+
2234
+ class ActiveSupport::OptionMerger
2235
+ def initialize(context, options); end
2236
+
2237
+
2238
+ private
2239
+
2240
+ def invoke_method(method, arguments, options, &block); end
2241
+ def method_missing(method, *arguments, &block); end
2242
+ end
2243
+
2244
+ class ActiveSupport::OrderedHash < ::Hash
2245
+ def encode_with(coder); end
2246
+ def extractable_options?; end
2247
+ def nested_under_indifferent_access; end
2248
+ def reject(*args, &block); end
2249
+ def select(*args, &block); end
2250
+ def to_yaml_type; end
2251
+ end
2252
+
2253
+ class ActiveSupport::OrderedOptions < ::Hash
2254
+ def [](key); end
2255
+ def []=(key, value); end
2256
+ def extractable_options?; end
2257
+ def method_missing(name, *args); end
2258
+
2259
+ protected
2260
+
2261
+ def _get(_); end
2262
+
2263
+ private
2264
+
2265
+ def respond_to_missing?(name, include_private); end
2266
+ end
2267
+
2268
+ class ActiveSupport::ParameterFilter
2269
+ def initialize(filters = T.unsafe(nil), mask: T.unsafe(nil)); end
2270
+
2271
+ def filter(params); end
2272
+ def filter_param(key, value); end
2273
+
2274
+ private
2275
+
2276
+ def compiled_filter; end
2277
+ end
2278
+
2279
+ class ActiveSupport::ParameterFilter::CompiledFilter
2280
+ def initialize(regexps, deep_regexps, blocks, mask:); end
2281
+
2282
+ def blocks; end
2283
+ def call(params, parents = T.unsafe(nil), original_params = T.unsafe(nil)); end
2284
+ def deep_regexps; end
2285
+ def regexps; end
2286
+ def value_for_key(key, value, parents = T.unsafe(nil), original_params = T.unsafe(nil)); end
2287
+
2288
+ class << self
2289
+ def compile(filters, mask:); end
2290
+ end
2291
+ end
2292
+
2293
+ ActiveSupport::ParameterFilter::FILTERED = T.let(T.unsafe(nil), String)
2294
+
2295
+ module ActiveSupport::PerThreadRegistry
2296
+ def instance; end
2297
+
2298
+ private
2299
+
2300
+ def method_missing(name, *args, &block); end
2301
+
2302
+ class << self
2303
+ def extended(object); end
2304
+ end
2305
+ end
2306
+
2307
+ class ActiveSupport::ProxyObject < ::BasicObject
2308
+ def raise(*args); end
2309
+ end
2310
+
2311
+ class ActiveSupport::Railtie < ::Rails::Railtie
2312
+ end
2313
+
2314
+ module ActiveSupport::RangeWithFormat
2315
+ def to_default_s(format = T.unsafe(nil)); end
2316
+ def to_formatted_s(format = T.unsafe(nil)); end
2317
+ def to_s(format = T.unsafe(nil)); end
2318
+ end
2319
+
2320
+ ActiveSupport::RangeWithFormat::RANGE_FORMATS = T.let(T.unsafe(nil), Hash)
2321
+
2322
+ class ActiveSupport::Reloader < ::ActiveSupport::ExecutionWrapper
2323
+ def initialize; end
2324
+
2325
+ def _class_unload_callbacks; end
2326
+ def _prepare_callbacks; end
2327
+ def _run_class_unload_callbacks(&block); end
2328
+ def _run_prepare_callbacks(&block); end
2329
+ def check; end
2330
+ def check=(_); end
2331
+ def check?; end
2332
+ def class_unload!(&block); end
2333
+ def complete!; end
2334
+ def executor; end
2335
+ def executor=(_); end
2336
+ def executor?; end
2337
+ def release_unload_lock!; end
2338
+ def require_unload_lock!; end
2339
+ def run!; end
2340
+
2341
+ class << self
2342
+ def __callbacks; end
2343
+ def _class_unload_callbacks; end
2344
+ def _class_unload_callbacks=(value); end
2345
+ def _prepare_callbacks; end
2346
+ def _prepare_callbacks=(value); end
2347
+ def after_class_unload(*args, &block); end
2348
+ def before_class_unload(*args, &block); end
2349
+ def check; end
2350
+ def check!; end
2351
+ def check=(value); end
2352
+ def check?; end
2353
+ def executor; end
2354
+ def executor=(value); end
2355
+ def executor?; end
2356
+ def prepare!; end
2357
+ def reload!; end
2358
+ def reloaded!; end
2359
+ def run!; end
2360
+ def to_prepare(*args, &block); end
2361
+ def wrap; end
2362
+ end
2363
+ end
2364
+
2365
+ module ActiveSupport::Rescuable
2366
+ extend(::ActiveSupport::Concern)
2367
+
2368
+ mixes_in_class_methods(::ActiveSupport::Rescuable::ClassMethods)
2369
+
2370
+ def handler_for_rescue(exception); end
2371
+ def rescue_with_handler(exception); end
2372
+ end
2373
+
2374
+ module ActiveSupport::Rescuable::ClassMethods
2375
+ def handler_for_rescue(exception, object: T.unsafe(nil)); end
2376
+ def rescue_from(*klasses, with: T.unsafe(nil), &block); end
2377
+ def rescue_with_handler(exception, object: T.unsafe(nil), visited_exceptions: T.unsafe(nil)); end
2378
+
2379
+ private
2380
+
2381
+ def constantize_rescue_handler_class(class_or_name); end
2382
+ def find_rescue_handler(exception); end
2383
+ end
2384
+
2385
+ class ActiveSupport::SafeBuffer < ::String
2386
+ def initialize(str = T.unsafe(nil)); end
2387
+
2388
+ def %(args); end
2389
+ def *(*_); end
2390
+ def +(other); end
2391
+ def <<(value); end
2392
+ def [](*args); end
2393
+ def []=(*args); end
2394
+ def capitalize(*args, &block); end
2395
+ def capitalize!(*args); end
2396
+ def chomp(*args, &block); end
2397
+ def chomp!(*args); end
2398
+ def chop(*args, &block); end
2399
+ def chop!(*args); end
2400
+ def clone_empty; end
2401
+ def concat(value); end
2402
+ def delete(*args, &block); end
2403
+ def delete!(*args); end
2404
+ def delete_prefix(*args, &block); end
2405
+ def delete_prefix!(*args); end
2406
+ def delete_suffix(*args, &block); end
2407
+ def delete_suffix!(*args); end
2408
+ def downcase(*args, &block); end
2409
+ def downcase!(*args); end
2410
+ def encode_with(coder); end
2411
+ def gsub(*args, &block); end
2412
+ def gsub!(*args, &block); end
2413
+ def html_safe?; end
2414
+ def insert(index, value); end
2415
+ def lstrip(*args, &block); end
2416
+ def lstrip!(*args); end
2417
+ def next(*args, &block); end
2418
+ def next!(*args); end
2419
+ def prepend(value); end
2420
+ def replace(value); end
2421
+ def reverse(*args, &block); end
2422
+ def reverse!(*args); end
2423
+ def rstrip(*args, &block); end
2424
+ def rstrip!(*args); end
2425
+ def safe_concat(value); end
2426
+ def slice(*args, &block); end
2427
+ def slice!(*args); end
2428
+ def squeeze(*args, &block); end
2429
+ def squeeze!(*args); end
2430
+ def strip(*args, &block); end
2431
+ def strip!(*args); end
2432
+ def sub(*args, &block); end
2433
+ def sub!(*args, &block); end
2434
+ def succ(*args, &block); end
2435
+ def succ!(*args); end
2436
+ def swapcase(*args, &block); end
2437
+ def swapcase!(*args); end
2438
+ def to_param; end
2439
+ def to_s; end
2440
+ def tr(*args, &block); end
2441
+ def tr!(*args); end
2442
+ def tr_s(*args, &block); end
2443
+ def tr_s!(*args); end
2444
+ def unicode_normalize(*args, &block); end
2445
+ def unicode_normalize!(*args); end
2446
+ def upcase(*args, &block); end
2447
+ def upcase!(*args); end
2448
+
2449
+ private
2450
+
2451
+ def html_escape_interpolated_argument(arg); end
2452
+ def initialize_copy(other); end
2453
+ def original_concat(*_); end
2454
+ def set_block_back_references(block, match_data); end
2455
+ end
2456
+
2457
+ class ActiveSupport::SafeBuffer::SafeConcatError < ::StandardError
2458
+ def initialize; end
2459
+ end
2460
+
2461
+ ActiveSupport::SafeBuffer::UNSAFE_STRING_METHODS = T.let(T.unsafe(nil), Array)
2462
+
2463
+ ActiveSupport::SafeBuffer::UNSAFE_STRING_METHODS_WITH_BACKREF = T.let(T.unsafe(nil), Array)
2464
+
2465
+ class ActiveSupport::SecureCompareRotator
2466
+ include(::ActiveSupport::Messages::Rotator)
2467
+ include(::ActiveSupport::SecurityUtils)
2468
+
2469
+ def secure_compare!(other_value, on_rotation: T.unsafe(nil)); end
2470
+
2471
+ private
2472
+
2473
+ def build_rotation(previous_value, _options); end
2474
+ end
2475
+
2476
+ class ActiveSupport::SecureCompareRotator::InvalidMatch < ::StandardError
2477
+ end
2478
+
2479
+ module ActiveSupport::SecurityUtils
2480
+
2481
+ private
2482
+
2483
+ def fixed_length_secure_compare(a, b); end
2484
+ def secure_compare(a, b); end
2485
+
2486
+ class << self
2487
+ def fixed_length_secure_compare(a, b); end
2488
+ def secure_compare(a, b); end
2489
+ end
2490
+ end
2491
+
2492
+ class ActiveSupport::StringInquirer < ::String
2493
+
2494
+ private
2495
+
2496
+ def method_missing(method_name, *arguments); end
2497
+ def respond_to_missing?(method_name, include_private = T.unsafe(nil)); end
2498
+ end
2499
+
2500
+ class ActiveSupport::Subscriber
2501
+ def initialize; end
2502
+
2503
+ def finish(name, id, payload); end
2504
+ def patterns; end
2505
+ def start(name, id, payload); end
2506
+
2507
+ private
2508
+
2509
+ def event_stack; end
2510
+
2511
+ class << self
2512
+ def attach_to(namespace, subscriber = T.unsafe(nil), notifier = T.unsafe(nil)); end
2513
+ def detach_from(namespace, notifier = T.unsafe(nil)); end
2514
+ def method_added(event); end
2515
+ def subscribers; end
2516
+
2517
+ private
2518
+
2519
+ def add_event_subscriber(event); end
2520
+ def find_attached_subscriber; end
2521
+ def invalid_event?(event); end
2522
+ def namespace; end
2523
+ def notifier; end
2524
+ def pattern_subscribed?(pattern); end
2525
+ def prepare_pattern(event); end
2526
+ def remove_event_subscriber(event); end
2527
+ def subscriber; end
2528
+ end
2529
+ end
2530
+
2531
+ class ActiveSupport::SubscriberQueueRegistry
2532
+ extend(::ActiveSupport::PerThreadRegistry)
2533
+
2534
+ def initialize; end
2535
+
2536
+ def get_queue(queue_key); end
2537
+ end
2538
+
2539
+ module ActiveSupport::TaggedLogging
2540
+ def clear_tags!(*args, &block); end
2541
+ def flush; end
2542
+ def pop_tags(*args, &block); end
2543
+ def push_tags(*args, &block); end
2544
+ def tagged(*tags); end
2545
+
2546
+ class << self
2547
+ def new(logger); end
2548
+ end
2549
+ end
2550
+
2551
+ module ActiveSupport::TaggedLogging::Formatter
2552
+ def call(severity, timestamp, progname, msg); end
2553
+ def clear_tags!; end
2554
+ def current_tags; end
2555
+ def pop_tags(size = T.unsafe(nil)); end
2556
+ def push_tags(*tags); end
2557
+ def tagged(*tags); end
2558
+ def tags_text; end
2559
+ end
2560
+
2561
+ module ActiveSupport::TaggedLogging::LocalTagStorage
2562
+ def current_tags; end
2563
+ def current_tags=(_); end
2564
+
2565
+ class << self
2566
+ def extended(base); end
2567
+ end
2568
+ end
2569
+
2570
+ class ActiveSupport::TestCase < ::Minitest::Test
2571
+ include(::ActiveSupport::Testing::SetupAndTeardown)
2572
+ include(::ActiveSupport::Testing::TaggedLogging)
2573
+ include(::ActiveSupport::Callbacks)
2574
+ include(::ActiveSupport::Testing::Assertions)
2575
+ include(::ActiveSupport::Testing::Deprecation)
2576
+ include(::ActiveSupport::Testing::TimeHelpers)
2577
+ include(::ActiveSupport::Testing::FileFixtures)
2578
+ extend(::ActiveSupport::Callbacks::ClassMethods)
2579
+ extend(::ActiveSupport::DescendantsTracker)
2580
+ extend(::ActiveSupport::Testing::SetupAndTeardown::ClassMethods)
2581
+ extend(::ActiveSupport::Testing::Declarative)
2582
+
2583
+ def __callbacks; end
2584
+ def __callbacks?; end
2585
+ def _run_setup_callbacks(&block); end
2586
+ def _run_teardown_callbacks(&block); end
2587
+ def _setup_callbacks; end
2588
+ def _teardown_callbacks; end
2589
+ def assert_no_match(matcher, obj, msg = T.unsafe(nil)); end
2590
+ def assert_not_empty(obj, msg = T.unsafe(nil)); end
2591
+ def assert_not_equal(exp, act, msg = T.unsafe(nil)); end
2592
+ def assert_not_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end
2593
+ def assert_not_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end
2594
+ def assert_not_includes(collection, obj, msg = T.unsafe(nil)); end
2595
+ def assert_not_instance_of(cls, obj, msg = T.unsafe(nil)); end
2596
+ def assert_not_kind_of(cls, obj, msg = T.unsafe(nil)); end
2597
+ def assert_not_nil(obj, msg = T.unsafe(nil)); end
2598
+ def assert_not_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end
2599
+ def assert_not_predicate(o1, op, msg = T.unsafe(nil)); end
2600
+ def assert_not_respond_to(obj, meth, msg = T.unsafe(nil)); end
2601
+ def assert_not_same(exp, act, msg = T.unsafe(nil)); end
2602
+ def assert_raise(*exp); end
2603
+ def file_fixture_path; end
2604
+ def file_fixture_path?; end
2605
+ def method_name; end
2606
+
2607
+ class << self
2608
+ def __callbacks; end
2609
+ def __callbacks=(value); end
2610
+ def __callbacks?; end
2611
+ def _setup_callbacks; end
2612
+ def _setup_callbacks=(value); end
2613
+ def _teardown_callbacks; end
2614
+ def _teardown_callbacks=(value); end
2615
+ def file_fixture_path; end
2616
+ def file_fixture_path=(value); end
2617
+ def file_fixture_path?; end
2618
+ def parallelize(workers: T.unsafe(nil), with: T.unsafe(nil)); end
2619
+ def parallelize_setup(&block); end
2620
+ def parallelize_teardown(&block); end
2621
+ def test_order; end
2622
+ def test_order=(new_order); end
2623
+ end
2624
+ end
2625
+
2626
+ ActiveSupport::TestCase::Assertion = Minitest::Assertion
2627
+
2628
+ module ActiveSupport::Testing
2629
+ end
2630
+
2631
+ module ActiveSupport::Testing::Assertions
2632
+ def assert_changes(expression, message = T.unsafe(nil), from: T.unsafe(nil), to: T.unsafe(nil), &block); end
2633
+ def assert_difference(expression, *args, &block); end
2634
+ def assert_no_changes(expression, message = T.unsafe(nil), &block); end
2635
+ def assert_no_difference(expression, message = T.unsafe(nil), &block); end
2636
+ def assert_not(object, message = T.unsafe(nil)); end
2637
+ def assert_nothing_raised; end
2638
+ end
2639
+
2640
+ ActiveSupport::Testing::Assertions::UNTRACKED = T.let(T.unsafe(nil), Object)
2641
+
2642
+ module ActiveSupport::Testing::ConstantLookup
2643
+ extend(::ActiveSupport::Concern)
2644
+
2645
+ mixes_in_class_methods(::ActiveSupport::Testing::ConstantLookup::ClassMethods)
2646
+ end
2647
+
2648
+ module ActiveSupport::Testing::ConstantLookup::ClassMethods
2649
+ def determine_constant_from_test_name(test_name); end
2650
+ end
2651
+
2652
+ module ActiveSupport::Testing::Declarative
2653
+ def test(name, &block); end
2654
+ end
2655
+
2656
+ module ActiveSupport::Testing::Deprecation
2657
+ def assert_deprecated(match = T.unsafe(nil), deprecator = T.unsafe(nil), &block); end
2658
+ def assert_not_deprecated(deprecator = T.unsafe(nil), &block); end
2659
+ def collect_deprecations(deprecator = T.unsafe(nil)); end
2660
+ end
2661
+
2662
+ module ActiveSupport::Testing::FileFixtures
2663
+ extend(::ActiveSupport::Concern)
2664
+
2665
+ def file_fixture(fixture_name); end
2666
+ end
2667
+
2668
+ module ActiveSupport::Testing::Isolation
2669
+ include(::ActiveSupport::Testing::Isolation::Forking)
2670
+
2671
+ def run; end
2672
+
2673
+ class << self
2674
+ def forking_env?; end
2675
+ def included(klass); end
2676
+ end
2677
+ end
2678
+
2679
+ module ActiveSupport::Testing::Isolation::Forking
2680
+ def run_in_isolation(&blk); end
2681
+ end
2682
+
2683
+ module ActiveSupport::Testing::Isolation::Subprocess
2684
+ def run_in_isolation(&blk); end
2685
+ end
2686
+
2687
+ ActiveSupport::Testing::Isolation::Subprocess::ORIG_ARGV = T.let(T.unsafe(nil), Array)
2688
+
2689
+ class ActiveSupport::Testing::Parallelization
2690
+ def initialize(worker_count); end
2691
+
2692
+ def <<(work); end
2693
+ def after_fork_hooks; end
2694
+ def run_cleanup_hooks; end
2695
+ def shutdown; end
2696
+ def start; end
2697
+
2698
+ class << self
2699
+ def after_fork_hook(&blk); end
2700
+ def after_fork_hooks; end
2701
+ def run_cleanup_hook(&blk); end
2702
+ def run_cleanup_hooks; end
2703
+ end
2704
+ end
2705
+
2706
+ class ActiveSupport::Testing::Parallelization::Server
2707
+ include(::DRb::DRbUndumped)
2708
+
2709
+ def initialize; end
2710
+
2711
+ def <<(o); end
2712
+ def active_workers?; end
2713
+ def pop; end
2714
+ def record(reporter, result); end
2715
+ def shutdown; end
2716
+ def start_worker(worker_id); end
2717
+ def stop_worker(worker_id); end
2718
+ end
2719
+
2720
+ class ActiveSupport::Testing::Parallelization::Worker
2721
+ def initialize(number, url); end
2722
+
2723
+ def after_fork; end
2724
+ def perform_job(job); end
2725
+ def run_cleanup; end
2726
+ def safe_record(reporter, result); end
2727
+ def start; end
2728
+ def work_from_queue; end
2729
+
2730
+ private
2731
+
2732
+ def add_setup_exception(result); end
2733
+ def set_process_title(status); end
2734
+ end
2735
+
2736
+ module ActiveSupport::Testing::SetupAndTeardown
2737
+ def after_teardown; end
2738
+ def before_setup; end
2739
+
2740
+ class << self
2741
+ def prepended(klass); end
2742
+ end
2743
+ end
2744
+
2745
+ module ActiveSupport::Testing::SetupAndTeardown::ClassMethods
2746
+ def setup(*args, &block); end
2747
+ def teardown(*args, &block); end
2748
+ end
2749
+
2750
+ class ActiveSupport::Testing::SimpleStubs
2751
+ def initialize; end
2752
+
2753
+ def stub_object(object, method_name, &block); end
2754
+ def stubbed?; end
2755
+ def stubbing(object, method_name); end
2756
+ def unstub_all!; end
2757
+
2758
+ private
2759
+
2760
+ def unstub_object(stub); end
2761
+ end
2762
+
2763
+ class ActiveSupport::Testing::SimpleStubs::Stub < ::Struct
2764
+ def method_name; end
2765
+ def method_name=(_); end
2766
+ def object; end
2767
+ def object=(_); end
2768
+ def original_method; end
2769
+ def original_method=(_); end
2770
+
2771
+ class << self
2772
+ def [](*_); end
2773
+ def inspect; end
2774
+ def members; end
2775
+ def new(*_); end
2776
+ end
2777
+ end
2778
+
2779
+ module ActiveSupport::Testing::TaggedLogging
2780
+ def before_setup; end
2781
+ def tagged_logger=(_); end
2782
+
2783
+ private
2784
+
2785
+ def tagged_logger; end
2786
+ end
2787
+
2788
+ module ActiveSupport::Testing::TimeHelpers
2789
+ def after_teardown; end
2790
+ def freeze_time(&block); end
2791
+ def travel(duration, &block); end
2792
+ def travel_back; end
2793
+ def travel_to(date_or_time); end
2794
+ def unfreeze_time; end
2795
+
2796
+ private
2797
+
2798
+ def simple_stubs; end
2799
+ end
2800
+
2801
+ class ActiveSupport::TimeWithZone
2802
+ include(::DateAndTime::Compatibility)
2803
+ include(::Comparable)
2804
+
2805
+ def initialize(utc_time, time_zone, local_time = T.unsafe(nil), period = T.unsafe(nil)); end
2806
+
2807
+ def +(other); end
2808
+ def -(other); end
2809
+ def <=>(other); end
2810
+ def acts_like_time?; end
2811
+ def advance(options); end
2812
+ def after?(_); end
2813
+ def ago(other); end
2814
+ def as_json(options = T.unsafe(nil)); end
2815
+ def before?(_); end
2816
+ def between?(min, max); end
2817
+ def blank?; end
2818
+ def change(options); end
2819
+ def comparable_time; end
2820
+ def day; end
2821
+ def dst?; end
2822
+ def encode_with(coder); end
2823
+ def eql?(other); end
2824
+ def formatted_offset(colon = T.unsafe(nil), alternate_utc_string = T.unsafe(nil)); end
2825
+ def freeze; end
2826
+ def future?; end
2827
+ def getgm; end
2828
+ def getlocal(utc_offset = T.unsafe(nil)); end
2829
+ def getutc; end
2830
+ def gmt?; end
2831
+ def gmt_offset; end
2832
+ def gmtime; end
2833
+ def gmtoff; end
2834
+ def hash; end
2835
+ def hour; end
2836
+ def httpdate; end
2837
+ def in(other); end
2838
+ def in_time_zone(new_zone = T.unsafe(nil)); end
2839
+ def init_with(coder); end
2840
+ def inspect; end
2841
+ def is_a?(klass); end
2842
+ def isdst; end
2843
+ def iso8601(fraction_digits = T.unsafe(nil)); end
2844
+ def kind_of?(klass); end
2845
+ def localtime(utc_offset = T.unsafe(nil)); end
2846
+ def marshal_dump; end
2847
+ def marshal_load(variables); end
2848
+ def mday; end
2849
+ def method_missing(sym, *args, &block); end
2850
+ def min; end
2851
+ def mon; end
2852
+ def month; end
2853
+ def next_day?; end
2854
+ def nsec; end
2855
+ def past?; end
2856
+ def period; end
2857
+ def prev_day?; end
2858
+ def respond_to?(sym, include_priv = T.unsafe(nil)); end
2859
+ def rfc2822; end
2860
+ def rfc3339(fraction_digits = T.unsafe(nil)); end
2861
+ def rfc822; end
2862
+ def sec; end
2863
+ def since(other); end
2864
+ def strftime(format); end
2865
+ def time; end
2866
+ def time_zone; end
2867
+ def to_a; end
2868
+ def to_date; end
2869
+ def to_datetime; end
2870
+ def to_f; end
2871
+ def to_formatted_s(format = T.unsafe(nil)); end
2872
+ def to_i; end
2873
+ def to_r; end
2874
+ def to_s(format = T.unsafe(nil)); end
2875
+ def to_time; end
2876
+ def today?; end
2877
+ def tomorrow?; end
2878
+ def tv_sec; end
2879
+ def usec; end
2880
+ def utc; end
2881
+ def utc?; end
2882
+ def utc_offset; end
2883
+ def wday; end
2884
+ def xmlschema(fraction_digits = T.unsafe(nil)); end
2885
+ def yday; end
2886
+ def year; end
2887
+ def yesterday?; end
2888
+ def zone; end
2889
+
2890
+ private
2891
+
2892
+ def duration_of_variable_length?(obj); end
2893
+ def get_period_and_ensure_valid_local_time(period); end
2894
+ def incorporate_utc_offset(time, offset); end
2895
+ def respond_to_missing?(sym, include_priv); end
2896
+ def transfer_time_values_to_utc_constructor(time); end
2897
+ def wrap_with_time_zone(time); end
2898
+
2899
+ class << self
2900
+ def name; end
2901
+ end
2902
+ end
2903
+
2904
+ ActiveSupport::TimeWithZone::PRECISIONS = T.let(T.unsafe(nil), Hash)
2905
+
2906
+ ActiveSupport::TimeWithZone::SECONDS_PER_DAY = T.let(T.unsafe(nil), Integer)
2907
+
2908
+ class ActiveSupport::TimeZone
2909
+ include(::Comparable)
2910
+
2911
+ def initialize(name, utc_offset = T.unsafe(nil), tzinfo = T.unsafe(nil)); end
2912
+
2913
+ def <=>(zone); end
2914
+ def =~(re); end
2915
+ def at(*args); end
2916
+ def encode_with(coder); end
2917
+ def formatted_offset(colon = T.unsafe(nil), alternate_utc_string = T.unsafe(nil)); end
2918
+ def init_with(coder); end
2919
+ def iso8601(str); end
2920
+ def local(*args); end
2921
+ def local_to_utc(time, dst = T.unsafe(nil)); end
2922
+ def match?(re); end
2923
+ def name; end
2924
+ def now; end
2925
+ def parse(str, now = T.unsafe(nil)); end
2926
+ def period_for_local(time, dst = T.unsafe(nil)); end
2927
+ def period_for_utc(time); end
2928
+ def periods_for_local(time); end
2929
+ def rfc3339(str); end
2930
+ def strptime(str, format, now = T.unsafe(nil)); end
2931
+ def to_s; end
2932
+ def today; end
2933
+ def tomorrow; end
2934
+ def tzinfo; end
2935
+ def utc_offset; end
2936
+ def utc_to_local(time); end
2937
+ def yesterday; end
2938
+
2939
+ private
2940
+
2941
+ def parts_to_time(parts, now); end
2942
+ def time_now; end
2943
+
2944
+ class << self
2945
+ def [](arg); end
2946
+ def all; end
2947
+ def clear; end
2948
+ def country_zones(country_code); end
2949
+ def create(*_); end
2950
+ def find_tzinfo(name); end
2951
+ def new(name); end
2952
+ def seconds_to_utc_offset(seconds, colon = T.unsafe(nil)); end
2953
+ def us_zones; end
2954
+
2955
+ private
2956
+
2957
+ def load_country_zones(code); end
2958
+ def zones_map; end
2959
+ end
2960
+ end
2961
+
2962
+ ActiveSupport::TimeZone::MAPPING = T.let(T.unsafe(nil), Hash)
2963
+
2964
+ module ActiveSupport::ToJsonWithActiveSupportEncoder
2965
+ def to_json(options = T.unsafe(nil)); end
2966
+ end
2967
+
2968
+ module ActiveSupport::Tryable
2969
+ def try(method_name = T.unsafe(nil), *args, &b); end
2970
+ def try!(method_name = T.unsafe(nil), *args, &b); end
2971
+ end
2972
+
2973
+ module ActiveSupport::VERSION
2974
+ end
2975
+
2976
+ ActiveSupport::VERSION::MAJOR = T.let(T.unsafe(nil), Integer)
2977
+
2978
+ ActiveSupport::VERSION::MINOR = T.let(T.unsafe(nil), Integer)
2979
+
2980
+ ActiveSupport::VERSION::PRE = T.let(T.unsafe(nil), String)
2981
+
2982
+ ActiveSupport::VERSION::STRING = T.let(T.unsafe(nil), String)
2983
+
2984
+ ActiveSupport::VERSION::TINY = T.let(T.unsafe(nil), Integer)
2985
+
2986
+ class ActiveSupport::XMLConverter
2987
+ def initialize(xml, disallowed_types = T.unsafe(nil)); end
2988
+
2989
+ def to_h; end
2990
+
2991
+ private
2992
+
2993
+ def become_array?(value); end
2994
+ def become_content?(value); end
2995
+ def become_empty_string?(value); end
2996
+ def become_hash?(value); end
2997
+ def deep_to_h(value); end
2998
+ def garbage?(value); end
2999
+ def normalize_keys(params); end
3000
+ def nothing?(value); end
3001
+ def process_array(value); end
3002
+ def process_content(value); end
3003
+ def process_hash(value); end
3004
+ end
3005
+
3006
+ ActiveSupport::XMLConverter::DISALLOWED_TYPES = T.let(T.unsafe(nil), Array)
3007
+
3008
+ class ActiveSupport::XMLConverter::DisallowedType < ::StandardError
3009
+ def initialize(type); end
3010
+ end
3011
+
3012
+ module ActiveSupport::XmlMini
3013
+ extend(::ActiveSupport::XmlMini)
3014
+
3015
+ def backend; end
3016
+ def backend=(name); end
3017
+ def depth; end
3018
+ def depth=(_); end
3019
+ def parse(*args, &block); end
3020
+ def rename_key(key, options = T.unsafe(nil)); end
3021
+ def to_tag(key, value, options); end
3022
+ def with_backend(name); end
3023
+
3024
+ private
3025
+
3026
+ def _dasherize(key); end
3027
+ def _parse_binary(bin, entity); end
3028
+ def _parse_file(file, entity); end
3029
+ def cast_backend_name_to_module(name); end
3030
+ def current_thread_backend; end
3031
+ def current_thread_backend=(name); end
3032
+ end
3033
+
3034
+ ActiveSupport::XmlMini::DEFAULT_ENCODINGS = T.let(T.unsafe(nil), Hash)
3035
+
3036
+ ActiveSupport::XmlMini::FORMATTING = T.let(T.unsafe(nil), Hash)
3037
+
3038
+ module ActiveSupport::XmlMini::FileLike
3039
+ def content_type; end
3040
+ def content_type=(_); end
3041
+ def original_filename; end
3042
+ def original_filename=(_); end
3043
+ end
3044
+
3045
+ ActiveSupport::XmlMini::PARSING = T.let(T.unsafe(nil), Hash)
3046
+
3047
+ ActiveSupport::XmlMini::TYPE_NAMES = T.let(T.unsafe(nil), Hash)
3048
+
3049
+ module ActiveSupport::XmlMini_REXML
3050
+ extend(::ActiveSupport::XmlMini_REXML)
3051
+
3052
+ def parse(data); end
3053
+
3054
+ private
3055
+
3056
+ def collapse(element, depth); end
3057
+ def empty_content?(element); end
3058
+ def get_attributes(element); end
3059
+ def merge!(hash, key, value); end
3060
+ def merge_element!(hash, element, depth); end
3061
+ def merge_texts!(hash, element); end
3062
+ end
3063
+
3064
+ ActiveSupport::XmlMini_REXML::CONTENT_KEY = T.let(T.unsafe(nil), String)
3065
+
3066
+ module ActiveSupport::MarshalWithAutoloading
3067
+ def load(source, proc = T.unsafe(nil)); end
3068
+ end
3069
+
3070
+ class Array
3071
+ include(::Enumerable)
3072
+ include(::JSON::Ext::Generator::GeneratorMethods::Array)
3073
+ include(::Mocha::Inspect::ArrayMethods)
3074
+
3075
+ def as_json(options = T.unsafe(nil)); end
3076
+ def compact_blank!; end
3077
+ def deep_dup; end
3078
+ def excluding(*elements); end
3079
+ def extract!; end
3080
+ def extract_options!; end
3081
+ def fifth; end
3082
+ def forty_two; end
3083
+ def fourth; end
3084
+ def from(position); end
3085
+ def in_groups(number, fill_with = T.unsafe(nil)); end
3086
+ def in_groups_of(number, fill_with = T.unsafe(nil)); end
3087
+ def including(*elements); end
3088
+ def inquiry; end
3089
+ def second; end
3090
+ def second_to_last; end
3091
+ def split(value = T.unsafe(nil)); end
3092
+ def sum(init = T.unsafe(nil), &block); end
3093
+ def third; end
3094
+ def third_to_last; end
3095
+ def to(position); end
3096
+ def to_formatted_s(format = T.unsafe(nil)); end
3097
+ def to_param; end
3098
+ def to_query(key); end
3099
+ def to_s(format = T.unsafe(nil)); end
3100
+ def to_sentence(options = T.unsafe(nil)); end
3101
+ def to_xml(options = T.unsafe(nil)); end
3102
+ def without(*elements); end
3103
+
3104
+ class << self
3105
+ def wrap(object); end
3106
+ end
3107
+ end
3108
+
3109
+ class BigDecimal < ::Numeric
3110
+ include(::ActiveSupport::BigDecimalWithDefaultFormat)
3111
+
3112
+ def as_json(options = T.unsafe(nil)); end
3113
+ end
3114
+
3115
+ BigDecimal::EXCEPTION_NaN = T.let(T.unsafe(nil), Integer)
3116
+
3117
+ BigDecimal::VERSION = T.let(T.unsafe(nil), String)
3118
+
3119
+ class Class < ::Module
3120
+ include(::Mocha::ClassMethods)
3121
+
3122
+ def class_attribute(*attrs, instance_accessor: T.unsafe(nil), instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_predicate: T.unsafe(nil), default: T.unsafe(nil)); end
3123
+ def descendants; end
3124
+ def subclasses; end
3125
+ end
3126
+
3127
+ class Date
3128
+ include(::Comparable)
3129
+ include(::DateAndTime::Zones)
3130
+ include(::Mocha::Inspect::DateMethods)
3131
+ include(::DateAndTime::Calculations)
3132
+
3133
+ def +(other); end
3134
+ def -(other); end
3135
+ def <=>(other); end
3136
+ def acts_like_date?; end
3137
+ def advance(options); end
3138
+ def ago(seconds); end
3139
+ def as_json(options = T.unsafe(nil)); end
3140
+ def at_beginning_of_day; end
3141
+ def at_end_of_day; end
3142
+ def at_midday; end
3143
+ def at_middle_of_day; end
3144
+ def at_midnight; end
3145
+ def at_noon; end
3146
+ def beginning_of_day; end
3147
+ def blank?; end
3148
+ def change(options); end
3149
+ def compare_with_coercion(other); end
3150
+ def end_of_day; end
3151
+ def in(seconds); end
3152
+ def inspect; end
3153
+ def midday; end
3154
+ def middle_of_day; end
3155
+ def midnight; end
3156
+ def minus_with_duration(other); end
3157
+ def noon; end
3158
+ def plus_with_duration(other); end
3159
+ def readable_inspect; end
3160
+ def since(seconds); end
3161
+ def to_formatted_s(format = T.unsafe(nil)); end
3162
+ def to_s(format = T.unsafe(nil)); end
3163
+ def to_time(form = T.unsafe(nil)); end
3164
+ def xmlschema; end
3165
+
3166
+ class << self
3167
+ def beginning_of_week; end
3168
+ def beginning_of_week=(week_start); end
3169
+ def beginning_of_week_default; end
3170
+ def beginning_of_week_default=(_); end
3171
+ def current; end
3172
+ def find_beginning_of_week!(week_start); end
3173
+ def tomorrow; end
3174
+ def yesterday; end
3175
+ end
3176
+ end
3177
+
3178
+ Date::DATE_FORMATS = T.let(T.unsafe(nil), Hash)
3179
+
3180
+ module DateAndTime
3181
+ end
3182
+
3183
+ module DateAndTime::Calculations
3184
+ def after?(date_or_time); end
3185
+ def all_day; end
3186
+ def all_month; end
3187
+ def all_quarter; end
3188
+ def all_week(start_day = T.unsafe(nil)); end
3189
+ def all_year; end
3190
+ def at_beginning_of_month; end
3191
+ def at_beginning_of_quarter; end
3192
+ def at_beginning_of_week(start_day = T.unsafe(nil)); end
3193
+ def at_beginning_of_year; end
3194
+ def at_end_of_month; end
3195
+ def at_end_of_quarter; end
3196
+ def at_end_of_week(start_day = T.unsafe(nil)); end
3197
+ def at_end_of_year; end
3198
+ def before?(date_or_time); end
3199
+ def beginning_of_month; end
3200
+ def beginning_of_quarter; end
3201
+ def beginning_of_week(start_day = T.unsafe(nil)); end
3202
+ def beginning_of_year; end
3203
+ def days_ago(days); end
3204
+ def days_since(days); end
3205
+ def days_to_week_start(start_day = T.unsafe(nil)); end
3206
+ def end_of_month; end
3207
+ def end_of_quarter; end
3208
+ def end_of_week(start_day = T.unsafe(nil)); end
3209
+ def end_of_year; end
3210
+ def future?; end
3211
+ def last_month; end
3212
+ def last_quarter; end
3213
+ def last_week(start_day = T.unsafe(nil), same_time: T.unsafe(nil)); end
3214
+ def last_weekday; end
3215
+ def last_year; end
3216
+ def monday; end
3217
+ def months_ago(months); end
3218
+ def months_since(months); end
3219
+ def next_day?; end
3220
+ def next_occurring(day_of_week); end
3221
+ def next_quarter; end
3222
+ def next_week(given_day_in_next_week = T.unsafe(nil), same_time: T.unsafe(nil)); end
3223
+ def next_weekday; end
3224
+ def on_weekday?; end
3225
+ def on_weekend?; end
3226
+ def past?; end
3227
+ def prev_day?; end
3228
+ def prev_occurring(day_of_week); end
3229
+ def prev_quarter; end
3230
+ def prev_week(start_day = T.unsafe(nil), same_time: T.unsafe(nil)); end
3231
+ def prev_weekday; end
3232
+ def sunday; end
3233
+ def today?; end
3234
+ def tomorrow; end
3235
+ def tomorrow?; end
3236
+ def weeks_ago(weeks); end
3237
+ def weeks_since(weeks); end
3238
+ def years_ago(years); end
3239
+ def years_since(years); end
3240
+ def yesterday; end
3241
+ def yesterday?; end
3242
+
3243
+ private
3244
+
3245
+ def copy_time_to(other); end
3246
+ def days_span(day); end
3247
+ def first_hour(date_or_time); end
3248
+ def last_hour(date_or_time); end
3249
+ end
3250
+
3251
+ DateAndTime::Calculations::DAYS_INTO_WEEK = T.let(T.unsafe(nil), Hash)
3252
+
3253
+ DateAndTime::Calculations::WEEKEND_DAYS = T.let(T.unsafe(nil), Array)
3254
+
3255
+ module DateAndTime::Compatibility
3256
+ def preserve_timezone; end
3257
+ def utc_to_local_returns_utc_offset_times; end
3258
+
3259
+ class << self
3260
+ def preserve_timezone; end
3261
+ def preserve_timezone=(val); end
3262
+ def utc_to_local_returns_utc_offset_times; end
3263
+ def utc_to_local_returns_utc_offset_times=(val); end
3264
+ end
3265
+ end
3266
+
3267
+ module DateAndTime::Zones
3268
+ def in_time_zone(zone = T.unsafe(nil)); end
3269
+
3270
+ private
3271
+
3272
+ def time_with_zone(time, zone); end
3273
+ end
3274
+
3275
+ class DateTime < ::Date
3276
+ include(::DateAndTime::Compatibility)
3277
+
3278
+ def <=>(other); end
3279
+ def acts_like_date?; end
3280
+ def acts_like_time?; end
3281
+ def advance(options); end
3282
+ def ago(seconds); end
3283
+ def as_json(options = T.unsafe(nil)); end
3284
+ def at_beginning_of_day; end
3285
+ def at_beginning_of_hour; end
3286
+ def at_beginning_of_minute; end
3287
+ def at_end_of_day; end
3288
+ def at_end_of_hour; end
3289
+ def at_end_of_minute; end
3290
+ def at_midday; end
3291
+ def at_middle_of_day; end
3292
+ def at_midnight; end
3293
+ def at_noon; end
3294
+ def beginning_of_day; end
3295
+ def beginning_of_hour; end
3296
+ def beginning_of_minute; end
3297
+ def blank?; end
3298
+ def change(options); end
3299
+ def end_of_day; end
3300
+ def end_of_hour; end
3301
+ def end_of_minute; end
3302
+ def formatted_offset(colon = T.unsafe(nil), alternate_utc_string = T.unsafe(nil)); end
3303
+ def getgm; end
3304
+ def getlocal(utc_offset = T.unsafe(nil)); end
3305
+ def getutc; end
3306
+ def gmtime; end
3307
+ def in(seconds); end
3308
+ def inspect; end
3309
+ def localtime(utc_offset = T.unsafe(nil)); end
3310
+ def midday; end
3311
+ def middle_of_day; end
3312
+ def midnight; end
3313
+ def noon; end
3314
+ def nsec; end
3315
+ def readable_inspect; end
3316
+ def seconds_since_midnight; end
3317
+ def seconds_until_end_of_day; end
3318
+ def since(seconds); end
3319
+ def subsec; end
3320
+ def to_f; end
3321
+ def to_formatted_s(format = T.unsafe(nil)); end
3322
+ def to_i; end
3323
+ def to_s(format = T.unsafe(nil)); end
3324
+ def to_time; end
3325
+ def usec; end
3326
+ def utc; end
3327
+ def utc?; end
3328
+ def utc_offset; end
3329
+
3330
+ private
3331
+
3332
+ def offset_in_seconds; end
3333
+ def seconds_since_unix_epoch; end
3334
+
3335
+ class << self
3336
+ def civil_from_format(utc_or_local, year, month = T.unsafe(nil), day = T.unsafe(nil), hour = T.unsafe(nil), min = T.unsafe(nil), sec = T.unsafe(nil)); end
3337
+ def current; end
3338
+ end
3339
+ end
3340
+
3341
+ module Digest::UUID
3342
+ class << self
3343
+ def uuid_from_hash(hash_class, uuid_namespace, name); end
3344
+ def uuid_v3(uuid_namespace, name); end
3345
+ def uuid_v4; end
3346
+ def uuid_v5(uuid_namespace, name); end
3347
+ end
3348
+ end
3349
+
3350
+ Digest::UUID::DNS_NAMESPACE = T.let(T.unsafe(nil), String)
3351
+
3352
+ Digest::UUID::OID_NAMESPACE = T.let(T.unsafe(nil), String)
3353
+
3354
+ Digest::UUID::URL_NAMESPACE = T.let(T.unsafe(nil), String)
3355
+
3356
+ Digest::UUID::X500_NAMESPACE = T.let(T.unsafe(nil), String)
3357
+
3358
+ module Enumerable
3359
+ def as_json(options = T.unsafe(nil)); end
3360
+ def compact_blank; end
3361
+ def exclude?(object); end
3362
+ def excluding(*elements); end
3363
+ def including(*elements); end
3364
+ def index_by; end
3365
+ def index_with(default = T.unsafe(nil)); end
3366
+ def many?; end
3367
+ def pick(*keys); end
3368
+ def pluck(*keys); end
3369
+ def sum(identity = T.unsafe(nil), &block); end
3370
+ def without(*elements); end
3371
+ end
3372
+
3373
+ class Exception
3374
+ include(::ActiveSupport::Dependencies::Blamable)
3375
+
3376
+ def as_json(options = T.unsafe(nil)); end
3377
+ end
3378
+
3379
+ class FalseClass
3380
+ include(::JSON::Ext::Generator::GeneratorMethods::FalseClass)
3381
+
3382
+ def as_json(options = T.unsafe(nil)); end
3383
+ def blank?; end
3384
+ def to_param; end
3385
+ end
3386
+
3387
+ class Float < ::Numeric
3388
+ include(::JSON::Ext::Generator::GeneratorMethods::Float)
3389
+
3390
+ def as_json(options = T.unsafe(nil)); end
3391
+ end
3392
+
3393
+ class Hash
3394
+ include(::Enumerable)
3395
+ include(::JSON::Ext::Generator::GeneratorMethods::Hash)
3396
+ include(::Mocha::Inspect::HashMethods)
3397
+
3398
+ def as_json(options = T.unsafe(nil)); end
3399
+ def assert_valid_keys(*valid_keys); end
3400
+ def compact_blank; end
3401
+ def compact_blank!; end
3402
+ def deep_dup; end
3403
+ def deep_merge(other_hash, &block); end
3404
+ def deep_merge!(other_hash, &block); end
3405
+ def deep_stringify_keys; end
3406
+ def deep_stringify_keys!; end
3407
+ def deep_symbolize_keys; end
3408
+ def deep_symbolize_keys!; end
3409
+ def deep_transform_keys(&block); end
3410
+ def deep_transform_keys!(&block); end
3411
+ def deep_transform_values(&block); end
3412
+ def deep_transform_values!(&block); end
3413
+ def except(*keys); end
3414
+ def except!(*keys); end
3415
+ def extract!(*keys); end
3416
+ def extractable_options?; end
3417
+ def nested_under_indifferent_access; end
3418
+ def reverse_merge(other_hash); end
3419
+ def reverse_merge!(other_hash); end
3420
+ def reverse_update(other_hash); end
3421
+ def slice!(*keys); end
3422
+ def stringify_keys; end
3423
+ def stringify_keys!; end
3424
+ def symbolize_keys; end
3425
+ def symbolize_keys!; end
3426
+ def to_options; end
3427
+ def to_options!; end
3428
+ def to_param(namespace = T.unsafe(nil)); end
3429
+ def to_query(namespace = T.unsafe(nil)); end
3430
+ def to_xml(options = T.unsafe(nil)); end
3431
+ def with_defaults(other_hash); end
3432
+ def with_defaults!(other_hash); end
3433
+ def with_indifferent_access; end
3434
+
3435
+ private
3436
+
3437
+ def _deep_transform_keys_in_object(object, &block); end
3438
+ def _deep_transform_keys_in_object!(object, &block); end
3439
+ def _deep_transform_values_in_object(object, &block); end
3440
+ def _deep_transform_values_in_object!(object, &block); end
3441
+
3442
+ class << self
3443
+ def from_trusted_xml(xml); end
3444
+ def from_xml(xml, disallowed_types = T.unsafe(nil)); end
3445
+ end
3446
+ end
3447
+
3448
+ HashWithIndifferentAccess = ActiveSupport::HashWithIndifferentAccess
3449
+
3450
+ module I18n
3451
+ extend(::I18n::Base)
3452
+
3453
+ class << self
3454
+ def interpolate(string, values); end
3455
+ def interpolate_hash(string, values); end
3456
+ def new_double_nested_cache; end
3457
+ end
3458
+ end
3459
+
3460
+ I18n::DEFAULT_INTERPOLATION_PATTERNS = T.let(T.unsafe(nil), Array)
3461
+
3462
+ I18n::EMPTY_HASH = T.let(T.unsafe(nil), Hash)
3463
+
3464
+ I18n::INTERPOLATION_PATTERN = T.let(T.unsafe(nil), Regexp)
3465
+
3466
+ I18n::RESERVED_KEYS = T.let(T.unsafe(nil), Array)
3467
+
3468
+ I18n::RESERVED_KEYS_PATTERN = T.let(T.unsafe(nil), Regexp)
3469
+
3470
+ class I18n::Railtie < ::Rails::Railtie
3471
+ class << self
3472
+ def include_fallbacks_module; end
3473
+ def init_fallbacks(fallbacks); end
3474
+ def initialize_i18n(app); end
3475
+ def validate_fallbacks(fallbacks); end
3476
+ def watched_dirs_with_extensions(paths); end
3477
+ end
3478
+ end
3479
+
3480
+ I18n::VERSION = T.let(T.unsafe(nil), String)
3481
+
3482
+ class IO
3483
+ include(::Enumerable)
3484
+ include(::File::Constants)
3485
+
3486
+ def as_json(options = T.unsafe(nil)); end
3487
+ end
3488
+
3489
+ IO::EWOULDBLOCKWaitReadable = IO::EAGAINWaitReadable
3490
+
3491
+ IO::EWOULDBLOCKWaitWritable = IO::EAGAINWaitWritable
3492
+
3493
+ class Integer < ::Numeric
3494
+ include(::JSON::Ext::Generator::GeneratorMethods::Integer)
3495
+
3496
+ def month; end
3497
+ def months; end
3498
+ def year; end
3499
+ def years; end
3500
+ end
3501
+
3502
+ module Kernel
3503
+ def class_eval(*args, &block); end
3504
+
3505
+ private
3506
+
3507
+ def enable_warnings; end
3508
+ def silence_warnings; end
3509
+ def suppress(*exception_classes); end
3510
+ def with_warnings(flag); end
3511
+
3512
+ class << self
3513
+ def enable_warnings; end
3514
+ def silence_warnings; end
3515
+ def suppress(*exception_classes); end
3516
+ def with_warnings(flag); end
3517
+ end
3518
+ end
3519
+
3520
+ class LoadError < ::ScriptError
3521
+ def is_missing?(location); end
3522
+ end
3523
+
3524
+ module LoggerSilence
3525
+ extend(::ActiveSupport::Concern)
3526
+
3527
+ include(::ActiveSupport::LoggerThreadSafeLevel)
3528
+ include(::ActiveSupport::LoggerSilence)
3529
+ end
3530
+
3531
+ class Method
3532
+ include(::MethodSource::SourceLocation::MethodExtensions)
3533
+ include(::MethodSource::MethodExtensions)
3534
+
3535
+ def duplicable?; end
3536
+ end
3537
+
3538
+ class Module
3539
+ include(::ActiveSupport::Dependencies::ModuleConstMissing)
3540
+ include(::Module::Concerning)
3541
+
3542
+ def alias_attribute(new_name, old_name); end
3543
+ def anonymous?; end
3544
+ def attr_internal(*attrs); end
3545
+ def attr_internal_accessor(*attrs); end
3546
+ def attr_internal_reader(*attrs); end
3547
+ def attr_internal_writer(*attrs); end
3548
+ def cattr_accessor(*syms, instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), &blk); end
3549
+ def cattr_reader(*syms, instance_reader: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), location: T.unsafe(nil)); end
3550
+ def cattr_writer(*syms, instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), location: T.unsafe(nil)); end
3551
+ def delegate(*methods, to: T.unsafe(nil), prefix: T.unsafe(nil), allow_nil: T.unsafe(nil), private: T.unsafe(nil)); end
3552
+ def delegate_missing_to(target, allow_nil: T.unsafe(nil)); end
3553
+ def deprecate(*method_names); end
3554
+ def mattr_accessor(*syms, instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), &blk); end
3555
+ def mattr_reader(*syms, instance_reader: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), location: T.unsafe(nil)); end
3556
+ def mattr_writer(*syms, instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), location: T.unsafe(nil)); end
3557
+ def method_visibility(method); end
3558
+ def module_parent; end
3559
+ def module_parent_name; end
3560
+ def module_parents; end
3561
+ def parent; end
3562
+ def parent_name; end
3563
+ def parents; end
3564
+ def redefine_method(method, &block); end
3565
+ def redefine_singleton_method(method, &block); end
3566
+ def remove_possible_method(method); end
3567
+ def remove_possible_singleton_method(method); end
3568
+ def silence_redefinition_of_method(method); end
3569
+ def thread_cattr_accessor(*syms, instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil)); end
3570
+ def thread_cattr_reader(*syms, instance_reader: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil)); end
3571
+ def thread_cattr_writer(*syms, instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil)); end
3572
+ def thread_mattr_accessor(*syms, instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil)); end
3573
+ def thread_mattr_reader(*syms, instance_reader: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil)); end
3574
+ def thread_mattr_writer(*syms, instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil)); end
3575
+
3576
+ private
3577
+
3578
+ def attr_internal_define(attr_name, type); end
3579
+ def attr_internal_ivar_name(attr); end
3580
+
3581
+ class << self
3582
+ def attr_internal_naming_format; end
3583
+ def attr_internal_naming_format=(_); end
3584
+ end
3585
+ end
3586
+
3587
+ module Module::Concerning
3588
+ def concern(topic, &module_definition); end
3589
+ def concerning(topic, prepend: T.unsafe(nil), &block); end
3590
+ end
3591
+
3592
+ Module::DELEGATION_RESERVED_KEYWORDS = T.let(T.unsafe(nil), Array)
3593
+
3594
+ Module::DELEGATION_RESERVED_METHOD_NAMES = T.let(T.unsafe(nil), Set)
3595
+
3596
+ class Module::DelegationError < ::NoMethodError
3597
+ end
3598
+
3599
+ Module::RUBY_RESERVED_KEYWORDS = T.let(T.unsafe(nil), Array)
3600
+
3601
+ class NameError < ::StandardError
3602
+ include(::DidYouMean::Correctable)
3603
+
3604
+ def missing_name; end
3605
+ def missing_name?(name); end
3606
+ end
3607
+
3608
+ class NilClass
3609
+ include(::JSON::Ext::Generator::GeneratorMethods::NilClass)
3610
+
3611
+ def as_json(options = T.unsafe(nil)); end
3612
+ def blank?; end
3613
+ def to_param; end
3614
+ def try(_method_name = T.unsafe(nil), *_); end
3615
+ def try!(_method_name = T.unsafe(nil), *_); end
3616
+ end
3617
+
3618
+ class Numeric
3619
+ include(::Comparable)
3620
+
3621
+ def as_json(options = T.unsafe(nil)); end
3622
+ def blank?; end
3623
+ def byte; end
3624
+ def bytes; end
3625
+ def day; end
3626
+ def days; end
3627
+ def exabyte; end
3628
+ def exabytes; end
3629
+ def fortnight; end
3630
+ def fortnights; end
3631
+ def gigabyte; end
3632
+ def gigabytes; end
3633
+ def hour; end
3634
+ def hours; end
3635
+ def html_safe?; end
3636
+ def in_milliseconds; end
3637
+ def kilobyte; end
3638
+ def kilobytes; end
3639
+ def megabyte; end
3640
+ def megabytes; end
3641
+ def minute; end
3642
+ def minutes; end
3643
+ def petabyte; end
3644
+ def petabytes; end
3645
+ def second; end
3646
+ def seconds; end
3647
+ def terabyte; end
3648
+ def terabytes; end
3649
+ def week; end
3650
+ def weeks; end
3651
+ end
3652
+
3653
+ Numeric::EXABYTE = T.let(T.unsafe(nil), Integer)
3654
+
3655
+ Numeric::GIGABYTE = T.let(T.unsafe(nil), Integer)
3656
+
3657
+ Numeric::KILOBYTE = T.let(T.unsafe(nil), Integer)
3658
+
3659
+ Numeric::MEGABYTE = T.let(T.unsafe(nil), Integer)
3660
+
3661
+ Numeric::PETABYTE = T.let(T.unsafe(nil), Integer)
3662
+
3663
+ Numeric::TERABYTE = T.let(T.unsafe(nil), Integer)
3664
+
3665
+ class Object < ::BasicObject
3666
+ include(::ActiveSupport::ToJsonWithActiveSupportEncoder)
3667
+ include(::ActiveSupport::ForkTracker::CoreExt)
3668
+ include(::ActiveSupport::ForkTracker::CoreExtPrivate)
3669
+ include(::Kernel)
3670
+ include(::JSON::Ext::Generator::GeneratorMethods::Object)
3671
+ include(::ActiveSupport::Tryable)
3672
+ include(::ActiveSupport::Dependencies::Loadable)
3673
+ include(::Minitest::Expectations)
3674
+ include(::Mocha::ParameterMatchers::InstanceMethods)
3675
+ include(::Mocha::Inspect::ObjectMethods)
3676
+ include(::Mocha::ObjectMethods)
3677
+ include(::PP::ObjectMixin)
3678
+
3679
+ def acts_like?(duck); end
3680
+ def as_json(options = T.unsafe(nil)); end
3681
+ def blank?; end
3682
+ def deep_dup; end
3683
+ def duplicable?; end
3684
+ def html_safe?; end
3685
+ def in?(another_object); end
3686
+ def instance_values; end
3687
+ def instance_variable_names; end
3688
+ def presence; end
3689
+ def presence_in(another_object); end
3690
+ def present?; end
3691
+ def to_param; end
3692
+ def to_query(key); end
3693
+ def with_options(options, &block); end
3694
+ end
3695
+
3696
+ class Pathname
3697
+ def as_json(options = T.unsafe(nil)); end
3698
+ end
3699
+
3700
+ class Range
3701
+ include(::ActiveSupport::RangeWithFormat)
3702
+ include(::ActiveSupport::CompareWithRange)
3703
+ include(::ActiveSupport::IncludeTimeWithZone)
3704
+ include(::ActiveSupport::EachTimeWithZone)
3705
+ include(::Enumerable)
3706
+
3707
+ def as_json(options = T.unsafe(nil)); end
3708
+ def overlaps?(other); end
3709
+ def sum(identity = T.unsafe(nil)); end
3710
+ end
3711
+
3712
+ class Regexp
3713
+ def as_json(options = T.unsafe(nil)); end
3714
+ def multiline?; end
3715
+ end
3716
+
3717
+ class String
3718
+ include(::Comparable)
3719
+ include(::Colorize::InstanceMethods)
3720
+ include(::JSON::Ext::Generator::GeneratorMethods::String)
3721
+ extend(::Colorize::ClassMethods)
3722
+ extend(::JSON::Ext::Generator::GeneratorMethods::String::Extend)
3723
+
3724
+ def acts_like_string?; end
3725
+ def as_json(options = T.unsafe(nil)); end
3726
+ def at(position); end
3727
+ def blank?; end
3728
+ def camelcase(first_letter = T.unsafe(nil)); end
3729
+ def camelize(first_letter = T.unsafe(nil)); end
3730
+ def classify; end
3731
+ def constantize; end
3732
+ def dasherize; end
3733
+ def deconstantize; end
3734
+ def demodulize; end
3735
+ def first(limit = T.unsafe(nil)); end
3736
+ def foreign_key(separate_class_name_and_id_with_underscore = T.unsafe(nil)); end
3737
+ def from(position); end
3738
+ def html_safe; end
3739
+ def humanize(capitalize: T.unsafe(nil), keep_id_suffix: T.unsafe(nil)); end
3740
+ def in_time_zone(zone = T.unsafe(nil)); end
3741
+ def is_utf8?; end
3742
+ def last(limit = T.unsafe(nil)); end
3743
+ def mb_chars; end
3744
+ def parameterize(separator: T.unsafe(nil), preserve_case: T.unsafe(nil), locale: T.unsafe(nil)); end
3745
+ def pluralize(count = T.unsafe(nil), locale = T.unsafe(nil)); end
3746
+ def remove(*patterns); end
3747
+ def remove!(*patterns); end
3748
+ def safe_constantize; end
3749
+ def singularize(locale = T.unsafe(nil)); end
3750
+ def squish; end
3751
+ def squish!; end
3752
+ def tableize; end
3753
+ def titlecase(keep_id_suffix: T.unsafe(nil)); end
3754
+ def titleize(keep_id_suffix: T.unsafe(nil)); end
3755
+ def to(position); end
3756
+ def to_date; end
3757
+ def to_datetime; end
3758
+ def to_time(form = T.unsafe(nil)); end
3759
+ def truncate(truncate_at, options = T.unsafe(nil)); end
3760
+ def truncate_bytes(truncate_at, omission: T.unsafe(nil)); end
3761
+ def truncate_words(words_count, options = T.unsafe(nil)); end
3762
+ def underscore; end
3763
+ def upcase_first; end
3764
+ end
3765
+
3766
+ String::BLANK_RE = T.let(T.unsafe(nil), Regexp)
3767
+
3768
+ String::ENCODED_BLANKS = T.let(T.unsafe(nil), Concurrent::Map)
3769
+
3770
+ class Struct
3771
+ include(::Enumerable)
3772
+
3773
+ def as_json(options = T.unsafe(nil)); end
3774
+ end
3775
+
3776
+ Struct::Group = Etc::Group
3777
+
3778
+ Struct::HTMLElementDescription = Struct
3779
+
3780
+ Struct::Passwd = Etc::Passwd
3781
+
3782
+ Struct::Tms = Process::Tms
3783
+
3784
+ class Symbol
3785
+ include(::Comparable)
3786
+
3787
+ def as_json(options = T.unsafe(nil)); end
3788
+ def end_with?(*suffixes); end
3789
+ def ends_with?(*suffixes); end
3790
+ def start_with?(*prefixes); end
3791
+ def starts_with?(*prefixes); end
3792
+ end
3793
+
3794
+ class Time
3795
+ include(::Comparable)
3796
+ include(::Mocha::Inspect::TimeMethods)
3797
+ include(::DateAndTime::Zones)
3798
+ include(::DateAndTime::Calculations)
3799
+ include(::DateAndTime::Compatibility)
3800
+
3801
+ def +(other); end
3802
+ def -(other); end
3803
+ def <=>(other); end
3804
+ def acts_like_time?; end
3805
+ def advance(options); end
3806
+ def ago(seconds); end
3807
+ def as_json(options = T.unsafe(nil)); end
3808
+ def at_beginning_of_day; end
3809
+ def at_beginning_of_hour; end
3810
+ def at_beginning_of_minute; end
3811
+ def at_end_of_day; end
3812
+ def at_end_of_hour; end
3813
+ def at_end_of_minute; end
3814
+ def at_midday; end
3815
+ def at_middle_of_day; end
3816
+ def at_midnight; end
3817
+ def at_noon; end
3818
+ def beginning_of_day; end
3819
+ def beginning_of_hour; end
3820
+ def beginning_of_minute; end
3821
+ def blank?; end
3822
+ def change(options); end
3823
+ def compare_with_coercion(other); end
3824
+ def end_of_day; end
3825
+ def end_of_hour; end
3826
+ def end_of_minute; end
3827
+ def eql?(other); end
3828
+ def eql_with_coercion(other); end
3829
+ def formatted_offset(colon = T.unsafe(nil), alternate_utc_string = T.unsafe(nil)); end
3830
+ def in(seconds); end
3831
+ def midday; end
3832
+ def middle_of_day; end
3833
+ def midnight; end
3834
+ def minus_with_coercion(other); end
3835
+ def minus_with_duration(other); end
3836
+ def minus_without_coercion(other); end
3837
+ def next_day(days = T.unsafe(nil)); end
3838
+ def next_month(months = T.unsafe(nil)); end
3839
+ def next_year(years = T.unsafe(nil)); end
3840
+ def noon; end
3841
+ def plus_with_duration(other); end
3842
+ def prev_day(days = T.unsafe(nil)); end
3843
+ def prev_month(months = T.unsafe(nil)); end
3844
+ def prev_year(years = T.unsafe(nil)); end
3845
+ def sec_fraction; end
3846
+ def seconds_since_midnight; end
3847
+ def seconds_until_end_of_day; end
3848
+ def since(seconds); end
3849
+ def to_formatted_s(format = T.unsafe(nil)); end
3850
+ def to_s(format = T.unsafe(nil)); end
3851
+ def to_time; end
3852
+
3853
+ class << self
3854
+ def ===(other); end
3855
+ def at(*args); end
3856
+ def at_with_coercion(*args); end
3857
+ def current; end
3858
+ def days_in_month(month, year = T.unsafe(nil)); end
3859
+ def days_in_year(year = T.unsafe(nil)); end
3860
+ def find_zone(time_zone); end
3861
+ def find_zone!(time_zone); end
3862
+ def rfc3339(str); end
3863
+ def use_zone(time_zone); end
3864
+ def zone; end
3865
+ def zone=(time_zone); end
3866
+ def zone_default; end
3867
+ def zone_default=(_); end
3868
+ end
3869
+ end
3870
+
3871
+ Time::COMMON_YEAR_DAYS_IN_MONTH = T.let(T.unsafe(nil), Array)
3872
+
3873
+ Time::DATE_FORMATS = T.let(T.unsafe(nil), Hash)
3874
+
3875
+ class TrueClass
3876
+ include(::JSON::Ext::Generator::GeneratorMethods::TrueClass)
3877
+
3878
+ def as_json(options = T.unsafe(nil)); end
3879
+ def blank?; end
3880
+ def to_param; end
3881
+ end
3882
+
3883
+ class UnboundMethod
3884
+ include(::MethodSource::SourceLocation::UnboundMethodExtensions)
3885
+ include(::MethodSource::MethodExtensions)
3886
+
3887
+ def duplicable?; end
3888
+ end