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,2504 @@
1
+ # DO NOT EDIT MANUALLY
2
+ # This is an autogenerated file for types exported from the `actionview` gem.
3
+ # Please instead update this file by running `dev typecheck update`.
4
+
5
+ # typed: true
6
+
7
+ module ActionView
8
+ extend(::ActiveSupport::Autoload)
9
+
10
+ class << self
11
+ def eager_load!; end
12
+ def gem_version; end
13
+ def version; end
14
+ end
15
+ end
16
+
17
+ class ActionView::AbstractRenderer
18
+ def initialize(lookup_context); end
19
+
20
+ def any_templates?(*args, &block); end
21
+ def formats(*args, &block); end
22
+ def render; end
23
+ def template_exists?(*args, &block); end
24
+
25
+ private
26
+
27
+ def build_rendered_collection(templates, spacer); end
28
+ def build_rendered_template(content, template); end
29
+ def extract_details(options); end
30
+ def prepend_formats(formats); end
31
+ end
32
+
33
+ ActionView::AbstractRenderer::NO_DETAILS = T.let(T.unsafe(nil), Hash)
34
+
35
+ module ActionView::AbstractRenderer::ObjectRendering
36
+ def initialize(lookup_context, options); end
37
+
38
+
39
+ private
40
+
41
+ def local_variable(path); end
42
+ def merge_prefix_into_object_path(prefix, object_path); end
43
+ def partial_path(object, view); end
44
+ def raise_invalid_identifier(path); end
45
+ def raise_invalid_option_as(as); end
46
+ end
47
+
48
+ ActionView::AbstractRenderer::ObjectRendering::IDENTIFIER_ERROR_MESSAGE = T.let(T.unsafe(nil), String)
49
+
50
+ ActionView::AbstractRenderer::ObjectRendering::OPTION_AS_ERROR_MESSAGE = T.let(T.unsafe(nil), String)
51
+
52
+ ActionView::AbstractRenderer::ObjectRendering::PREFIXED_PARTIAL_NAMES = T.let(T.unsafe(nil), Concurrent::Map)
53
+
54
+ class ActionView::AbstractRenderer::RenderedCollection
55
+ def initialize(rendered_templates, spacer); end
56
+
57
+ def body; end
58
+ def format; end
59
+ def rendered_templates; end
60
+
61
+ class << self
62
+ def empty(format); end
63
+ end
64
+ end
65
+
66
+ class ActionView::AbstractRenderer::RenderedCollection::EmptyCollection
67
+ def initialize(format); end
68
+
69
+ def body; end
70
+ def format; end
71
+ end
72
+
73
+ class ActionView::AbstractRenderer::RenderedTemplate
74
+ def initialize(body, template); end
75
+
76
+ def body; end
77
+ def format; end
78
+ def template; end
79
+ end
80
+
81
+ ActionView::AbstractRenderer::RenderedTemplate::EMPTY_SPACER = T.let(T.unsafe(nil), T.untyped)
82
+
83
+ class ActionView::ActionViewError < ::StandardError
84
+ end
85
+
86
+ class ActionView::Base
87
+ include(::ActionView::Context)
88
+ include(::ERB::Util)
89
+ include(::ActionView::Helpers::CaptureHelper)
90
+ include(::ActionView::Helpers::ControllerHelper)
91
+ include(::ActionView::Helpers::CspHelper)
92
+ include(::ActionView::Helpers::CsrfHelper)
93
+ include(::ActionView::Helpers::DateHelper)
94
+ include(::ActionView::Helpers::OutputSafetyHelper)
95
+ include(::ActionView::Helpers::TagHelper)
96
+ include(::ActiveSupport::Benchmarkable)
97
+ include(::ActionView::Helpers::ActiveModelHelper)
98
+ include(::ActionView::Helpers::AssetUrlHelper)
99
+ include(::ActionView::Helpers::AssetTagHelper)
100
+ include(::ActionView::Helpers::UrlHelper)
101
+ include(::ActionView::Helpers::AtomFeedHelper)
102
+ include(::ActionView::Helpers::CacheHelper)
103
+ include(::ActionView::Helpers::SanitizeHelper)
104
+ include(::ActionView::Helpers::DebugHelper)
105
+ include(::ActionView::Helpers::TextHelper)
106
+ include(::ActionView::Helpers::FormTagHelper)
107
+ include(::ActionView::ModelNaming)
108
+ include(::ActionView::RecordIdentifier)
109
+ include(::ActionView::Helpers::FormHelper)
110
+ include(::ActionView::Helpers::TranslationHelper)
111
+ include(::ActionView::Helpers::FormOptionsHelper)
112
+ include(::ActionView::Helpers::JavaScriptHelper)
113
+ include(::ActionView::Helpers::NumberHelper)
114
+ include(::ActionView::Helpers::RenderingHelper)
115
+ include(::ActionView::Helpers)
116
+ extend(::ActionView::Helpers::UrlHelper::ClassMethods)
117
+ extend(::ActionView::Helpers::SanitizeHelper::ClassMethods)
118
+
119
+ def initialize(lookup_context = T.unsafe(nil), assigns = T.unsafe(nil), controller = T.unsafe(nil), formats = T.unsafe(nil)); end
120
+
121
+ def _routes; end
122
+ def _routes=(_); end
123
+ def _routes?; end
124
+ def _run(method, template, locals, buffer, &block); end
125
+ def annotate_template_file_names; end
126
+ def annotate_template_file_names=(val); end
127
+ def assign(new_assigns); end
128
+ def assigns; end
129
+ def assigns=(_); end
130
+ def automatically_disable_submit_tag; end
131
+ def automatically_disable_submit_tag=(val); end
132
+ def compiled_method_container; end
133
+ def config; end
134
+ def config=(_); end
135
+ def debug_missing_translation; end
136
+ def debug_missing_translation=(val); end
137
+ def default_formats; end
138
+ def default_formats=(val); end
139
+ def field_error_proc; end
140
+ def field_error_proc=(val); end
141
+ def formats(*args, &block); end
142
+ def formats=(arg); end
143
+ def in_rendering_context(options); end
144
+ def locale(*args, &block); end
145
+ def locale=(arg); end
146
+ def logger; end
147
+ def logger=(_); end
148
+ def logger?; end
149
+ def lookup_context; end
150
+ def prefix_partial_path_with_controller_namespace; end
151
+ def prefix_partial_path_with_controller_namespace=(val); end
152
+ def raise_on_missing_translations; end
153
+ def raise_on_missing_translations=(val); end
154
+ def streaming_completion_on_exception; end
155
+ def streaming_completion_on_exception=(val); end
156
+ def view_paths(*args, &block); end
157
+ def view_paths=(arg); end
158
+ def view_renderer; end
159
+
160
+ class << self
161
+ def _routes; end
162
+ def _routes=(value); end
163
+ def _routes?; end
164
+ def annotate_template_file_names; end
165
+ def annotate_template_file_names=(val); end
166
+ def automatically_disable_submit_tag; end
167
+ def automatically_disable_submit_tag=(val); end
168
+ def build_lookup_context(context); end
169
+ def cache_template_loading; end
170
+ def cache_template_loading=(value); end
171
+ def changed?(other); end
172
+ def debug_missing_translation; end
173
+ def debug_missing_translation=(val); end
174
+ def default_form_builder; end
175
+ def default_form_builder=(val); end
176
+ def default_formats; end
177
+ def default_formats=(val); end
178
+ def empty; end
179
+ def erb_trim_mode=(arg); end
180
+ def field_error_proc; end
181
+ def field_error_proc=(val); end
182
+ def logger; end
183
+ def logger=(value); end
184
+ def logger?; end
185
+ def prefix_partial_path_with_controller_namespace; end
186
+ def prefix_partial_path_with_controller_namespace=(val); end
187
+ def raise_on_missing_translations; end
188
+ def raise_on_missing_translations=(val); end
189
+ def streaming_completion_on_exception; end
190
+ def streaming_completion_on_exception=(val); end
191
+ def with_context(context, assigns = T.unsafe(nil), controller = T.unsafe(nil)); end
192
+ def with_empty_template_cache; end
193
+ def with_view_paths(view_paths, assigns = T.unsafe(nil), controller = T.unsafe(nil)); end
194
+ def xss_safe?; end
195
+ end
196
+ end
197
+
198
+ ActionView::Base::NULL = T.let(T.unsafe(nil), Object)
199
+
200
+ class ActionView::CacheExpiry
201
+ def initialize(watcher:); end
202
+
203
+ def clear_cache; end
204
+ def clear_cache_if_necessary; end
205
+
206
+ private
207
+
208
+ def all_view_paths; end
209
+ def dirs_to_watch; end
210
+ end
211
+
212
+ class ActionView::CacheExpiry::Executor
213
+ def initialize(watcher:); end
214
+
215
+ def before(target); end
216
+ end
217
+
218
+ class ActionView::CollectionRenderer < ::ActionView::PartialRenderer
219
+ include(::ActionView::AbstractRenderer::ObjectRendering)
220
+
221
+ def render_collection_derive_partial(collection, context, block); end
222
+ def render_collection_with_partial(collection, partial, context, block); end
223
+
224
+ private
225
+
226
+ def collection_with_template(view, template, layout, collection); end
227
+ def render_collection(collection, view, path, template, layout, block); end
228
+ def retrieve_variable(path); end
229
+ end
230
+
231
+ class ActionView::CollectionRenderer::CollectionIterator
232
+ include(::Enumerable)
233
+
234
+ def initialize(collection); end
235
+
236
+ def each(&blk); end
237
+ def size; end
238
+ end
239
+
240
+ class ActionView::CollectionRenderer::MixedCollectionIterator < ::ActionView::CollectionRenderer::CollectionIterator
241
+ def initialize(collection, paths); end
242
+
243
+ def each_with_info; end
244
+ end
245
+
246
+ class ActionView::CollectionRenderer::PreloadCollectionIterator < ::ActionView::CollectionRenderer::SameCollectionIterator
247
+ def initialize(collection, path, variables, relation); end
248
+
249
+ def each_with_info; end
250
+ def from_collection(collection); end
251
+ end
252
+
253
+ class ActionView::CollectionRenderer::SameCollectionIterator < ::ActionView::CollectionRenderer::CollectionIterator
254
+ def initialize(collection, path, variables); end
255
+
256
+ def each_with_info; end
257
+ def from_collection(collection); end
258
+ end
259
+
260
+ module ActionView::Context
261
+ def _layout_for(name = T.unsafe(nil)); end
262
+ def _prepare_context; end
263
+ def output_buffer; end
264
+ def output_buffer=(_); end
265
+ def view_flow; end
266
+ def view_flow=(_); end
267
+ end
268
+
269
+ class ActionView::Digestor
270
+ class << self
271
+ def digest(name:, finder:, format: T.unsafe(nil), dependencies: T.unsafe(nil)); end
272
+ def logger; end
273
+ def tree(name, finder, partial = T.unsafe(nil), seen = T.unsafe(nil)); end
274
+
275
+ private
276
+
277
+ def find_template(finder, name, prefixes, partial, keys); end
278
+ end
279
+ end
280
+
281
+ class ActionView::Digestor::Injected < ::ActionView::Digestor::Node
282
+ def digest(finder, _ = T.unsafe(nil)); end
283
+ end
284
+
285
+ class ActionView::Digestor::Missing < ::ActionView::Digestor::Node
286
+ def digest(finder, _ = T.unsafe(nil)); end
287
+ end
288
+
289
+ class ActionView::Digestor::Node
290
+ def initialize(name, logical_name, template, children = T.unsafe(nil)); end
291
+
292
+ def children; end
293
+ def dependency_digest(finder, stack); end
294
+ def digest(finder, stack = T.unsafe(nil)); end
295
+ def logical_name; end
296
+ def name; end
297
+ def template; end
298
+ def to_dep_map; end
299
+
300
+ class << self
301
+ def create(name, logical_name, template, partial); end
302
+ end
303
+ end
304
+
305
+ class ActionView::Digestor::NullLogger
306
+ class << self
307
+ def debug(_); end
308
+ def error(_); end
309
+ end
310
+ end
311
+
312
+ class ActionView::Digestor::Partial < ::ActionView::Digestor::Node
313
+ end
314
+
315
+ ActionView::ENCODING_FLAG = T.let(T.unsafe(nil), String)
316
+
317
+ class ActionView::EncodingError < ::StandardError
318
+ end
319
+
320
+ class ActionView::FallbackFileSystemResolver < ::ActionView::FileSystemResolver
321
+ def build_unbound_template(template, _); end
322
+ def reject_files_external_to_app(files); end
323
+
324
+ class << self
325
+ def instances; end
326
+ end
327
+ end
328
+
329
+ class ActionView::FileSystemResolver < ::ActionView::PathResolver
330
+ def initialize(path, pattern = T.unsafe(nil)); end
331
+
332
+ def ==(resolver); end
333
+ def eql?(resolver); end
334
+ def path; end
335
+ def to_path; end
336
+ def to_s; end
337
+ end
338
+
339
+ module ActionView::Helpers
340
+ include(::ActiveSupport::Benchmarkable)
341
+ include(::ActionView::Helpers::ActiveModelHelper)
342
+ include(::ActionView::Helpers::AssetUrlHelper)
343
+ include(::ActionView::Helpers::AtomFeedHelper)
344
+ include(::ActionView::Helpers::CacheHelper)
345
+ include(::ActionView::Helpers::SanitizeHelper)
346
+ include(::ActionView::Helpers::CaptureHelper)
347
+ include(::ActionView::Helpers::ControllerHelper)
348
+ include(::ActionView::Helpers::CspHelper)
349
+ include(::ActionView::Helpers::CsrfHelper)
350
+ include(::ActionView::Helpers::DateHelper)
351
+ include(::ActionView::Helpers::OutputSafetyHelper)
352
+ include(::ActionView::Helpers::TagHelper)
353
+ include(::ActionView::Helpers::DebugHelper)
354
+ include(::ActionView::Helpers::TextHelper)
355
+ include(::ActionView::Helpers::FormOptionsHelper)
356
+ include(::ActionView::Helpers::JavaScriptHelper)
357
+ include(::ActionView::Helpers::NumberHelper)
358
+ include(::ActionView::Helpers::RenderingHelper)
359
+ extend(::ActiveSupport::Autoload)
360
+ extend(::ActiveSupport::Concern)
361
+
362
+ include(::ActionView::Helpers::TagHelper)
363
+ include(::ActionView::Helpers::AssetTagHelper)
364
+ include(::ActionView::Helpers::UrlHelper)
365
+ include(::ActionView::Helpers::SanitizeHelper)
366
+ include(::ActionView::Helpers::TextHelper)
367
+ include(::ActionView::Helpers::FormTagHelper)
368
+ include(::ActionView::Helpers::FormHelper)
369
+ include(::ActionView::Helpers::TranslationHelper)
370
+
371
+ class << self
372
+ def eager_load!; end
373
+ end
374
+ end
375
+
376
+ module ActionView::Helpers::ActiveModelHelper
377
+ end
378
+
379
+ module ActionView::Helpers::ActiveModelInstanceTag
380
+ def content_tag(type, options, *_); end
381
+ def error_message; end
382
+ def error_wrapping(html_tag); end
383
+ def object; end
384
+ def tag(type, options, *_); end
385
+
386
+ private
387
+
388
+ def object_has_errors?; end
389
+ def select_markup_helper?(type); end
390
+ def tag_generate_errors?(options); end
391
+ end
392
+
393
+ module ActionView::Helpers::AssetTagHelper
394
+ include(::ActionView::Helpers::AssetUrlHelper)
395
+ extend(::ActiveSupport::Concern)
396
+
397
+ include(::ActionView::Helpers::TagHelper)
398
+
399
+ def audio_tag(*sources); end
400
+ def auto_discovery_link_tag(type = T.unsafe(nil), url_options = T.unsafe(nil), tag_options = T.unsafe(nil)); end
401
+ def favicon_link_tag(source = T.unsafe(nil), options = T.unsafe(nil)); end
402
+ def image_tag(source, options = T.unsafe(nil)); end
403
+ def javascript_include_tag(*sources); end
404
+ def preload_link_tag(source, options = T.unsafe(nil)); end
405
+ def stylesheet_link_tag(*sources); end
406
+ def video_tag(*sources); end
407
+
408
+ private
409
+
410
+ def check_for_image_tag_errors(options); end
411
+ def extract_dimensions(size); end
412
+ def multiple_sources_tag_builder(type, sources); end
413
+ def resolve_image_source(source, skip_pipeline); end
414
+ def resolve_link_as(extname, mime_type); end
415
+ end
416
+
417
+ module ActionView::Helpers::AssetUrlHelper
418
+ def asset_path(source, options = T.unsafe(nil)); end
419
+ def asset_url(source, options = T.unsafe(nil)); end
420
+ def audio_path(source, options = T.unsafe(nil)); end
421
+ def audio_url(source, options = T.unsafe(nil)); end
422
+ def compute_asset_extname(source, options = T.unsafe(nil)); end
423
+ def compute_asset_host(source = T.unsafe(nil), options = T.unsafe(nil)); end
424
+ def compute_asset_path(source, options = T.unsafe(nil)); end
425
+ def font_path(source, options = T.unsafe(nil)); end
426
+ def font_url(source, options = T.unsafe(nil)); end
427
+ def image_path(source, options = T.unsafe(nil)); end
428
+ def image_url(source, options = T.unsafe(nil)); end
429
+ def javascript_path(source, options = T.unsafe(nil)); end
430
+ def javascript_url(source, options = T.unsafe(nil)); end
431
+ def path_to_asset(source, options = T.unsafe(nil)); end
432
+ def path_to_audio(source, options = T.unsafe(nil)); end
433
+ def path_to_font(source, options = T.unsafe(nil)); end
434
+ def path_to_image(source, options = T.unsafe(nil)); end
435
+ def path_to_javascript(source, options = T.unsafe(nil)); end
436
+ def path_to_stylesheet(source, options = T.unsafe(nil)); end
437
+ def path_to_video(source, options = T.unsafe(nil)); end
438
+ def public_compute_asset_path(source, options = T.unsafe(nil)); end
439
+ def stylesheet_path(source, options = T.unsafe(nil)); end
440
+ def stylesheet_url(source, options = T.unsafe(nil)); end
441
+ def url_to_asset(source, options = T.unsafe(nil)); end
442
+ def url_to_audio(source, options = T.unsafe(nil)); end
443
+ def url_to_font(source, options = T.unsafe(nil)); end
444
+ def url_to_image(source, options = T.unsafe(nil)); end
445
+ def url_to_javascript(source, options = T.unsafe(nil)); end
446
+ def url_to_stylesheet(source, options = T.unsafe(nil)); end
447
+ def url_to_video(source, options = T.unsafe(nil)); end
448
+ def video_path(source, options = T.unsafe(nil)); end
449
+ def video_url(source, options = T.unsafe(nil)); end
450
+ end
451
+
452
+ ActionView::Helpers::AssetUrlHelper::ASSET_EXTENSIONS = T.let(T.unsafe(nil), Hash)
453
+
454
+ ActionView::Helpers::AssetUrlHelper::ASSET_PUBLIC_DIRECTORIES = T.let(T.unsafe(nil), Hash)
455
+
456
+ ActionView::Helpers::AssetUrlHelper::URI_REGEXP = T.let(T.unsafe(nil), Regexp)
457
+
458
+ module ActionView::Helpers::AtomFeedHelper
459
+ def atom_feed(options = T.unsafe(nil), &block); end
460
+ end
461
+
462
+ class ActionView::Helpers::AtomFeedHelper::AtomBuilder
463
+ def initialize(xml); end
464
+
465
+
466
+ private
467
+
468
+ def method_missing(method, *arguments, &block); end
469
+ def xhtml_block?(method, arguments); end
470
+ end
471
+
472
+ ActionView::Helpers::AtomFeedHelper::AtomBuilder::XHTML_TAG_NAMES = T.let(T.unsafe(nil), Set)
473
+
474
+ class ActionView::Helpers::AtomFeedHelper::AtomFeedBuilder < ::ActionView::Helpers::AtomFeedHelper::AtomBuilder
475
+ def initialize(xml, view, feed_options = T.unsafe(nil)); end
476
+
477
+ def entry(record, options = T.unsafe(nil)); end
478
+ def updated(date_or_time = T.unsafe(nil)); end
479
+ end
480
+
481
+ module ActionView::Helpers::CacheHelper
482
+ def cache(name = T.unsafe(nil), options = T.unsafe(nil), &block); end
483
+ def cache_fragment_name(name = T.unsafe(nil), skip_digest: T.unsafe(nil), virtual_path: T.unsafe(nil), digest_path: T.unsafe(nil)); end
484
+ def cache_if(condition, name = T.unsafe(nil), options = T.unsafe(nil), &block); end
485
+ def cache_unless(condition, name = T.unsafe(nil), options = T.unsafe(nil), &block); end
486
+ def digest_path_from_template(template); end
487
+
488
+ private
489
+
490
+ def fragment_for(name = T.unsafe(nil), options = T.unsafe(nil), &block); end
491
+ def fragment_name_with_digest(name, virtual_path, digest_path); end
492
+ def read_fragment_for(name, options); end
493
+ def write_fragment_for(name, options); end
494
+ end
495
+
496
+ module ActionView::Helpers::CaptureHelper
497
+ def capture(*args); end
498
+ def content_for(name, content = T.unsafe(nil), options = T.unsafe(nil), &block); end
499
+ def content_for?(name); end
500
+ def provide(name, content = T.unsafe(nil), &block); end
501
+ def with_output_buffer(buf = T.unsafe(nil)); end
502
+ end
503
+
504
+ module ActionView::Helpers::ControllerHelper
505
+ def action_name(*args, &block); end
506
+ def assign_controller(controller); end
507
+ def controller; end
508
+ def controller=(_); end
509
+ def controller_name(*args, &block); end
510
+ def controller_path(*args, &block); end
511
+ def cookies(*args, &block); end
512
+ def flash(*args, &block); end
513
+ def headers(*args, &block); end
514
+ def logger; end
515
+ def params(*args, &block); end
516
+ def request; end
517
+ def request=(_); end
518
+ def request_forgery_protection_token(*args, &block); end
519
+ def respond_to?(method_name, include_private = T.unsafe(nil)); end
520
+ def response(*args, &block); end
521
+ def session(*args, &block); end
522
+ end
523
+
524
+ ActionView::Helpers::ControllerHelper::CONTROLLER_DELEGATES = T.let(T.unsafe(nil), Array)
525
+
526
+ module ActionView::Helpers::CspHelper
527
+ def csp_meta_tag(**options); end
528
+ end
529
+
530
+ module ActionView::Helpers::CsrfHelper
531
+ def csrf_meta_tag; end
532
+ def csrf_meta_tags; end
533
+ end
534
+
535
+ module ActionView::Helpers::DateHelper
536
+ def date_select(object_name, method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end
537
+ def datetime_select(object_name, method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end
538
+ def distance_of_time_in_words(from_time, to_time = T.unsafe(nil), options = T.unsafe(nil)); end
539
+ def distance_of_time_in_words_to_now(from_time, options = T.unsafe(nil)); end
540
+ def select_date(date = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil)); end
541
+ def select_datetime(datetime = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil)); end
542
+ def select_day(date, options = T.unsafe(nil), html_options = T.unsafe(nil)); end
543
+ def select_hour(datetime, options = T.unsafe(nil), html_options = T.unsafe(nil)); end
544
+ def select_minute(datetime, options = T.unsafe(nil), html_options = T.unsafe(nil)); end
545
+ def select_month(date, options = T.unsafe(nil), html_options = T.unsafe(nil)); end
546
+ def select_second(datetime, options = T.unsafe(nil), html_options = T.unsafe(nil)); end
547
+ def select_time(datetime = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil)); end
548
+ def select_year(date, options = T.unsafe(nil), html_options = T.unsafe(nil)); end
549
+ def time_ago_in_words(from_time, options = T.unsafe(nil)); end
550
+ def time_select(object_name, method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end
551
+ def time_tag(date_or_time, *args, &block); end
552
+
553
+ private
554
+
555
+ def normalize_distance_of_time_argument_to_time(value); end
556
+ end
557
+
558
+ ActionView::Helpers::DateHelper::MINUTES_IN_QUARTER_YEAR = T.let(T.unsafe(nil), Integer)
559
+
560
+ ActionView::Helpers::DateHelper::MINUTES_IN_THREE_QUARTERS_YEAR = T.let(T.unsafe(nil), Integer)
561
+
562
+ ActionView::Helpers::DateHelper::MINUTES_IN_YEAR = T.let(T.unsafe(nil), Integer)
563
+
564
+ class ActionView::Helpers::DateTimeSelector
565
+ include(::ActionView::Helpers::CaptureHelper)
566
+ include(::ActionView::Helpers::OutputSafetyHelper)
567
+ include(::ActionView::Helpers::TagHelper)
568
+
569
+ def initialize(datetime, options = T.unsafe(nil), html_options = T.unsafe(nil)); end
570
+
571
+ def select_date; end
572
+ def select_datetime; end
573
+ def select_day; end
574
+ def select_hour; end
575
+ def select_minute; end
576
+ def select_month; end
577
+ def select_second; end
578
+ def select_time; end
579
+ def select_year; end
580
+
581
+ private
582
+
583
+ def build_hidden(type, value); end
584
+ def build_options(selected, options = T.unsafe(nil)); end
585
+ def build_options_and_select(type, selected, options = T.unsafe(nil)); end
586
+ def build_select(type, select_options_as_html); end
587
+ def build_selects_from_types(order); end
588
+ def build_year_options(selected, options = T.unsafe(nil)); end
589
+ def css_class_attribute(type, html_options_class, options); end
590
+ def date_order; end
591
+ def day; end
592
+ def hour; end
593
+ def input_id_from_type(type); end
594
+ def input_name_from_type(type); end
595
+ def min; end
596
+ def month; end
597
+ def month_name(number); end
598
+ def month_names; end
599
+ def prompt_option_tag(type, options); end
600
+ def sec; end
601
+ def separator(type); end
602
+ def set_day_if_discarded; end
603
+ def translated_date_order; end
604
+ def translated_month_names; end
605
+ def year; end
606
+ def year_name(number); end
607
+ end
608
+
609
+ ActionView::Helpers::DateTimeSelector::AMPM_TRANSLATION = T.let(T.unsafe(nil), Hash)
610
+
611
+ ActionView::Helpers::DateTimeSelector::DEFAULT_PREFIX = T.let(T.unsafe(nil), String)
612
+
613
+ ActionView::Helpers::DateTimeSelector::POSITION = T.let(T.unsafe(nil), Hash)
614
+
615
+ module ActionView::Helpers::DebugHelper
616
+ include(::ActionView::Helpers::CaptureHelper)
617
+ include(::ActionView::Helpers::OutputSafetyHelper)
618
+ include(::ActionView::Helpers::TagHelper)
619
+
620
+ def debug(object); end
621
+ end
622
+
623
+ class ActionView::Helpers::FormBuilder
624
+ include(::ActionView::ModelNaming)
625
+
626
+ def initialize(object_name, object, template, options); end
627
+
628
+ def button(value = T.unsafe(nil), options = T.unsafe(nil), &block); end
629
+ def check_box(method, options = T.unsafe(nil), checked_value = T.unsafe(nil), unchecked_value = T.unsafe(nil)); end
630
+ def collection_check_boxes(method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end
631
+ def collection_radio_buttons(method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end
632
+ def collection_select(method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end
633
+ def color_field(method, options = T.unsafe(nil)); end
634
+ def date_field(method, options = T.unsafe(nil)); end
635
+ def date_select(method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end
636
+ def datetime_field(method, options = T.unsafe(nil)); end
637
+ def datetime_local_field(method, options = T.unsafe(nil)); end
638
+ def datetime_select(method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end
639
+ def email_field(method, options = T.unsafe(nil)); end
640
+ def emitted_hidden_id?; end
641
+ def field_helpers; end
642
+ def field_helpers=(_); end
643
+ def field_helpers?; end
644
+ def fields(scope = T.unsafe(nil), model: T.unsafe(nil), **options, &block); end
645
+ def fields_for(record_name, record_object = T.unsafe(nil), fields_options = T.unsafe(nil), &block); end
646
+ def file_field(method, options = T.unsafe(nil)); end
647
+ def grouped_collection_select(method, collection, group_method, group_label_method, option_key_method, option_value_method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end
648
+ def hidden_field(method, options = T.unsafe(nil)); end
649
+ def index; end
650
+ def label(method, text = T.unsafe(nil), options = T.unsafe(nil), &block); end
651
+ def month_field(method, options = T.unsafe(nil)); end
652
+ def multipart; end
653
+ def multipart=(multipart); end
654
+ def multipart?; end
655
+ def number_field(method, options = T.unsafe(nil)); end
656
+ def object; end
657
+ def object=(_); end
658
+ def object_name; end
659
+ def object_name=(_); end
660
+ def options; end
661
+ def options=(_); end
662
+ def password_field(method, options = T.unsafe(nil)); end
663
+ def phone_field(method, options = T.unsafe(nil)); end
664
+ def radio_button(method, tag_value, options = T.unsafe(nil)); end
665
+ def range_field(method, options = T.unsafe(nil)); end
666
+ def rich_text_area(method, options = T.unsafe(nil)); end
667
+ def search_field(method, options = T.unsafe(nil)); end
668
+ def select(method, choices = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end
669
+ def submit(value = T.unsafe(nil), options = T.unsafe(nil)); end
670
+ def telephone_field(method, options = T.unsafe(nil)); end
671
+ def text_area(method, options = T.unsafe(nil)); end
672
+ def text_field(method, options = T.unsafe(nil)); end
673
+ def time_field(method, options = T.unsafe(nil)); end
674
+ def time_select(method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end
675
+ def time_zone_select(method, priority_zones = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil)); end
676
+ def to_model; end
677
+ def to_partial_path; end
678
+ def url_field(method, options = T.unsafe(nil)); end
679
+ def week_field(method, options = T.unsafe(nil)); end
680
+
681
+ private
682
+
683
+ def convert_to_legacy_options(options); end
684
+ def fields_for_nested_model(name, object, fields_options, block); end
685
+ def fields_for_with_nested_attributes(association_name, association, options, block); end
686
+ def nested_attributes_association?(association_name); end
687
+ def nested_child_index(name); end
688
+ def objectify_options(options); end
689
+ def submit_default_value; end
690
+
691
+ class << self
692
+ def _to_partial_path; end
693
+ def field_helpers; end
694
+ def field_helpers=(value); end
695
+ def field_helpers?; end
696
+ end
697
+ end
698
+
699
+ module ActionView::Helpers::FormHelper
700
+ include(::ActionView::ModelNaming)
701
+ include(::ActionView::RecordIdentifier)
702
+ extend(::ActiveSupport::Concern)
703
+
704
+ include(::ActionView::Helpers::TagHelper)
705
+ include(::ActionView::Helpers::UrlHelper)
706
+ include(::ActionView::Helpers::SanitizeHelper)
707
+ include(::ActionView::Helpers::TextHelper)
708
+ include(::ActionView::Helpers::FormTagHelper)
709
+
710
+ def check_box(object_name, method, options = T.unsafe(nil), checked_value = T.unsafe(nil), unchecked_value = T.unsafe(nil)); end
711
+ def color_field(object_name, method, options = T.unsafe(nil)); end
712
+ def date_field(object_name, method, options = T.unsafe(nil)); end
713
+ def datetime_field(object_name, method, options = T.unsafe(nil)); end
714
+ def datetime_local_field(object_name, method, options = T.unsafe(nil)); end
715
+ def default_form_builder; end
716
+ def default_form_builder=(_); end
717
+ def email_field(object_name, method, options = T.unsafe(nil)); end
718
+ def fields(scope = T.unsafe(nil), model: T.unsafe(nil), **options, &block); end
719
+ def fields_for(record_name, record_object = T.unsafe(nil), options = T.unsafe(nil), &block); end
720
+ def file_field(object_name, method, options = T.unsafe(nil)); end
721
+ def form_for(record, options = T.unsafe(nil), &block); end
722
+ def form_with(model: T.unsafe(nil), scope: T.unsafe(nil), url: T.unsafe(nil), format: T.unsafe(nil), **options, &block); end
723
+ def form_with_generates_ids; end
724
+ def form_with_generates_ids=(val); end
725
+ def form_with_generates_remote_forms; end
726
+ def form_with_generates_remote_forms=(val); end
727
+ def hidden_field(object_name, method, options = T.unsafe(nil)); end
728
+ def label(object_name, method, content_or_options = T.unsafe(nil), options = T.unsafe(nil), &block); end
729
+ def month_field(object_name, method, options = T.unsafe(nil)); end
730
+ def number_field(object_name, method, options = T.unsafe(nil)); end
731
+ def password_field(object_name, method, options = T.unsafe(nil)); end
732
+ def phone_field(object_name, method, options = T.unsafe(nil)); end
733
+ def radio_button(object_name, method, tag_value, options = T.unsafe(nil)); end
734
+ def range_field(object_name, method, options = T.unsafe(nil)); end
735
+ def rich_text_area(object_name, method, options = T.unsafe(nil)); end
736
+ def search_field(object_name, method, options = T.unsafe(nil)); end
737
+ def telephone_field(object_name, method, options = T.unsafe(nil)); end
738
+ def text_area(object_name, method, options = T.unsafe(nil)); end
739
+ def text_field(object_name, method, options = T.unsafe(nil)); end
740
+ def time_field(object_name, method, options = T.unsafe(nil)); end
741
+ def url_field(object_name, method, options = T.unsafe(nil)); end
742
+ def week_field(object_name, method, options = T.unsafe(nil)); end
743
+
744
+ private
745
+
746
+ def apply_form_for_options!(record, object, options); end
747
+ def default_form_builder_class; end
748
+ def html_options_for_form_with(url_for_options = T.unsafe(nil), model = T.unsafe(nil), html: T.unsafe(nil), local: T.unsafe(nil), skip_enforcing_utf8: T.unsafe(nil), **options); end
749
+ def instantiate_builder(record_name, record_object, options); end
750
+
751
+ class << self
752
+ def form_with_generates_ids; end
753
+ def form_with_generates_ids=(val); end
754
+ def form_with_generates_remote_forms; end
755
+ def form_with_generates_remote_forms=(val); end
756
+ end
757
+ end
758
+
759
+ module ActionView::Helpers::FormOptionsHelper
760
+ include(::ActionView::Helpers::SanitizeHelper)
761
+ include(::ActionView::Helpers::CaptureHelper)
762
+ include(::ActionView::Helpers::OutputSafetyHelper)
763
+ include(::ActionView::Helpers::TagHelper)
764
+ include(::ActionView::Helpers::TextHelper)
765
+ extend(::ActionView::Helpers::SanitizeHelper::ClassMethods)
766
+
767
+ def collection_check_boxes(object, method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end
768
+ def collection_radio_buttons(object, method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end
769
+ def collection_select(object, method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end
770
+ def grouped_collection_select(object, method, collection, group_method, group_label_method, option_key_method, option_value_method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end
771
+ def grouped_options_for_select(grouped_options, selected_key = T.unsafe(nil), options = T.unsafe(nil)); end
772
+ def option_groups_from_collection_for_select(collection, group_method, group_label_method, option_key_method, option_value_method, selected_key = T.unsafe(nil)); end
773
+ def options_for_select(container, selected = T.unsafe(nil)); end
774
+ def options_from_collection_for_select(collection, value_method, text_method, selected = T.unsafe(nil)); end
775
+ def select(object, method, choices = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end
776
+ def time_zone_options_for_select(selected = T.unsafe(nil), priority_zones = T.unsafe(nil), model = T.unsafe(nil)); end
777
+ def time_zone_select(object, method, priority_zones = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil)); end
778
+
779
+ private
780
+
781
+ def extract_selected_and_disabled(selected); end
782
+ def extract_values_from_collection(collection, value_method, selected); end
783
+ def option_html_attributes(element); end
784
+ def option_text_and_value(option); end
785
+ def option_value_selected?(value, selected); end
786
+ def prompt_text(prompt); end
787
+ def public_or_deprecated_send(item, value); end
788
+ def value_for_collection(item, value); end
789
+ end
790
+
791
+ module ActionView::Helpers::FormTagHelper
792
+ extend(::ActiveSupport::Concern)
793
+
794
+ include(::ActionView::Helpers::TagHelper)
795
+ include(::ActionView::Helpers::UrlHelper)
796
+ include(::ActionView::Helpers::SanitizeHelper)
797
+ include(::ActionView::Helpers::TextHelper)
798
+
799
+ def button_tag(content_or_options = T.unsafe(nil), options = T.unsafe(nil), &block); end
800
+ def check_box_tag(name, value = T.unsafe(nil), checked = T.unsafe(nil), options = T.unsafe(nil)); end
801
+ def color_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end
802
+ def date_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end
803
+ def datetime_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end
804
+ def datetime_local_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end
805
+ def default_enforce_utf8; end
806
+ def default_enforce_utf8=(val); end
807
+ def email_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end
808
+ def embed_authenticity_token_in_remote_forms; end
809
+ def embed_authenticity_token_in_remote_forms=(val); end
810
+ def field_set_tag(legend = T.unsafe(nil), options = T.unsafe(nil), &block); end
811
+ def file_field_tag(name, options = T.unsafe(nil)); end
812
+ def form_tag(url_for_options = T.unsafe(nil), options = T.unsafe(nil), &block); end
813
+ def hidden_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end
814
+ def image_submit_tag(source, options = T.unsafe(nil)); end
815
+ def label_tag(name = T.unsafe(nil), content_or_options = T.unsafe(nil), options = T.unsafe(nil), &block); end
816
+ def month_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end
817
+ def number_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end
818
+ def password_field_tag(name = T.unsafe(nil), value = T.unsafe(nil), options = T.unsafe(nil)); end
819
+ def phone_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end
820
+ def radio_button_tag(name, value, checked = T.unsafe(nil), options = T.unsafe(nil)); end
821
+ def range_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end
822
+ def search_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end
823
+ def select_tag(name, option_tags = T.unsafe(nil), options = T.unsafe(nil)); end
824
+ def submit_tag(value = T.unsafe(nil), options = T.unsafe(nil)); end
825
+ def telephone_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end
826
+ def text_area_tag(name, content = T.unsafe(nil), options = T.unsafe(nil)); end
827
+ def text_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end
828
+ def time_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end
829
+ def url_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end
830
+ def utf8_enforcer_tag; end
831
+ def week_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end
832
+
833
+ private
834
+
835
+ def convert_direct_upload_option_to_url(options); end
836
+ def extra_tags_for_form(html_options); end
837
+ def form_tag_html(html_options); end
838
+ def form_tag_with_body(html_options, content); end
839
+ def html_options_for_form(url_for_options, options); end
840
+ def sanitize_to_id(name); end
841
+ def set_default_disable_with(value, tag_options); end
842
+
843
+ class << self
844
+ def default_enforce_utf8; end
845
+ def default_enforce_utf8=(val); end
846
+ def embed_authenticity_token_in_remote_forms; end
847
+ def embed_authenticity_token_in_remote_forms=(val); end
848
+ end
849
+ end
850
+
851
+ module ActionView::Helpers::JavaScriptHelper
852
+ def escape_javascript(javascript); end
853
+ def j(javascript); end
854
+ def javascript_cdata_section(content); end
855
+ def javascript_tag(content_or_options_with_block = T.unsafe(nil), html_options = T.unsafe(nil), &block); end
856
+ end
857
+
858
+ ActionView::Helpers::JavaScriptHelper::JS_ESCAPE_MAP = T.let(T.unsafe(nil), Hash)
859
+
860
+ module ActionView::Helpers::NumberHelper
861
+ def number_to_currency(number, options = T.unsafe(nil)); end
862
+ def number_to_human(number, options = T.unsafe(nil)); end
863
+ def number_to_human_size(number, options = T.unsafe(nil)); end
864
+ def number_to_percentage(number, options = T.unsafe(nil)); end
865
+ def number_to_phone(number, options = T.unsafe(nil)); end
866
+ def number_with_delimiter(number, options = T.unsafe(nil)); end
867
+ def number_with_precision(number, options = T.unsafe(nil)); end
868
+
869
+ private
870
+
871
+ def delegate_number_helper_method(method, number, options); end
872
+ def escape_units(units); end
873
+ def escape_unsafe_options(options); end
874
+ def parse_float(number, raise_error); end
875
+ def valid_float?(number); end
876
+ def wrap_with_output_safety_handling(number, raise_on_invalid, &block); end
877
+ end
878
+
879
+ class ActionView::Helpers::NumberHelper::InvalidNumberError < ::StandardError
880
+ def initialize(number); end
881
+
882
+ def number; end
883
+ def number=(_); end
884
+ end
885
+
886
+ module ActionView::Helpers::OutputSafetyHelper
887
+ def raw(stringish); end
888
+ def safe_join(array, sep = T.unsafe(nil)); end
889
+ def to_sentence(array, options = T.unsafe(nil)); end
890
+ end
891
+
892
+ module ActionView::Helpers::RenderingHelper
893
+ def _layout_for(*args, &block); end
894
+ def render(options = T.unsafe(nil), locals = T.unsafe(nil), &block); end
895
+ end
896
+
897
+ module ActionView::Helpers::SanitizeHelper
898
+ extend(::ActiveSupport::Concern)
899
+
900
+ mixes_in_class_methods(::ActionView::Helpers::SanitizeHelper::ClassMethods)
901
+
902
+ def sanitize(html, options = T.unsafe(nil)); end
903
+ def sanitize_css(style); end
904
+ def strip_links(html); end
905
+ def strip_tags(html); end
906
+ end
907
+
908
+ module ActionView::Helpers::SanitizeHelper::ClassMethods
909
+ def full_sanitizer; end
910
+ def full_sanitizer=(_); end
911
+ def link_sanitizer; end
912
+ def link_sanitizer=(_); end
913
+ def safe_list_sanitizer; end
914
+ def safe_list_sanitizer=(_); end
915
+ def sanitized_allowed_attributes; end
916
+ def sanitized_allowed_attributes=(attributes); end
917
+ def sanitized_allowed_css_keywords; end
918
+ def sanitized_allowed_css_keywords=(_); end
919
+ def sanitized_allowed_css_properties; end
920
+ def sanitized_allowed_css_properties=(_); end
921
+ def sanitized_allowed_protocols; end
922
+ def sanitized_allowed_protocols=(_); end
923
+ def sanitized_allowed_tags; end
924
+ def sanitized_allowed_tags=(tags); end
925
+ def sanitized_bad_tags; end
926
+ def sanitized_bad_tags=(_); end
927
+ def sanitized_protocol_separator; end
928
+ def sanitized_protocol_separator=(_); end
929
+ def sanitized_shorthand_css_properties; end
930
+ def sanitized_shorthand_css_properties=(_); end
931
+ def sanitized_uri_attributes; end
932
+ def sanitized_uri_attributes=(_); end
933
+ def sanitizer_vendor; end
934
+
935
+ private
936
+
937
+ def deprecate_option(name); end
938
+ end
939
+
940
+ module ActionView::Helpers::TagHelper
941
+ include(::ActionView::Helpers::CaptureHelper)
942
+ include(::ActionView::Helpers::OutputSafetyHelper)
943
+ extend(::ActiveSupport::Concern)
944
+
945
+ def cdata_section(content); end
946
+ def class_names(*args); end
947
+ def content_tag(name, content_or_options_with_block = T.unsafe(nil), options = T.unsafe(nil), escape = T.unsafe(nil), &block); end
948
+ def escape_once(html); end
949
+ def tag(name = T.unsafe(nil), options = T.unsafe(nil), open = T.unsafe(nil), escape = T.unsafe(nil)); end
950
+
951
+ private
952
+
953
+ def build_tag_values(*args); end
954
+ def tag_builder; end
955
+
956
+ class << self
957
+ def build_tag_values(*args); end
958
+ end
959
+ end
960
+
961
+ ActionView::Helpers::TagHelper::BOOLEAN_ATTRIBUTES = T.let(T.unsafe(nil), Set)
962
+
963
+ ActionView::Helpers::TagHelper::PRE_CONTENT_STRINGS = T.let(T.unsafe(nil), Hash)
964
+
965
+ ActionView::Helpers::TagHelper::TAG_PREFIXES = T.let(T.unsafe(nil), Set)
966
+
967
+ ActionView::Helpers::TagHelper::TAG_TYPES = T.let(T.unsafe(nil), Hash)
968
+
969
+ class ActionView::Helpers::TagHelper::TagBuilder
970
+ include(::ActionView::Helpers::CaptureHelper)
971
+ include(::ActionView::Helpers::OutputSafetyHelper)
972
+
973
+ def initialize(view_context); end
974
+
975
+ def boolean_tag_option(key); end
976
+ def content_tag_string(name, content, options, escape = T.unsafe(nil)); end
977
+ def tag_option(key, value, escape); end
978
+ def tag_options(options, escape = T.unsafe(nil)); end
979
+ def tag_string(name, content = T.unsafe(nil), escape_attributes: T.unsafe(nil), **options, &block); end
980
+
981
+ private
982
+
983
+ def method_missing(called, *args, **options, &block); end
984
+ def prefix_tag_option(prefix, key, value, escape); end
985
+ def respond_to_missing?(*args); end
986
+ end
987
+
988
+ ActionView::Helpers::TagHelper::TagBuilder::VOID_ELEMENTS = T.let(T.unsafe(nil), Set)
989
+
990
+ module ActionView::Helpers::Tags
991
+ extend(::ActiveSupport::Autoload)
992
+ end
993
+
994
+ class ActionView::Helpers::Tags::Base
995
+ include(::ActionView::Helpers::CaptureHelper)
996
+ include(::ActionView::Helpers::OutputSafetyHelper)
997
+ include(::ActionView::Helpers::TagHelper)
998
+ include(::ActionView::Helpers::UrlHelper)
999
+ include(::ActionView::Helpers::SanitizeHelper)
1000
+ include(::ActionView::Helpers::TextHelper)
1001
+ include(::ActionView::Helpers::FormTagHelper)
1002
+ include(::ActionView::Helpers::ActiveModelInstanceTag)
1003
+ include(::ActionView::Helpers::FormOptionsHelper)
1004
+ extend(::ActionView::Helpers::UrlHelper::ClassMethods)
1005
+ extend(::ActionView::Helpers::SanitizeHelper::ClassMethods)
1006
+
1007
+ def initialize(object_name, method_name, template_object, options = T.unsafe(nil)); end
1008
+
1009
+ def object; end
1010
+ def render; end
1011
+
1012
+ private
1013
+
1014
+ def add_default_name_and_id(options); end
1015
+ def add_default_name_and_id_for_value(tag_value, options); end
1016
+ def add_options(option_tags, options, value = T.unsafe(nil)); end
1017
+ def generate_ids?; end
1018
+ def name_and_id_index(options); end
1019
+ def placeholder_required?(html_options); end
1020
+ def retrieve_autoindex(pre_match); end
1021
+ def retrieve_object(object); end
1022
+ def sanitized_method_name; end
1023
+ def sanitized_object_name; end
1024
+ def sanitized_value(value); end
1025
+ def select_content_tag(option_tags, options, html_options); end
1026
+ def tag_id(index = T.unsafe(nil)); end
1027
+ def tag_name(multiple = T.unsafe(nil), index = T.unsafe(nil)); end
1028
+ def value; end
1029
+ def value_before_type_cast; end
1030
+ def value_came_from_user?; end
1031
+ end
1032
+
1033
+ class ActionView::Helpers::Tags::CheckBox < ::ActionView::Helpers::Tags::Base
1034
+ include(::ActionView::Helpers::Tags::Checkable)
1035
+
1036
+ def initialize(object_name, method_name, template_object, checked_value, unchecked_value, options); end
1037
+
1038
+ def render; end
1039
+
1040
+ private
1041
+
1042
+ def checked?(value); end
1043
+ def hidden_field_for_checkbox(options); end
1044
+ end
1045
+
1046
+ class ActionView::Helpers::Tags::CollectionCheckBoxes < ::ActionView::Helpers::Tags::Base
1047
+ include(::ActionView::Helpers::Tags::CollectionHelpers)
1048
+
1049
+ def render(&block); end
1050
+
1051
+ private
1052
+
1053
+ def hidden_field_name; end
1054
+ def render_component(builder); end
1055
+ end
1056
+
1057
+ class ActionView::Helpers::Tags::CollectionCheckBoxes::CheckBoxBuilder < ::ActionView::Helpers::Tags::CollectionHelpers::Builder
1058
+ def check_box(extra_html_options = T.unsafe(nil)); end
1059
+ end
1060
+
1061
+ class ActionView::Helpers::Tags::CollectionRadioButtons < ::ActionView::Helpers::Tags::Base
1062
+ include(::ActionView::Helpers::Tags::CollectionHelpers)
1063
+
1064
+ def render(&block); end
1065
+
1066
+ private
1067
+
1068
+ def render_component(builder); end
1069
+ end
1070
+
1071
+ class ActionView::Helpers::Tags::CollectionRadioButtons::RadioButtonBuilder < ::ActionView::Helpers::Tags::CollectionHelpers::Builder
1072
+ def radio_button(extra_html_options = T.unsafe(nil)); end
1073
+ end
1074
+
1075
+ class ActionView::Helpers::Tags::CollectionSelect < ::ActionView::Helpers::Tags::Base
1076
+ def initialize(object_name, method_name, template_object, collection, value_method, text_method, options, html_options); end
1077
+
1078
+ def render; end
1079
+ end
1080
+
1081
+ class ActionView::Helpers::Tags::ColorField < ::ActionView::Helpers::Tags::TextField
1082
+ def render; end
1083
+
1084
+ private
1085
+
1086
+ def validate_color_string(string); end
1087
+ end
1088
+
1089
+ class ActionView::Helpers::Tags::DateField < ::ActionView::Helpers::Tags::DatetimeField
1090
+
1091
+ private
1092
+
1093
+ def format_date(value); end
1094
+ end
1095
+
1096
+ class ActionView::Helpers::Tags::DateSelect < ::ActionView::Helpers::Tags::Base
1097
+ def initialize(object_name, method_name, template_object, options, html_options); end
1098
+
1099
+ def render; end
1100
+
1101
+ private
1102
+
1103
+ def datetime_selector(options, html_options); end
1104
+ def default_datetime(options); end
1105
+ def select_type; end
1106
+
1107
+ class << self
1108
+ def select_type; end
1109
+ end
1110
+ end
1111
+
1112
+ class ActionView::Helpers::Tags::DatetimeField < ::ActionView::Helpers::Tags::TextField
1113
+ def render; end
1114
+
1115
+ private
1116
+
1117
+ def datetime_value(value); end
1118
+ def format_date(value); end
1119
+ end
1120
+
1121
+ class ActionView::Helpers::Tags::DatetimeLocalField < ::ActionView::Helpers::Tags::DatetimeField
1122
+
1123
+ private
1124
+
1125
+ def format_date(value); end
1126
+
1127
+ class << self
1128
+ def field_type; end
1129
+ end
1130
+ end
1131
+
1132
+ class ActionView::Helpers::Tags::DatetimeSelect < ::ActionView::Helpers::Tags::DateSelect
1133
+ end
1134
+
1135
+ class ActionView::Helpers::Tags::EmailField < ::ActionView::Helpers::Tags::TextField
1136
+ end
1137
+
1138
+ class ActionView::Helpers::Tags::FileField < ::ActionView::Helpers::Tags::TextField
1139
+ end
1140
+
1141
+ class ActionView::Helpers::Tags::GroupedCollectionSelect < ::ActionView::Helpers::Tags::Base
1142
+ def initialize(object_name, method_name, template_object, collection, group_method, group_label_method, option_key_method, option_value_method, options, html_options); end
1143
+
1144
+ def render; end
1145
+ end
1146
+
1147
+ class ActionView::Helpers::Tags::HiddenField < ::ActionView::Helpers::Tags::TextField
1148
+ end
1149
+
1150
+ class ActionView::Helpers::Tags::Label < ::ActionView::Helpers::Tags::Base
1151
+ def initialize(object_name, method_name, template_object, content_or_options = T.unsafe(nil), options = T.unsafe(nil)); end
1152
+
1153
+ def render(&block); end
1154
+
1155
+ private
1156
+
1157
+ def render_component(builder); end
1158
+ end
1159
+
1160
+ class ActionView::Helpers::Tags::Label::LabelBuilder
1161
+ def initialize(template_object, object_name, method_name, object, tag_value); end
1162
+
1163
+ def object; end
1164
+ def translation; end
1165
+ end
1166
+
1167
+ class ActionView::Helpers::Tags::MonthField < ::ActionView::Helpers::Tags::DatetimeField
1168
+
1169
+ private
1170
+
1171
+ def format_date(value); end
1172
+ end
1173
+
1174
+ class ActionView::Helpers::Tags::NumberField < ::ActionView::Helpers::Tags::TextField
1175
+ def render; end
1176
+ end
1177
+
1178
+ class ActionView::Helpers::Tags::PasswordField < ::ActionView::Helpers::Tags::TextField
1179
+ def render; end
1180
+ end
1181
+
1182
+ module ActionView::Helpers::Tags::Placeholderable
1183
+ def initialize(*_); end
1184
+ end
1185
+
1186
+ class ActionView::Helpers::Tags::RadioButton < ::ActionView::Helpers::Tags::Base
1187
+ include(::ActionView::Helpers::Tags::Checkable)
1188
+
1189
+ def initialize(object_name, method_name, template_object, tag_value, options); end
1190
+
1191
+ def render; end
1192
+
1193
+ private
1194
+
1195
+ def checked?(value); end
1196
+ end
1197
+
1198
+ class ActionView::Helpers::Tags::RangeField < ::ActionView::Helpers::Tags::NumberField
1199
+ end
1200
+
1201
+ class ActionView::Helpers::Tags::SearchField < ::ActionView::Helpers::Tags::TextField
1202
+ def render; end
1203
+ end
1204
+
1205
+ class ActionView::Helpers::Tags::Select < ::ActionView::Helpers::Tags::Base
1206
+ def initialize(object_name, method_name, template_object, choices, options, html_options); end
1207
+
1208
+ def render; end
1209
+
1210
+ private
1211
+
1212
+ def grouped_choices?; end
1213
+ end
1214
+
1215
+ class ActionView::Helpers::Tags::TelField < ::ActionView::Helpers::Tags::TextField
1216
+ end
1217
+
1218
+ class ActionView::Helpers::Tags::TextArea < ::ActionView::Helpers::Tags::Base
1219
+ include(::ActionView::Helpers::Tags::Placeholderable)
1220
+
1221
+ def render; end
1222
+ end
1223
+
1224
+ class ActionView::Helpers::Tags::TextField < ::ActionView::Helpers::Tags::Base
1225
+ include(::ActionView::Helpers::Tags::Placeholderable)
1226
+
1227
+ def render; end
1228
+
1229
+ private
1230
+
1231
+ def field_type; end
1232
+
1233
+ class << self
1234
+ def field_type; end
1235
+ end
1236
+ end
1237
+
1238
+ class ActionView::Helpers::Tags::TimeField < ::ActionView::Helpers::Tags::DatetimeField
1239
+
1240
+ private
1241
+
1242
+ def format_date(value); end
1243
+ end
1244
+
1245
+ class ActionView::Helpers::Tags::TimeSelect < ::ActionView::Helpers::Tags::DateSelect
1246
+ end
1247
+
1248
+ class ActionView::Helpers::Tags::TimeZoneSelect < ::ActionView::Helpers::Tags::Base
1249
+ def initialize(object_name, method_name, template_object, priority_zones, options, html_options); end
1250
+
1251
+ def render; end
1252
+ end
1253
+
1254
+ class ActionView::Helpers::Tags::Translator
1255
+ def initialize(object, object_name, method_and_value, scope:); end
1256
+
1257
+ def translate; end
1258
+
1259
+ private
1260
+
1261
+ def human_attribute_name; end
1262
+ def i18n_default; end
1263
+ def method_and_value; end
1264
+ def model; end
1265
+ def object_name; end
1266
+ def scope; end
1267
+ end
1268
+
1269
+ class ActionView::Helpers::Tags::UrlField < ::ActionView::Helpers::Tags::TextField
1270
+ end
1271
+
1272
+ class ActionView::Helpers::Tags::WeekField < ::ActionView::Helpers::Tags::DatetimeField
1273
+
1274
+ private
1275
+
1276
+ def format_date(value); end
1277
+ end
1278
+
1279
+ module ActionView::Helpers::TextHelper
1280
+ include(::ActionView::Helpers::OutputSafetyHelper)
1281
+ extend(::ActiveSupport::Concern)
1282
+
1283
+ include(::ActionView::Helpers::SanitizeHelper)
1284
+ include(::ActionView::Helpers::TagHelper)
1285
+
1286
+ def concat(string); end
1287
+ def current_cycle(name = T.unsafe(nil)); end
1288
+ def cycle(first_value, *values); end
1289
+ def excerpt(text, phrase, options = T.unsafe(nil)); end
1290
+ def highlight(text, phrases, options = T.unsafe(nil)); end
1291
+ def pluralize(count, singular, plural_arg = T.unsafe(nil), plural: T.unsafe(nil), locale: T.unsafe(nil)); end
1292
+ def reset_cycle(name = T.unsafe(nil)); end
1293
+ def safe_concat(string); end
1294
+ def simple_format(text, html_options = T.unsafe(nil), options = T.unsafe(nil)); end
1295
+ def truncate(text, options = T.unsafe(nil), &block); end
1296
+ def word_wrap(text, line_width: T.unsafe(nil), break_sequence: T.unsafe(nil)); end
1297
+
1298
+ private
1299
+
1300
+ def cut_excerpt_part(part_position, part, separator, options); end
1301
+ def get_cycle(name); end
1302
+ def set_cycle(name, cycle_object); end
1303
+ def split_paragraphs(text); end
1304
+ end
1305
+
1306
+ class ActionView::Helpers::TextHelper::Cycle
1307
+ def initialize(first_value, *values); end
1308
+
1309
+ def current_value; end
1310
+ def reset; end
1311
+ def to_s; end
1312
+ def values; end
1313
+
1314
+ private
1315
+
1316
+ def next_index; end
1317
+ def previous_index; end
1318
+ def step_index(n); end
1319
+ end
1320
+
1321
+ module ActionView::Helpers::TranslationHelper
1322
+ extend(::ActiveSupport::Concern)
1323
+
1324
+ include(::ActionView::Helpers::TagHelper)
1325
+
1326
+ def l(object, **options); end
1327
+ def localize(object, **options); end
1328
+ def t(key, **options); end
1329
+ def translate(key, **options); end
1330
+
1331
+ private
1332
+
1333
+ def html_safe_translation_key?(key); end
1334
+ def scope_key_by_partial(key); end
1335
+ end
1336
+
1337
+ module ActionView::Helpers::UrlHelper
1338
+ extend(::ActiveSupport::Concern)
1339
+
1340
+ include(::ActionView::Helpers::TagHelper)
1341
+
1342
+ mixes_in_class_methods(::ActionView::Helpers::UrlHelper::ClassMethods)
1343
+
1344
+ def button_to(name = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end
1345
+ def current_page?(options, check_parameters: T.unsafe(nil)); end
1346
+ def link_to(name = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end
1347
+ def link_to_if(condition, name, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end
1348
+ def link_to_unless(condition, name, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end
1349
+ def link_to_unless_current(name, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end
1350
+ def mail_to(email_address, name = T.unsafe(nil), html_options = T.unsafe(nil), &block); end
1351
+ def phone_to(phone_number, name = T.unsafe(nil), html_options = T.unsafe(nil), &block); end
1352
+ def sms_to(phone_number, name = T.unsafe(nil), html_options = T.unsafe(nil), &block); end
1353
+ def url_for(options = T.unsafe(nil)); end
1354
+
1355
+ private
1356
+
1357
+ def _back_url; end
1358
+ def _filtered_referrer; end
1359
+ def add_method_to_attributes!(html_options, method); end
1360
+ def convert_options_to_data_attributes(options, html_options); end
1361
+ def link_to_remote_options?(options); end
1362
+ def method_not_get_method?(method); end
1363
+ def method_tag(method); end
1364
+ def to_form_params(attribute, namespace = T.unsafe(nil)); end
1365
+ def token_tag(token = T.unsafe(nil), form_options: T.unsafe(nil)); end
1366
+ end
1367
+
1368
+ ActionView::Helpers::UrlHelper::BUTTON_TAG_METHOD_VERBS = T.let(T.unsafe(nil), Array)
1369
+
1370
+ module ActionView::Helpers::UrlHelper::ClassMethods
1371
+ def _url_for_modules; end
1372
+ end
1373
+
1374
+ ActionView::Helpers::UrlHelper::STRINGIFIED_COMMON_METHODS = T.let(T.unsafe(nil), Hash)
1375
+
1376
+ class ActionView::I18nProxy < ::I18n::Config
1377
+ def initialize(original_config, lookup_context); end
1378
+
1379
+ def locale; end
1380
+ def locale=(value); end
1381
+ def lookup_context; end
1382
+ def original_config; end
1383
+ end
1384
+
1385
+ module ActionView::Layouts
1386
+ extend(::ActiveSupport::Concern)
1387
+
1388
+ include(::ActionView::ViewPaths)
1389
+ include(::ActionView::Rendering)
1390
+
1391
+ mixes_in_class_methods(::ActionView::Layouts::ClassMethods)
1392
+
1393
+ def initialize(*_); end
1394
+
1395
+ def _layout_conditions(*args, &block); end
1396
+ def _normalize_options(options); end
1397
+ def action_has_layout=(_); end
1398
+ def action_has_layout?; end
1399
+
1400
+ private
1401
+
1402
+ def _conditional_layout?; end
1403
+ def _default_layout(lookup_context, formats, require_layout = T.unsafe(nil)); end
1404
+ def _include_layout?(options); end
1405
+ def _layout(*_); end
1406
+ def _layout_for_option(name); end
1407
+ def _normalize_layout(value); end
1408
+ end
1409
+
1410
+ module ActionView::Layouts::ClassMethods
1411
+ def _write_layout_method; end
1412
+ def inherited(klass); end
1413
+ def layout(layout, conditions = T.unsafe(nil)); end
1414
+
1415
+ private
1416
+
1417
+ def _implied_layout_name; end
1418
+ end
1419
+
1420
+ module ActionView::Layouts::ClassMethods::LayoutConditions
1421
+
1422
+ private
1423
+
1424
+ def _conditional_layout?; end
1425
+ end
1426
+
1427
+ class ActionView::LogSubscriber < ::ActiveSupport::LogSubscriber
1428
+ def initialize; end
1429
+
1430
+ def logger; end
1431
+ def render_collection(event); end
1432
+ def render_layout(event); end
1433
+ def render_partial(event); end
1434
+ def render_template(event); end
1435
+ def start(name, id, payload); end
1436
+
1437
+ private
1438
+
1439
+ def cache_message(payload); end
1440
+ def from_rails_root(string); end
1441
+ def log_rendering_start(payload, name); end
1442
+ def rails_root; end
1443
+ def render_count(payload); end
1444
+ end
1445
+
1446
+ ActionView::LogSubscriber::EMPTY = T.let(T.unsafe(nil), String)
1447
+
1448
+ ActionView::LogSubscriber::VIEWS_PATTERN = T.let(T.unsafe(nil), Regexp)
1449
+
1450
+ class ActionView::LookupContext
1451
+ include(::ActionView::LookupContext::Accessors)
1452
+ include(::ActionView::LookupContext::DetailsCache)
1453
+ include(::ActionView::LookupContext::ViewPaths)
1454
+
1455
+ def initialize(view_paths, details = T.unsafe(nil), prefixes = T.unsafe(nil)); end
1456
+
1457
+ def digest_cache; end
1458
+ def fallbacks; end
1459
+ def fallbacks=(val); end
1460
+ def formats=(values); end
1461
+ def locale; end
1462
+ def locale=(value); end
1463
+ def prefixes; end
1464
+ def prefixes=(_); end
1465
+ def registered_details; end
1466
+ def registered_details=(val); end
1467
+ def rendered_format(*args, &block); end
1468
+ def rendered_format=(*args, &block); end
1469
+ def with_prepended_formats(formats); end
1470
+
1471
+ private
1472
+
1473
+ def initialize_details(target, details); end
1474
+
1475
+ class << self
1476
+ def fallbacks; end
1477
+ def fallbacks=(val); end
1478
+ def register_detail(name, &block); end
1479
+ def registered_details; end
1480
+ def registered_details=(val); end
1481
+ end
1482
+ end
1483
+
1484
+ module ActionView::LookupContext::Accessors
1485
+ def default_formats; end
1486
+ def default_handlers; end
1487
+ def default_locale; end
1488
+ def default_variants; end
1489
+ def formats; end
1490
+ def formats=(value); end
1491
+ def handlers; end
1492
+ def handlers=(value); end
1493
+ def locale; end
1494
+ def locale=(value); end
1495
+ def variants; end
1496
+ def variants=(value); end
1497
+ end
1498
+
1499
+ ActionView::LookupContext::Accessors::DEFAULT_PROCS = T.let(T.unsafe(nil), Hash)
1500
+
1501
+ module ActionView::LookupContext::DetailsCache
1502
+ def cache; end
1503
+ def cache=(_); end
1504
+ def details_key; end
1505
+ def disable_cache; end
1506
+
1507
+ private
1508
+
1509
+ def _set_detail(key, value); end
1510
+ end
1511
+
1512
+ class ActionView::LookupContext::DetailsKey
1513
+ def eql?(_); end
1514
+
1515
+ class << self
1516
+ def clear; end
1517
+ def details_cache_key(details); end
1518
+ def digest_cache(details); end
1519
+ def digest_caches; end
1520
+ def view_context_class(klass); end
1521
+ end
1522
+ end
1523
+
1524
+ module ActionView::LookupContext::ViewPaths
1525
+ def any?(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil)); end
1526
+ def any_templates?(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil)); end
1527
+ def exists?(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil), keys = T.unsafe(nil), **options); end
1528
+ def find(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil), keys = T.unsafe(nil), options = T.unsafe(nil)); end
1529
+ def find_all(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil), keys = T.unsafe(nil), options = T.unsafe(nil)); end
1530
+ def find_file(*args, &block); end
1531
+ def find_template(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil), keys = T.unsafe(nil), options = T.unsafe(nil)); end
1532
+ def html_fallback_for_js; end
1533
+ def template_exists?(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil), keys = T.unsafe(nil), **options); end
1534
+ def view_paths; end
1535
+ def with_fallbacks; end
1536
+
1537
+ private
1538
+
1539
+ def args_for_any(name, prefixes, partial); end
1540
+ def args_for_lookup(name, prefixes, partial, keys, details_options); end
1541
+ def build_view_paths(paths); end
1542
+ def detail_args_for(options); end
1543
+ def detail_args_for_any; end
1544
+ def normalize_name(name, prefixes); end
1545
+ end
1546
+
1547
+ class ActionView::MissingTemplate < ::ActionView::ActionViewError
1548
+ def initialize(paths, path, prefixes, partial, details, *_); end
1549
+
1550
+ def path; end
1551
+ end
1552
+
1553
+ module ActionView::ModelNaming
1554
+ def convert_to_model(object); end
1555
+ def model_name_from_record_or_class(record_or_class); end
1556
+ end
1557
+
1558
+ class ActionView::ObjectRenderer < ::ActionView::PartialRenderer
1559
+ include(::ActionView::AbstractRenderer::ObjectRendering)
1560
+
1561
+ def initialize(lookup_context, options); end
1562
+
1563
+ def render_object_derive_partial(object, context, block); end
1564
+ def render_object_with_partial(object, partial, context, block); end
1565
+
1566
+ private
1567
+
1568
+ def render_partial_template(view, locals, template, layout, block); end
1569
+ def template_keys(path); end
1570
+ end
1571
+
1572
+ class ActionView::OptimizedFileSystemResolver < ::ActionView::FileSystemResolver
1573
+ def initialize(path); end
1574
+
1575
+
1576
+ private
1577
+
1578
+ def build_regex(path, details); end
1579
+ def find_candidate_template_paths(path); end
1580
+ def find_template_paths_from_details(path, details); end
1581
+ end
1582
+
1583
+ class ActionView::OutputBuffer < ::ActiveSupport::SafeBuffer
1584
+ def initialize(*_); end
1585
+
1586
+ def <<(value); end
1587
+ def append=(value); end
1588
+ def safe_append=(value); end
1589
+ def safe_expr_append=(val); end
1590
+ end
1591
+
1592
+ class ActionView::OutputFlow
1593
+ def initialize; end
1594
+
1595
+ def append(key, value); end
1596
+ def append!(key, value); end
1597
+ def content; end
1598
+ def get(key); end
1599
+ def set(key, value); end
1600
+ end
1601
+
1602
+ class ActionView::PartialRenderer < ::ActionView::AbstractRenderer
1603
+ include(::ActionView::CollectionCaching)
1604
+
1605
+ def initialize(lookup_context, options); end
1606
+
1607
+ def collection_cache; end
1608
+ def collection_cache=(val); end
1609
+ def render(partial, context, block); end
1610
+
1611
+ private
1612
+
1613
+ def find_template(path, locals); end
1614
+ def render_partial_template(view, locals, template, layout, block); end
1615
+ def template_keys(_); end
1616
+
1617
+ class << self
1618
+ def collection_cache; end
1619
+ def collection_cache=(val); end
1620
+ end
1621
+ end
1622
+
1623
+ class ActionView::PathResolver < ::ActionView::Resolver
1624
+ def initialize(pattern = T.unsafe(nil)); end
1625
+
1626
+ def clear_cache; end
1627
+
1628
+ private
1629
+
1630
+ def _find_all(name, prefix, partial, details, key, locals); end
1631
+ def build_query(path, details); end
1632
+ def build_unbound_template(template, virtual_path); end
1633
+ def escape_entry(entry); end
1634
+ def extract_handler_and_format_and_variant(path); end
1635
+ def find_template_paths(query); end
1636
+ def find_template_paths_from_details(path, details); end
1637
+ def inside_path?(path, filename); end
1638
+ def query(path, details, formats, locals, cache:); end
1639
+ def reject_files_external_to_app(files); end
1640
+ def source_for_template(template); end
1641
+ end
1642
+
1643
+ ActionView::PathResolver::DEFAULT_PATTERN = T.let(T.unsafe(nil), String)
1644
+
1645
+ ActionView::PathResolver::EXTENSIONS = T.let(T.unsafe(nil), Hash)
1646
+
1647
+ class ActionView::PathSet
1648
+ include(::Enumerable)
1649
+
1650
+ def initialize(paths = T.unsafe(nil)); end
1651
+
1652
+ def +(array); end
1653
+ def <<(*args); end
1654
+ def [](*args, &block); end
1655
+ def compact; end
1656
+ def concat(*args); end
1657
+ def each(*args, &block); end
1658
+ def exists?(path, prefixes, *args); end
1659
+ def find(*args); end
1660
+ def find_all(path, prefixes = T.unsafe(nil), *args); end
1661
+ def find_all_with_query(query); end
1662
+ def find_file(*args, &block); end
1663
+ def include?(*args, &block); end
1664
+ def insert(*args); end
1665
+ def paths; end
1666
+ def pop(*args, &block); end
1667
+ def push(*args); end
1668
+ def size(*args, &block); end
1669
+ def to_ary; end
1670
+ def unshift(*args); end
1671
+
1672
+ private
1673
+
1674
+ def _find_all(path, prefixes, args); end
1675
+ def initialize_copy(other); end
1676
+ def typecast(paths); end
1677
+ end
1678
+
1679
+ class ActionView::Railtie < ::Rails::Engine
1680
+ end
1681
+
1682
+ ActionView::Railtie::NULL_OPTION = T.let(T.unsafe(nil), Object)
1683
+
1684
+ module ActionView::RecordIdentifier
1685
+ include(::ActionView::ModelNaming)
1686
+ extend(::ActionView::RecordIdentifier)
1687
+ extend(::ActionView::ModelNaming)
1688
+
1689
+ def dom_class(record_or_class, prefix = T.unsafe(nil)); end
1690
+ def dom_id(record, prefix = T.unsafe(nil)); end
1691
+
1692
+ private
1693
+
1694
+ def record_key_for_dom_id(record); end
1695
+ end
1696
+
1697
+ ActionView::RecordIdentifier::JOIN = T.let(T.unsafe(nil), String)
1698
+
1699
+ ActionView::RecordIdentifier::NEW = T.let(T.unsafe(nil), String)
1700
+
1701
+ class ActionView::Renderer
1702
+ def initialize(lookup_context); end
1703
+
1704
+ def cache_hits; end
1705
+ def lookup_context; end
1706
+ def lookup_context=(_); end
1707
+ def render(context, options); end
1708
+ def render_body(context, options); end
1709
+ def render_partial(context, options, &block); end
1710
+ def render_partial_to_object(context, options, &block); end
1711
+ def render_template(context, options); end
1712
+ def render_template_to_object(context, options); end
1713
+ def render_to_object(context, options); end
1714
+
1715
+ private
1716
+
1717
+ def collection_from_object(object); end
1718
+ def collection_from_options(options); end
1719
+ end
1720
+
1721
+ module ActionView::Rendering
1722
+ extend(::ActiveSupport::Concern)
1723
+
1724
+ include(::ActionView::ViewPaths)
1725
+
1726
+ mixes_in_class_methods(::ActionView::Rendering::ClassMethods)
1727
+
1728
+ def initialize; end
1729
+
1730
+ def process(*_); end
1731
+ def render_to_body(options = T.unsafe(nil)); end
1732
+ def rendered_format; end
1733
+ def view_context; end
1734
+ def view_context_class; end
1735
+ def view_renderer; end
1736
+
1737
+ private
1738
+
1739
+ def _normalize_args(action = T.unsafe(nil), options = T.unsafe(nil)); end
1740
+ def _normalize_options(options); end
1741
+ def _process_format(format); end
1742
+ def _render_template(options); end
1743
+ end
1744
+
1745
+ module ActionView::Rendering::ClassMethods
1746
+ def _helpers; end
1747
+ def _routes; end
1748
+ def build_view_context_class(klass, supports_path, routes, helpers); end
1749
+ def view_context_class; end
1750
+ end
1751
+
1752
+ class ActionView::Resolver
1753
+ def initialize; end
1754
+
1755
+ def caching; end
1756
+ def caching=(val); end
1757
+ def caching?(*args, &block); end
1758
+ def clear_cache; end
1759
+ def find_all(name, prefix = T.unsafe(nil), partial = T.unsafe(nil), details = T.unsafe(nil), key = T.unsafe(nil), locals = T.unsafe(nil)); end
1760
+ def find_all_anywhere(*args, &block); end
1761
+ def find_all_with_query(query); end
1762
+
1763
+ private
1764
+
1765
+ def _find_all(name, prefix, partial, details, key, locals); end
1766
+ def cached(key, path_info, details, locals); end
1767
+ def find_templates(name, prefix, partial, details, locals = T.unsafe(nil)); end
1768
+
1769
+ class << self
1770
+ def caching; end
1771
+ def caching=(val); end
1772
+ def caching?; end
1773
+ end
1774
+ end
1775
+
1776
+ class ActionView::Resolver::Cache
1777
+ def initialize; end
1778
+
1779
+ def cache(key, name, prefix, partial, locals); end
1780
+ def cache_query(query); end
1781
+ def clear; end
1782
+ def inspect; end
1783
+ def size; end
1784
+
1785
+ private
1786
+
1787
+ def canonical_no_templates(templates); end
1788
+ end
1789
+
1790
+ ActionView::Resolver::Cache::KEY_BLOCK = T.let(T.unsafe(nil), Proc)
1791
+
1792
+ ActionView::Resolver::Cache::NAME_BLOCK = T.let(T.unsafe(nil), Proc)
1793
+
1794
+ ActionView::Resolver::Cache::NO_TEMPLATES = T.let(T.unsafe(nil), Array)
1795
+
1796
+ ActionView::Resolver::Cache::PARTIAL_BLOCK = T.let(T.unsafe(nil), Proc)
1797
+
1798
+ ActionView::Resolver::Cache::PREFIX_BLOCK = T.let(T.unsafe(nil), Proc)
1799
+
1800
+ class ActionView::Resolver::Cache::SmallCache < ::Concurrent::Map
1801
+ def initialize(options = T.unsafe(nil)); end
1802
+ end
1803
+
1804
+ class ActionView::Resolver::Path
1805
+ def initialize(name, prefix, partial, virtual); end
1806
+
1807
+ def name; end
1808
+ def partial; end
1809
+ def partial?; end
1810
+ def prefix; end
1811
+ def to_s; end
1812
+ def to_str; end
1813
+ def virtual; end
1814
+
1815
+ class << self
1816
+ def build(name, prefix, partial); end
1817
+ end
1818
+ end
1819
+
1820
+ module ActionView::RoutingUrlFor
1821
+ def url_for(options = T.unsafe(nil)); end
1822
+ def url_options; end
1823
+
1824
+ private
1825
+
1826
+ def _generate_paths_by_default; end
1827
+ def _routes_context; end
1828
+ def ensure_only_path_option(options); end
1829
+ def optimize_routes_generation?; end
1830
+ end
1831
+
1832
+ class ActionView::StreamingBuffer
1833
+ def initialize(block); end
1834
+
1835
+ def <<(value); end
1836
+ def append=(value); end
1837
+ def concat(value); end
1838
+ def html_safe; end
1839
+ def html_safe?; end
1840
+ def safe_append=(value); end
1841
+ def safe_concat(value); end
1842
+ end
1843
+
1844
+ class ActionView::StreamingFlow < ::ActionView::OutputFlow
1845
+ def initialize(view, fiber); end
1846
+
1847
+ def append!(key, value); end
1848
+ def get(key); end
1849
+
1850
+ private
1851
+
1852
+ def inside_fiber?; end
1853
+ end
1854
+
1855
+ class ActionView::StreamingTemplateRenderer < ::ActionView::TemplateRenderer
1856
+ def render_template(view, template, layout_name = T.unsafe(nil), locals = T.unsafe(nil)); end
1857
+
1858
+ private
1859
+
1860
+ def delayed_render(buffer, template, layout, view, locals); end
1861
+ end
1862
+
1863
+ class ActionView::StreamingTemplateRenderer::Body
1864
+ def initialize(&start); end
1865
+
1866
+ def each(&block); end
1867
+
1868
+ private
1869
+
1870
+ def log_error(exception); end
1871
+ end
1872
+
1873
+ class ActionView::SyntaxErrorInTemplate < ::ActionView::Template::Error
1874
+ def initialize(template, offending_code_string); end
1875
+
1876
+ def annotated_source_code; end
1877
+ def message; end
1878
+ end
1879
+
1880
+ class ActionView::Template
1881
+ extend(::ActiveSupport::Autoload)
1882
+ extend(::ActionView::Template::Handlers)
1883
+
1884
+ def initialize(source, identifier, handler, format: T.unsafe(nil), variant: T.unsafe(nil), locals: T.unsafe(nil), virtual_path: T.unsafe(nil), updated_at: T.unsafe(nil)); end
1885
+
1886
+ def encode!; end
1887
+ def format; end
1888
+ def formats(*args, &block); end
1889
+ def formats=(*args, &block); end
1890
+ def handler; end
1891
+ def identifier; end
1892
+ def inspect; end
1893
+ def locals; end
1894
+ def locals=(*args, &block); end
1895
+ def marshal_dump; end
1896
+ def marshal_load(array); end
1897
+ def original_encoding(*args, &block); end
1898
+ def refresh(*args, &block); end
1899
+ def render(view, locals, buffer = T.unsafe(nil), &block); end
1900
+ def short_identifier; end
1901
+ def source; end
1902
+ def supports_streaming?; end
1903
+ def type; end
1904
+ def updated_at(*args, &block); end
1905
+ def variable; end
1906
+ def variant; end
1907
+ def variants(*args, &block); end
1908
+ def variants=(*args, &block); end
1909
+ def virtual_path; end
1910
+ def virtual_path=(*args, &block); end
1911
+
1912
+ private
1913
+
1914
+ def compile(mod); end
1915
+ def compile!(view); end
1916
+ def handle_render_error(view, e); end
1917
+ def identifier_method_name; end
1918
+ def instrument(action, &block); end
1919
+ def instrument_payload; end
1920
+ def instrument_render_template(&block); end
1921
+ def locals_code; end
1922
+ def method_name; end
1923
+
1924
+ class << self
1925
+ def finalize_compiled_template_methods; end
1926
+ def finalize_compiled_template_methods=(_); end
1927
+ end
1928
+ end
1929
+
1930
+ class ActionView::Template::Error < ::ActionView::ActionViewError
1931
+ def initialize(template); end
1932
+
1933
+ def annotated_source_code; end
1934
+ def cause; end
1935
+ def file_name; end
1936
+ def line_number; end
1937
+ def source_extract(indentation = T.unsafe(nil)); end
1938
+ def sub_template_message; end
1939
+ def sub_template_of(template_path); end
1940
+
1941
+ private
1942
+
1943
+ def formatted_code_for(source_code, line_counter, indent); end
1944
+ def source_location; end
1945
+ end
1946
+
1947
+ ActionView::Template::Error::SOURCE_CODE_RADIUS = T.let(T.unsafe(nil), Integer)
1948
+
1949
+ class ActionView::Template::HTML
1950
+ def initialize(string, type = T.unsafe(nil)); end
1951
+
1952
+ def format; end
1953
+ def formats(*args, &block); end
1954
+ def identifier; end
1955
+ def inspect; end
1956
+ def render(*args); end
1957
+ def to_str; end
1958
+ def type; end
1959
+ end
1960
+
1961
+ module ActionView::Template::Handlers
1962
+ def handler_for_extension(extension); end
1963
+ def register_default_template_handler(extension, klass); end
1964
+ def register_template_handler(*extensions, handler); end
1965
+ def registered_template_handler(extension); end
1966
+ def template_handler_extensions; end
1967
+ def unregister_template_handler(*extensions); end
1968
+
1969
+ class << self
1970
+ def extended(base); end
1971
+ def extensions; end
1972
+ end
1973
+ end
1974
+
1975
+ class ActionView::Template::Handlers::Builder
1976
+ def call(template, source); end
1977
+ def default_format; end
1978
+ def default_format=(_); end
1979
+ def default_format?; end
1980
+
1981
+ private
1982
+
1983
+ def require_engine; end
1984
+
1985
+ class << self
1986
+ def default_format; end
1987
+ def default_format=(value); end
1988
+ def default_format?; end
1989
+ end
1990
+ end
1991
+
1992
+ class ActionView::Template::Handlers::ERB
1993
+ def call(template, source); end
1994
+ def erb_implementation; end
1995
+ def erb_implementation=(_); end
1996
+ def erb_implementation?; end
1997
+ def erb_trim_mode; end
1998
+ def erb_trim_mode=(_); end
1999
+ def erb_trim_mode?; end
2000
+ def escape_ignore_list; end
2001
+ def escape_ignore_list=(_); end
2002
+ def escape_ignore_list?; end
2003
+ def escape_whitelist(*args, &block); end
2004
+ def escape_whitelist=(*args, &block); end
2005
+ def handles_encoding?; end
2006
+ def start_line(template); end
2007
+ def supports_streaming?; end
2008
+
2009
+ private
2010
+
2011
+ def annotate?(template); end
2012
+ def valid_encoding(string, encoding); end
2013
+
2014
+ class << self
2015
+ def call(template, source); end
2016
+ def erb_implementation; end
2017
+ def erb_implementation=(value); end
2018
+ def erb_implementation?; end
2019
+ def erb_trim_mode; end
2020
+ def erb_trim_mode=(value); end
2021
+ def erb_trim_mode?; end
2022
+ def escape_ignore_list; end
2023
+ def escape_ignore_list=(value); end
2024
+ def escape_ignore_list?; end
2025
+ def escape_whitelist(*args, &block); end
2026
+ def escape_whitelist=(*args, &block); end
2027
+ end
2028
+ end
2029
+
2030
+ ActionView::Template::Handlers::ERB::ENCODING_TAG = T.let(T.unsafe(nil), Regexp)
2031
+
2032
+ class ActionView::Template::Handlers::ERB::Erubi < ::Erubi::Engine
2033
+ def initialize(input, properties = T.unsafe(nil)); end
2034
+
2035
+ def evaluate(action_view_erb_handler_context); end
2036
+
2037
+ private
2038
+
2039
+ def add_code(code); end
2040
+ def add_expression(indicator, code); end
2041
+ def add_postamble(_); end
2042
+ def add_text(text); end
2043
+ def flush_newline_if_pending(src); end
2044
+ end
2045
+
2046
+ ActionView::Template::Handlers::ERB::Erubi::BLOCK_EXPR = T.let(T.unsafe(nil), Regexp)
2047
+
2048
+ class ActionView::Template::Handlers::Html < ::ActionView::Template::Handlers::Raw
2049
+ def call(template, source); end
2050
+ end
2051
+
2052
+ class ActionView::Template::Handlers::LegacyHandlerWrapper < ::SimpleDelegator
2053
+ def call(view, source); end
2054
+ end
2055
+
2056
+ class ActionView::Template::Handlers::Raw
2057
+ def call(template, source); end
2058
+ end
2059
+
2060
+ class ActionView::Template::Inline < ::ActionView::Template
2061
+ def compile(mod); end
2062
+ end
2063
+
2064
+ ActionView::Template::Inline::Finalizer = T.let(T.unsafe(nil), Proc)
2065
+
2066
+ class ActionView::Template::LegacyTemplate
2067
+ def initialize(template, source); end
2068
+
2069
+ def source; end
2070
+ end
2071
+
2072
+ class ActionView::Template::RawFile
2073
+ def initialize(filename); end
2074
+
2075
+ def format; end
2076
+ def format=(_); end
2077
+ def formats(*args, &block); end
2078
+ def identifier; end
2079
+ def render(*args); end
2080
+ def type; end
2081
+ def type=(_); end
2082
+ end
2083
+
2084
+ module ActionView::Template::Sources
2085
+ extend(::ActiveSupport::Autoload)
2086
+ end
2087
+
2088
+ class ActionView::Template::Sources::File
2089
+ def initialize(filename); end
2090
+
2091
+ def to_s; end
2092
+ end
2093
+
2094
+ class ActionView::Template::Text
2095
+ def initialize(string); end
2096
+
2097
+ def format; end
2098
+ def formats(*args, &block); end
2099
+ def identifier; end
2100
+ def inspect; end
2101
+ def render(*args); end
2102
+ def to_str; end
2103
+ def type; end
2104
+ def type=(_); end
2105
+ end
2106
+
2107
+ class ActionView::Template::Types
2108
+ def type_klass; end
2109
+ def type_klass=(val); end
2110
+
2111
+ class << self
2112
+ def [](type); end
2113
+ def delegate_to(klass); end
2114
+ def symbols; end
2115
+ def type_klass; end
2116
+ def type_klass=(val); end
2117
+ end
2118
+ end
2119
+
2120
+ class ActionView::Template::Types::Type
2121
+ def initialize(symbol); end
2122
+
2123
+ def ==(type); end
2124
+ def ref; end
2125
+ def symbol; end
2126
+ def to_s; end
2127
+ def to_str; end
2128
+ def to_sym; end
2129
+
2130
+ class << self
2131
+ def [](type); end
2132
+ end
2133
+ end
2134
+
2135
+ ActionView::Template::Types::Type::SET = T.let(T.unsafe(nil), T.untyped)
2136
+
2137
+ ActionView::TemplateError = ActionView::Template::Error
2138
+
2139
+ class ActionView::TemplateRenderer < ::ActionView::AbstractRenderer
2140
+ def render(context, options); end
2141
+
2142
+ private
2143
+
2144
+ def determine_template(options); end
2145
+ def find_layout(layout, keys, formats); end
2146
+ def render_template(view, template, layout_name, locals); end
2147
+ def render_with_layout(view, template, path, locals); end
2148
+ def resolve_layout(layout, keys, formats); end
2149
+ end
2150
+
2151
+ class ActionView::TestCase < ::ActiveSupport::TestCase
2152
+ include(::Rails::Dom::Testing::Assertions::DomAssertions)
2153
+ include(::Rails::Dom::Testing::Assertions::SelectorAssertions::CountDescribable)
2154
+ include(::Rails::Dom::Testing::Assertions::SelectorAssertions)
2155
+ include(::Rails::Dom::Testing::Assertions)
2156
+ include(::ActionDispatch::Assertions::ResponseAssertions)
2157
+ include(::ActionDispatch::Assertions::RoutingAssertions)
2158
+ include(::ActionDispatch::Assertions)
2159
+ include(::AbstractController::Helpers)
2160
+ include(::ActionView::Helpers::CaptureHelper)
2161
+ include(::ActionView::Helpers::ControllerHelper)
2162
+ include(::ActionView::Helpers::CspHelper)
2163
+ include(::ActionView::Helpers::CsrfHelper)
2164
+ include(::ActionView::Helpers::DateHelper)
2165
+ include(::ActionView::Helpers::OutputSafetyHelper)
2166
+ include(::ActionView::Helpers::TagHelper)
2167
+ include(::ActiveSupport::Benchmarkable)
2168
+ include(::ActionView::Helpers::ActiveModelHelper)
2169
+ include(::ActionView::Helpers::AssetUrlHelper)
2170
+ include(::ActionView::Helpers::AssetTagHelper)
2171
+ include(::ActionView::Helpers::UrlHelper)
2172
+ include(::ActionView::Helpers::AtomFeedHelper)
2173
+ include(::ActionView::Helpers::CacheHelper)
2174
+ include(::ActionView::Helpers::SanitizeHelper)
2175
+ include(::ActionView::Helpers::DebugHelper)
2176
+ include(::ActionView::Helpers::TextHelper)
2177
+ include(::ActionView::Helpers::FormTagHelper)
2178
+ include(::ActionDispatch::TestProcess::FixtureFile)
2179
+ include(::ActionDispatch::TestProcess)
2180
+ include(::ActionController::TemplateAssertions)
2181
+ include(::ActionView::Context)
2182
+ include(::ActionDispatch::Routing::PolymorphicRoutes)
2183
+ include(::ActionView::ModelNaming)
2184
+ include(::ActionView::RecordIdentifier)
2185
+ include(::ActionView::Helpers::FormHelper)
2186
+ include(::ActionView::Helpers::TranslationHelper)
2187
+ include(::ActionView::Helpers::FormOptionsHelper)
2188
+ include(::ActionView::Helpers::JavaScriptHelper)
2189
+ include(::ActionView::Helpers::NumberHelper)
2190
+ include(::ActionView::Helpers::RenderingHelper)
2191
+ include(::ActionView::Helpers)
2192
+ include(::ActiveSupport::Testing::ConstantLookup)
2193
+ include(::ActionView::RoutingUrlFor)
2194
+ include(::ActionView::TestCase::Behavior)
2195
+ extend(::AbstractController::Helpers::ClassMethods)
2196
+ extend(::ActionView::Helpers::UrlHelper::ClassMethods)
2197
+ extend(::ActionView::Helpers::SanitizeHelper::ClassMethods)
2198
+ extend(::ActiveSupport::Testing::ConstantLookup::ClassMethods)
2199
+ extend(::ActionView::TestCase::Behavior::ClassMethods)
2200
+
2201
+ def _helper_methods; end
2202
+ def _helper_methods=(_); end
2203
+ def _helper_methods?; end
2204
+ def _helpers; end
2205
+ def _helpers=(_); end
2206
+ def _helpers?; end
2207
+ def debug_missing_translation; end
2208
+ def debug_missing_translation=(val); end
2209
+
2210
+ class << self
2211
+ def __callbacks; end
2212
+ def _helper_methods; end
2213
+ def _helper_methods=(value); end
2214
+ def _helper_methods?; end
2215
+ def _helpers; end
2216
+ def _helpers=(value); end
2217
+ def _helpers?; end
2218
+ def debug_missing_translation; end
2219
+ def debug_missing_translation=(val); end
2220
+ end
2221
+ end
2222
+
2223
+ module ActionView::TestCase::Behavior
2224
+ include(::ActionDispatch::TestProcess::FixtureFile)
2225
+ include(::ActionDispatch::TestProcess)
2226
+ include(::ActionController::TemplateAssertions)
2227
+ include(::ActionView::Context)
2228
+ include(::ActionDispatch::Routing::PolymorphicRoutes)
2229
+ include(::ActionView::ModelNaming)
2230
+ include(::ActionView::RecordIdentifier)
2231
+ include(::ActionView::RoutingUrlFor)
2232
+ extend(::ActiveSupport::Concern)
2233
+
2234
+ include(::Rails::Dom::Testing::Assertions)
2235
+ include(::ActionDispatch::Assertions)
2236
+ include(::AbstractController::Helpers)
2237
+ include(::ActionView::Helpers::TagHelper)
2238
+ include(::ActionView::Helpers::AssetTagHelper)
2239
+ include(::ActionView::Helpers::UrlHelper)
2240
+ include(::ActionView::Helpers::SanitizeHelper)
2241
+ include(::ActionView::Helpers::TextHelper)
2242
+ include(::ActionView::Helpers::FormTagHelper)
2243
+ include(::ActionView::Helpers::FormHelper)
2244
+ include(::ActionView::Helpers::TranslationHelper)
2245
+ include(::ActionView::Helpers)
2246
+ include(::ActiveSupport::Testing::ConstantLookup)
2247
+
2248
+ mixes_in_class_methods(::ActionView::TestCase::Behavior::ClassMethods)
2249
+
2250
+ def _routes; end
2251
+ def config; end
2252
+ def controller; end
2253
+ def controller=(_); end
2254
+ def lookup_context(*args, &block); end
2255
+ def output_buffer; end
2256
+ def output_buffer=(_); end
2257
+ def render(options = T.unsafe(nil), local_assigns = T.unsafe(nil), &block); end
2258
+ def rendered; end
2259
+ def rendered=(_); end
2260
+ def rendered_views; end
2261
+ def setup_with_controller; end
2262
+
2263
+ private
2264
+
2265
+ def _user_defined_ivars; end
2266
+ def _view; end
2267
+ def document_root_element; end
2268
+ def make_test_case_available_to_view!; end
2269
+ def method_missing(selector, *args); end
2270
+ def respond_to_missing?(name, include_private = T.unsafe(nil)); end
2271
+ def say_no_to_protect_against_forgery!; end
2272
+ def view; end
2273
+ def view_assigns; end
2274
+ end
2275
+
2276
+ module ActionView::TestCase::Behavior::ClassMethods
2277
+ def determine_default_helper_class(name); end
2278
+ def helper_class; end
2279
+ def helper_class=(_); end
2280
+ def helper_method(*methods); end
2281
+ def new(*_); end
2282
+ def tests(helper_class); end
2283
+
2284
+ private
2285
+
2286
+ def include_helper_modules!; end
2287
+ end
2288
+
2289
+ ActionView::TestCase::Behavior::INTERNAL_IVARS = T.let(T.unsafe(nil), Array)
2290
+
2291
+ module ActionView::TestCase::Behavior::Locals
2292
+ def render(options = T.unsafe(nil), local_assigns = T.unsafe(nil)); end
2293
+ def rendered_views; end
2294
+ def rendered_views=(_); end
2295
+ end
2296
+
2297
+ class ActionView::TestCase::Behavior::RenderedViewsCollection
2298
+ def initialize; end
2299
+
2300
+ def add(view, locals); end
2301
+ def locals_for(view); end
2302
+ def rendered_views; end
2303
+ def view_rendered?(view, expected_locals); end
2304
+ end
2305
+
2306
+ module ActionView::TestCase::HelperMethods
2307
+ end
2308
+
2309
+ class ActionView::TestCase::TestController < ::ActionController::Base
2310
+ include(::ActionDispatch::TestProcess::FixtureFile)
2311
+ include(::ActionDispatch::TestProcess)
2312
+
2313
+ def initialize; end
2314
+
2315
+ def controller_path=(path); end
2316
+ def params; end
2317
+ def params=(_); end
2318
+ def request; end
2319
+ def request=(_); end
2320
+ def response; end
2321
+ def response=(_); end
2322
+
2323
+ private
2324
+
2325
+ def _layout(lookup_context, formats); end
2326
+
2327
+ class << self
2328
+ def _helpers; end
2329
+ def controller_path=(_); end
2330
+ def middleware_stack; end
2331
+ end
2332
+ end
2333
+
2334
+ module ActionView::TestCase::TestController::HelperMethods
2335
+ include(::ActionController::Base::HelperMethods)
2336
+ end
2337
+
2338
+ class ActionView::UnboundTemplate
2339
+ def initialize(source, identifier, handler, options); end
2340
+
2341
+ def bind_locals(locals); end
2342
+
2343
+ private
2344
+
2345
+ def build_template(locals); end
2346
+ end
2347
+
2348
+ module ActionView::VERSION
2349
+ end
2350
+
2351
+ ActionView::VERSION::MAJOR = T.let(T.unsafe(nil), Integer)
2352
+
2353
+ ActionView::VERSION::MINOR = T.let(T.unsafe(nil), Integer)
2354
+
2355
+ ActionView::VERSION::PRE = T.let(T.unsafe(nil), String)
2356
+
2357
+ ActionView::VERSION::STRING = T.let(T.unsafe(nil), String)
2358
+
2359
+ ActionView::VERSION::TINY = T.let(T.unsafe(nil), Integer)
2360
+
2361
+ module ActionView::ViewPaths
2362
+ extend(::ActiveSupport::Concern)
2363
+
2364
+ mixes_in_class_methods(::ActionView::ViewPaths::ClassMethods)
2365
+
2366
+ def _prefixes; end
2367
+ def any_templates?(*args, &block); end
2368
+ def append_view_path(path); end
2369
+ def details_for_lookup; end
2370
+ def formats(*args, &block); end
2371
+ def formats=(arg); end
2372
+ def locale(*args, &block); end
2373
+ def locale=(arg); end
2374
+ def lookup_context; end
2375
+ def prepend_view_path(path); end
2376
+ def template_exists?(*args, &block); end
2377
+ def view_paths(*args, &block); end
2378
+
2379
+ class << self
2380
+ def all_view_paths; end
2381
+ def get_view_paths(klass); end
2382
+ def set_view_paths(klass, paths); end
2383
+ end
2384
+ end
2385
+
2386
+ module ActionView::ViewPaths::ClassMethods
2387
+ def _prefixes; end
2388
+ def _view_paths; end
2389
+ def _view_paths=(paths); end
2390
+ def append_view_path(path); end
2391
+ def prepend_view_path(path); end
2392
+ def view_paths; end
2393
+ def view_paths=(paths); end
2394
+
2395
+ private
2396
+
2397
+ def local_prefixes; end
2398
+ end
2399
+
2400
+ class ActionView::WrongEncodingError < ::ActionView::EncodingError
2401
+ def initialize(string, encoding); end
2402
+
2403
+ def message; end
2404
+ end
2405
+
2406
+ module ActionView::CollectionCaching
2407
+ extend(::ActiveSupport::Concern)
2408
+
2409
+
2410
+ private
2411
+
2412
+ def cache_collection_render(instrumentation_payload, view, template, collection); end
2413
+ def callable_cache_key?; end
2414
+ def collection_by_cache_keys(view, template, collection); end
2415
+ def expanded_cache_key(key, view, template, digest_path); end
2416
+ def fetch_or_cache_partial(cached_partials, template, order_by:); end
2417
+ def will_cache?(options, view); end
2418
+ end
2419
+
2420
+ class ActionView::DependencyTracker
2421
+ class << self
2422
+ def find_dependencies(name, template, view_paths = T.unsafe(nil)); end
2423
+ def register_tracker(extension, tracker); end
2424
+ def remove_tracker(handler); end
2425
+ end
2426
+ end
2427
+
2428
+ class ActionView::DependencyTracker::ERBTracker
2429
+ def initialize(name, template, view_paths = T.unsafe(nil)); end
2430
+
2431
+ def dependencies; end
2432
+
2433
+ private
2434
+
2435
+ def add_dependencies(render_dependencies, arguments, pattern); end
2436
+ def add_dynamic_dependency(dependencies, dependency); end
2437
+ def add_static_dependency(dependencies, dependency, quote_type); end
2438
+ def directory; end
2439
+ def explicit_dependencies; end
2440
+ def name; end
2441
+ def render_dependencies; end
2442
+ def resolve_directories(wildcard_dependencies); end
2443
+ def source; end
2444
+ def template; end
2445
+
2446
+ class << self
2447
+ def call(name, template, view_paths = T.unsafe(nil)); end
2448
+ def supports_view_paths?; end
2449
+ end
2450
+ end
2451
+
2452
+ ActionView::DependencyTracker::ERBTracker::EXPLICIT_DEPENDENCY = T.let(T.unsafe(nil), Regexp)
2453
+
2454
+ ActionView::DependencyTracker::ERBTracker::IDENTIFIER = T.let(T.unsafe(nil), Regexp)
2455
+
2456
+ ActionView::DependencyTracker::ERBTracker::LAYOUT_DEPENDENCY = T.let(T.unsafe(nil), Regexp)
2457
+
2458
+ ActionView::DependencyTracker::ERBTracker::LAYOUT_HASH_KEY = T.let(T.unsafe(nil), Regexp)
2459
+
2460
+ ActionView::DependencyTracker::ERBTracker::PARTIAL_HASH_KEY = T.let(T.unsafe(nil), Regexp)
2461
+
2462
+ ActionView::DependencyTracker::ERBTracker::RENDER_ARGUMENTS = T.let(T.unsafe(nil), Regexp)
2463
+
2464
+ ActionView::DependencyTracker::ERBTracker::STRING = T.let(T.unsafe(nil), Regexp)
2465
+
2466
+ ActionView::DependencyTracker::ERBTracker::VARIABLE_OR_METHOD_CHAIN = T.let(T.unsafe(nil), Regexp)
2467
+
2468
+ module ActionView::Helpers::Tags::Checkable
2469
+ def input_checked?(options); end
2470
+ end
2471
+
2472
+ module ActionView::Helpers::Tags::CollectionHelpers
2473
+ def initialize(object_name, method_name, template_object, collection, value_method, text_method, options, html_options); end
2474
+
2475
+
2476
+ private
2477
+
2478
+ def default_html_options_for_collection(item, value); end
2479
+ def hidden_field; end
2480
+ def hidden_field_name; end
2481
+ def instantiate_builder(builder_class, item, value, text, html_options); end
2482
+ def render_collection; end
2483
+ def render_collection_for(builder_class, &block); end
2484
+ def sanitize_attribute_name(value); end
2485
+ end
2486
+
2487
+ class ActionView::Helpers::Tags::CollectionHelpers::Builder
2488
+ def initialize(template_object, object_name, method_name, object, sanitized_attribute_name, text, value, input_html_options); end
2489
+
2490
+ def label(label_html_options = T.unsafe(nil), &block); end
2491
+ def object; end
2492
+ def text; end
2493
+ def value; end
2494
+ end
2495
+
2496
+ class ActionView::PartialIteration
2497
+ def initialize(size); end
2498
+
2499
+ def first?; end
2500
+ def index; end
2501
+ def iterate!; end
2502
+ def last?; end
2503
+ def size; end
2504
+ end