alchemrest 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (245) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +22 -0
  4. data/.rubocop_todo.yml +242 -0
  5. data/.ruby-version +1 -0
  6. data/Appraisals +19 -0
  7. data/Gemfile +6 -0
  8. data/Gemfile.lock +378 -0
  9. data/Rakefile +29 -0
  10. data/alchemrest.gemspec +71 -0
  11. data/coach.yml +5 -0
  12. data/examples/bank_api/client.rb +31 -0
  13. data/examples/bank_api/data/account.rb +21 -0
  14. data/examples/bank_api/data/ach.rb +16 -0
  15. data/examples/bank_api/data/business_account.rb +22 -0
  16. data/examples/bank_api/data/card.rb +21 -0
  17. data/examples/bank_api/data/check.rb +19 -0
  18. data/examples/bank_api/data/product.rb +20 -0
  19. data/examples/bank_api/data/transaction.rb +49 -0
  20. data/examples/bank_api/data/user.rb +27 -0
  21. data/examples/bank_api/factories.rb +68 -0
  22. data/examples/bank_api/graph_visualization.rb +45 -0
  23. data/examples/bank_api/positive_interest_string.rb +33 -0
  24. data/examples/bank_api/requests/delete_user.rb +17 -0
  25. data/examples/bank_api/requests/get_business_account.rb +24 -0
  26. data/examples/bank_api/requests/get_products.rb +12 -0
  27. data/examples/bank_api/requests/get_transactions.rb +34 -0
  28. data/examples/bank_api/requests/get_user.rb +19 -0
  29. data/examples/bank_api/requests/post_transaction.rb +20 -0
  30. data/examples/bank_api/requests/update_user.rb +28 -0
  31. data/examples/bank_api/root.rb +52 -0
  32. data/examples/bank_api.rb +33 -0
  33. data/gemfiles/faraday_2.gemfile +9 -0
  34. data/gemfiles/faraday_2.gemfile.lock +363 -0
  35. data/gemfiles/rails_7_0.gemfile.lock +341 -0
  36. data/gemfiles/rails_7_2.gemfile +9 -0
  37. data/gemfiles/rails_7_2.gemfile.lock +384 -0
  38. data/gemfiles/rails_8_0.gemfile +9 -0
  39. data/gemfiles/rails_8_0.gemfile.lock +385 -0
  40. data/lib/alchemrest/circuit_breaker.rb +84 -0
  41. data/lib/alchemrest/client/configuration/connection.rb +83 -0
  42. data/lib/alchemrest/client/configuration.rb +89 -0
  43. data/lib/alchemrest/client.rb +48 -0
  44. data/lib/alchemrest/cop.rb +8 -0
  45. data/lib/alchemrest/data/capture_configuration.rb +77 -0
  46. data/lib/alchemrest/data/field.rb +36 -0
  47. data/lib/alchemrest/data/graph.rb +40 -0
  48. data/lib/alchemrest/data/record.rb +60 -0
  49. data/lib/alchemrest/data/schema.rb +80 -0
  50. data/lib/alchemrest/data.rb +9 -0
  51. data/lib/alchemrest/endpoint_definition.rb +47 -0
  52. data/lib/alchemrest/error.rb +122 -0
  53. data/lib/alchemrest/factory_bot.rb +64 -0
  54. data/lib/alchemrest/faraday_middleware/external_api_instrumentation.rb +24 -0
  55. data/lib/alchemrest/faraday_middleware/json_parser.rb +30 -0
  56. data/lib/alchemrest/faraday_middleware/kill_switch.rb +22 -0
  57. data/lib/alchemrest/faraday_middleware/underscore_response.rb +24 -0
  58. data/lib/alchemrest/hash_path.rb +81 -0
  59. data/lib/alchemrest/http_request.rb +75 -0
  60. data/lib/alchemrest/kill_switch/adapters.rb +88 -0
  61. data/lib/alchemrest/kill_switch.rb +31 -0
  62. data/lib/alchemrest/railtie.rb +25 -0
  63. data/lib/alchemrest/request/endpoint.rb +29 -0
  64. data/lib/alchemrest/request/returns.rb +46 -0
  65. data/lib/alchemrest/request.rb +80 -0
  66. data/lib/alchemrest/request_definition/builder.rb +13 -0
  67. data/lib/alchemrest/request_definition.rb +26 -0
  68. data/lib/alchemrest/response/pipeline/extract_payload.rb +64 -0
  69. data/lib/alchemrest/response/pipeline/final.rb +11 -0
  70. data/lib/alchemrest/response/pipeline/omit.rb +46 -0
  71. data/lib/alchemrest/response/pipeline/sanitize.rb +59 -0
  72. data/lib/alchemrest/response/pipeline/transform.rb +26 -0
  73. data/lib/alchemrest/response/pipeline/was_successful.rb +29 -0
  74. data/lib/alchemrest/response/pipeline.rb +71 -0
  75. data/lib/alchemrest/response.rb +73 -0
  76. data/lib/alchemrest/response_captured_handler.rb +68 -0
  77. data/lib/alchemrest/result/halt.rb +15 -0
  78. data/lib/alchemrest/result/try_helpers.rb +16 -0
  79. data/lib/alchemrest/result.rb +128 -0
  80. data/lib/alchemrest/root.rb +77 -0
  81. data/lib/alchemrest/transforms/base_to_type_transform_registry.rb +42 -0
  82. data/lib/alchemrest/transforms/constrainable.rb +41 -0
  83. data/lib/alchemrest/transforms/constraint/block.rb +22 -0
  84. data/lib/alchemrest/transforms/constraint/greater_than.rb +19 -0
  85. data/lib/alchemrest/transforms/constraint/greater_than_or_eq.rb +19 -0
  86. data/lib/alchemrest/transforms/constraint/in_list.rb +19 -0
  87. data/lib/alchemrest/transforms/constraint/is_instance_of.rb +19 -0
  88. data/lib/alchemrest/transforms/constraint/is_uuid.rb +19 -0
  89. data/lib/alchemrest/transforms/constraint/less_than.rb +19 -0
  90. data/lib/alchemrest/transforms/constraint/less_than_or_eq.rb +19 -0
  91. data/lib/alchemrest/transforms/constraint/matches_regex.rb +19 -0
  92. data/lib/alchemrest/transforms/constraint/max_length.rb +19 -0
  93. data/lib/alchemrest/transforms/constraint/min_length.rb +19 -0
  94. data/lib/alchemrest/transforms/constraint.rb +17 -0
  95. data/lib/alchemrest/transforms/constraint_builder/for_number.rb +25 -0
  96. data/lib/alchemrest/transforms/constraint_builder/for_string.rb +21 -0
  97. data/lib/alchemrest/transforms/constraint_builder.rb +15 -0
  98. data/lib/alchemrest/transforms/date_transform.rb +30 -0
  99. data/lib/alchemrest/transforms/enum.rb +52 -0
  100. data/lib/alchemrest/transforms/epoch_time.rb +32 -0
  101. data/lib/alchemrest/transforms/from_chain.rb +15 -0
  102. data/lib/alchemrest/transforms/from_number/to_type_transform_registry.rb +18 -0
  103. data/lib/alchemrest/transforms/from_number.rb +47 -0
  104. data/lib/alchemrest/transforms/from_string/to_type_transform_registry.rb +17 -0
  105. data/lib/alchemrest/transforms/from_string.rb +36 -0
  106. data/lib/alchemrest/transforms/from_type/empty_to_type_transform_registry.rb +14 -0
  107. data/lib/alchemrest/transforms/from_type.rb +64 -0
  108. data/lib/alchemrest/transforms/iso_time.rb +58 -0
  109. data/lib/alchemrest/transforms/json_number.rb +26 -0
  110. data/lib/alchemrest/transforms/loose_hash.rb +96 -0
  111. data/lib/alchemrest/transforms/money_transform.rb +42 -0
  112. data/lib/alchemrest/transforms/number.rb +27 -0
  113. data/lib/alchemrest/transforms/output_type.rb +65 -0
  114. data/lib/alchemrest/transforms/to_decimal.rb +22 -0
  115. data/lib/alchemrest/transforms/to_type/from_string_to_time_selector.rb +29 -0
  116. data/lib/alchemrest/transforms/to_type/transforms_selector.rb +61 -0
  117. data/lib/alchemrest/transforms/to_type.rb +86 -0
  118. data/lib/alchemrest/transforms/typed.rb +32 -0
  119. data/lib/alchemrest/transforms/union.rb +44 -0
  120. data/lib/alchemrest/transforms/with_constraint.rb +26 -0
  121. data/lib/alchemrest/transforms.rb +93 -0
  122. data/lib/alchemrest/url_builder/encoders.rb +39 -0
  123. data/lib/alchemrest/url_builder/options.rb +33 -0
  124. data/lib/alchemrest/url_builder.rb +31 -0
  125. data/lib/alchemrest/version.rb +5 -0
  126. data/lib/alchemrest/webmock_helpers.rb +27 -0
  127. data/lib/alchemrest.rb +159 -0
  128. data/lib/generators/alchemrest/kill_switch_migration_generator.rb +27 -0
  129. data/lib/generators/alchemrest/templates/kill_switch_migration.rb.erb +17 -0
  130. data/lib/rubocop/cop/alchemrest/define_request_using_with_params.rb +53 -0
  131. data/lib/rubocop/cop/alchemrest/endpoint_definition_using_generic_params.rb +55 -0
  132. data/lib/rubocop/cop/alchemrest/request_hash_returning_block.rb +54 -0
  133. data/lib/rubocop/cop/alchemrest/time_transform_with_no_zone.rb +56 -0
  134. data/lib/tapioca/dsl/compilers/alchemrest_data.rb +84 -0
  135. data/lib/tapioca/dsl/compilers/alchemrest_root.rb +68 -0
  136. data/mutant.yml +16 -0
  137. data/rbi/alchemrest/result.rbi +80 -0
  138. data/rbi/alchemrest.rbi +246 -0
  139. data/sorbet/config +5 -0
  140. data/sorbet/rbi/gems/.gitattributes +1 -0
  141. data/sorbet/rbi/gems/abstract_type@0.0.7.rbi +41 -0
  142. data/sorbet/rbi/gems/actionpack@8.0.4.rbi +11733 -0
  143. data/sorbet/rbi/gems/actionview@8.0.4.rbi +6560 -0
  144. data/sorbet/rbi/gems/activemodel@8.0.4.rbi +2891 -0
  145. data/sorbet/rbi/gems/activesupport@8.0.4.rbi +9621 -0
  146. data/sorbet/rbi/gems/adamantium@0.2.0.rbi +144 -0
  147. data/sorbet/rbi/gems/addressable@2.8.7.rbi +779 -0
  148. data/sorbet/rbi/gems/anima@0.3.2.rbi +103 -0
  149. data/sorbet/rbi/gems/ast@2.4.2.rbi +107 -0
  150. data/sorbet/rbi/gems/base64@0.3.0.rbi +52 -0
  151. data/sorbet/rbi/gems/benchmark@0.5.0.rbi +153 -0
  152. data/sorbet/rbi/gems/bigdecimal@3.3.1.rbi +77 -0
  153. data/sorbet/rbi/gems/builder@3.3.0.rbi +9 -0
  154. data/sorbet/rbi/gems/circuitbox@2.0.0.rbi +297 -0
  155. data/sorbet/rbi/gems/concord@0.1.6.rbi +51 -0
  156. data/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi +4716 -0
  157. data/sorbet/rbi/gems/connection_pool@2.5.4.rbi +9 -0
  158. data/sorbet/rbi/gems/crack@1.0.0.rbi +110 -0
  159. data/sorbet/rbi/gems/crass@1.0.6.rbi +294 -0
  160. data/sorbet/rbi/gems/date@3.4.1.rbi +58 -0
  161. data/sorbet/rbi/gems/drb@2.2.3.rbi +639 -0
  162. data/sorbet/rbi/gems/equalizer@0.0.11.rbi +38 -0
  163. data/sorbet/rbi/gems/erubi@1.13.1.rbi +85 -0
  164. data/sorbet/rbi/gems/factory_bot@6.5.0.rbi +1529 -0
  165. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +181 -0
  166. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.1.rbi +120 -0
  167. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +128 -0
  168. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +123 -0
  169. data/sorbet/rbi/gems/faraday-multipart@1.2.0.rbi +190 -0
  170. data/sorbet/rbi/gems/faraday-net_http@1.0.2.rbi +140 -0
  171. data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +116 -0
  172. data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +119 -0
  173. data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +113 -0
  174. data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +149 -0
  175. data/sorbet/rbi/gems/faraday@1.10.5.rbi +1620 -0
  176. data/sorbet/rbi/gems/hansi@0.2.1.rbi +9 -0
  177. data/sorbet/rbi/gems/hashdiff@1.1.2.rbi +174 -0
  178. data/sorbet/rbi/gems/i18n@1.14.7.rbi +1328 -0
  179. data/sorbet/rbi/gems/ice_nine@0.11.2.rbi +145 -0
  180. data/sorbet/rbi/gems/io-console@0.8.0.rbi +9 -0
  181. data/sorbet/rbi/gems/json@2.9.1.rbi +282 -0
  182. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +8057 -0
  183. data/sorbet/rbi/gems/logger@1.7.0.rbi +260 -0
  184. data/sorbet/rbi/gems/loofah@2.24.0.rbi +571 -0
  185. data/sorbet/rbi/gems/memoizable@0.4.2.rbi +131 -0
  186. data/sorbet/rbi/gems/memosa@0.8.2.rbi +185 -0
  187. data/sorbet/rbi/gems/minitest@5.26.0.rbi +824 -0
  188. data/sorbet/rbi/gems/money@6.19.0.rbi +815 -0
  189. data/sorbet/rbi/gems/morpher@0.4.2.rbi +388 -0
  190. data/sorbet/rbi/gems/mprelude@0.1.0.rbi +140 -0
  191. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +180 -0
  192. data/sorbet/rbi/gems/multipart-post@2.4.1.rbi +154 -0
  193. data/sorbet/rbi/gems/mustermann-contrib@3.0.3.rbi +9 -0
  194. data/sorbet/rbi/gems/mustermann@3.0.3.rbi +809 -0
  195. data/sorbet/rbi/gems/netrc@0.11.0.rbi +112 -0
  196. data/sorbet/rbi/gems/nokogiri@1.19.1.rbi +3412 -0
  197. data/sorbet/rbi/gems/parallel@1.26.3.rbi +234 -0
  198. data/sorbet/rbi/gems/parser@3.3.7.0.rbi +4877 -0
  199. data/sorbet/rbi/gems/pp@0.6.2.rbi +176 -0
  200. data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +155 -0
  201. data/sorbet/rbi/gems/prism@1.5.1.rbi +26368 -0
  202. data/sorbet/rbi/gems/procto@0.0.3.rbi +9 -0
  203. data/sorbet/rbi/gems/psych@5.2.3.rbi +806 -0
  204. data/sorbet/rbi/gems/public_suffix@6.0.1.rbi +267 -0
  205. data/sorbet/rbi/gems/racc@1.8.1.rbi +120 -0
  206. data/sorbet/rbi/gems/rack-session@2.1.1.rbi +458 -0
  207. data/sorbet/rbi/gems/rack-test@2.2.0.rbi +405 -0
  208. data/sorbet/rbi/gems/rack@3.1.14.rbi +2774 -0
  209. data/sorbet/rbi/gems/rackup@2.2.1.rbi +132 -0
  210. data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +266 -0
  211. data/sorbet/rbi/gems/rails-html-sanitizer@1.6.2.rbi +545 -0
  212. data/sorbet/rbi/gems/railties@8.0.4.rbi +2150 -0
  213. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +333 -0
  214. data/sorbet/rbi/gems/rake@13.2.1.rbi +2054 -0
  215. data/sorbet/rbi/gems/rbi@0.2.3.rbi +3961 -0
  216. data/sorbet/rbi/gems/rdoc@6.13.1.rbi +6784 -0
  217. data/sorbet/rbi/gems/regexp_parser@2.11.3.rbi +3020 -0
  218. data/sorbet/rbi/gems/reline@0.6.0.rbi +9 -0
  219. data/sorbet/rbi/gems/rexml@3.4.2.rbi +1777 -0
  220. data/sorbet/rbi/gems/rubocop-ast@1.38.0.rbi +5293 -0
  221. data/sorbet/rbi/gems/rubocop@1.71.1.rbi +31846 -0
  222. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +980 -0
  223. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +9 -0
  224. data/sorbet/rbi/gems/securerandom@0.4.1.rbi +33 -0
  225. data/sorbet/rbi/gems/sentry-ruby@5.22.1.rbi +3782 -0
  226. data/sorbet/rbi/gems/spoom@1.5.1.rbi +4321 -0
  227. data/sorbet/rbi/gems/stringio@3.1.2.rbi +9 -0
  228. data/sorbet/rbi/gems/tapioca@0.16.8.rbi +3399 -0
  229. data/sorbet/rbi/gems/thor@1.3.2.rbi +2012 -0
  230. data/sorbet/rbi/gems/thread_safe@0.3.6.rbi +711 -0
  231. data/sorbet/rbi/gems/timeout@0.4.4.rbi +80 -0
  232. data/sorbet/rbi/gems/tsort@0.2.0.rbi +50 -0
  233. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +1677 -0
  234. data/sorbet/rbi/gems/unicode-display_width@2.6.0.rbi +62 -0
  235. data/sorbet/rbi/gems/uri@1.1.0.rbi +760 -0
  236. data/sorbet/rbi/gems/useragent@0.16.11.rbi +9 -0
  237. data/sorbet/rbi/gems/webmock@3.24.0.rbi +1362 -0
  238. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +345 -0
  239. data/sorbet/rbi/gems/yard@0.9.37.rbi +8795 -0
  240. data/sorbet/rbi/gems/zeitwerk@2.7.1.rbi +589 -0
  241. data/sorbet/tapioca/config.yml +45 -0
  242. data/sorbet/tapioca/require.rb +8 -0
  243. data/sorbet/tapioca/sorbet/rbi/dsl/.gitattributes +1 -0
  244. data/sorbet/tapioca/sorbet/rbi/dsl/active_support/callbacks.rbi +23 -0
  245. metadata +737 -0
@@ -0,0 +1,2891 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `activemodel` gem.
5
+ # Please instead update this file by running `bin/tapioca gem activemodel`.
6
+
7
+
8
+ # source://activemodel//lib/active_model/gem_version.rb#3
9
+ module ActiveModel
10
+ extend ::ActiveSupport::Autoload
11
+
12
+ class << self
13
+ # source://activemodel//lib/active_model/deprecator.rb#4
14
+ def deprecator; end
15
+
16
+ # source://activemodel//lib/active_model.rb#76
17
+ def eager_load!; end
18
+
19
+ # source://activemodel//lib/active_model/gem_version.rb#5
20
+ def gem_version; end
21
+
22
+ # source://activemodel//lib/active_model/version.rb#7
23
+ def version; end
24
+ end
25
+ end
26
+
27
+ # source://activemodel//lib/active_model/api.rb#59
28
+ module ActiveModel::API
29
+ include ::ActiveModel::ForbiddenAttributesProtection
30
+ include ::ActiveModel::AttributeAssignment
31
+ extend ::ActiveSupport::Concern
32
+ include GeneratedInstanceMethods
33
+ include ::ActiveSupport::Callbacks
34
+ include ::ActiveModel::Validations::HelperMethods
35
+ include ::ActiveModel::Validations
36
+ include ::ActiveModel::Conversion
37
+
38
+ mixes_in_class_methods GeneratedClassMethods
39
+ mixes_in_class_methods ::ActiveModel::Validations::ClassMethods
40
+ mixes_in_class_methods ::ActiveModel::Callbacks
41
+ mixes_in_class_methods ::ActiveSupport::Callbacks::ClassMethods
42
+ mixes_in_class_methods ::ActiveSupport::DescendantsTracker
43
+ mixes_in_class_methods ::ActiveModel::Translation
44
+ mixes_in_class_methods ::ActiveModel::Validations::HelperMethods
45
+ mixes_in_class_methods ::ActiveModel::Conversion::ClassMethods
46
+
47
+ # source://activemodel//lib/active_model/api.rb#80
48
+ def initialize(attributes = T.unsafe(nil)); end
49
+
50
+ # source://activemodel//lib/active_model/api.rb#95
51
+ def persisted?; end
52
+
53
+ module GeneratedClassMethods
54
+ def __callbacks; end
55
+ def __callbacks=(value); end
56
+ def _validators; end
57
+ def _validators=(value); end
58
+ def _validators?; end
59
+ def param_delimiter; end
60
+ def param_delimiter=(value); end
61
+ def param_delimiter?; end
62
+ end
63
+
64
+ module GeneratedInstanceMethods
65
+ def __callbacks; end
66
+ def _validators; end
67
+ def _validators?; end
68
+ def param_delimiter=(value); end
69
+ end
70
+ end
71
+
72
+ # source://activemodel//lib/active_model/access.rb#7
73
+ module ActiveModel::Access
74
+ # source://activemodel//lib/active_model/access.rb#8
75
+ def slice(*methods); end
76
+
77
+ # source://activemodel//lib/active_model/access.rb#12
78
+ def values_at(*methods); end
79
+ end
80
+
81
+ # source://activemodel//lib/active_model/attribute.rb#6
82
+ class ActiveModel::Attribute
83
+ # source://activemodel//lib/active_model/attribute.rb#33
84
+ def initialize(name, value_before_type_cast, type, original_attribute = T.unsafe(nil), value = T.unsafe(nil)); end
85
+
86
+ # source://activemodel//lib/active_model/attribute.rb#115
87
+ def ==(other); end
88
+
89
+ # source://activemodel//lib/active_model/attribute.rb#107
90
+ def came_from_user?; end
91
+
92
+ # source://activemodel//lib/active_model/attribute.rb#66
93
+ def changed?; end
94
+
95
+ # source://activemodel//lib/active_model/attribute.rb#70
96
+ def changed_in_place?; end
97
+
98
+ # source://activemodel//lib/active_model/attribute.rb#135
99
+ def encode_with(coder); end
100
+
101
+ # source://activemodel//lib/active_model/attribute.rb#115
102
+ def eql?(other); end
103
+
104
+ # source://activemodel//lib/active_model/attribute.rb#74
105
+ def forgetting_assignment; end
106
+
107
+ # source://activemodel//lib/active_model/attribute.rb#111
108
+ def has_been_read?; end
109
+
110
+ # source://activemodel//lib/active_model/attribute.rb#123
111
+ def hash; end
112
+
113
+ # source://activemodel//lib/active_model/attribute.rb#127
114
+ def init_with(coder); end
115
+
116
+ # source://activemodel//lib/active_model/attribute.rb#103
117
+ def initialized?; end
118
+
119
+ # source://activemodel//lib/active_model/attribute.rb#29
120
+ def name; end
121
+
122
+ # source://activemodel//lib/active_model/attribute.rb#47
123
+ def original_value; end
124
+
125
+ # source://activemodel//lib/active_model/attribute.rb#143
126
+ def original_value_for_database; end
127
+
128
+ # source://activemodel//lib/active_model/attribute.rb#62
129
+ def serializable?(&block); end
130
+
131
+ # source://activemodel//lib/active_model/attribute.rb#29
132
+ def type; end
133
+
134
+ # source://activemodel//lib/active_model/attribute.rb#99
135
+ def type_cast(*_arg0); end
136
+
137
+ # source://activemodel//lib/active_model/attribute.rb#41
138
+ def value(&_); end
139
+
140
+ # source://activemodel//lib/active_model/attribute.rb#29
141
+ def value_before_type_cast; end
142
+
143
+ # source://activemodel//lib/active_model/attribute.rb#55
144
+ def value_for_database; end
145
+
146
+ # source://activemodel//lib/active_model/attribute.rb#87
147
+ def with_cast_value(value); end
148
+
149
+ # source://activemodel//lib/active_model/attribute.rb#91
150
+ def with_type(type); end
151
+
152
+ # source://activemodel//lib/active_model/attribute/user_provided_default.rb#7
153
+ def with_user_default(value); end
154
+
155
+ # source://activemodel//lib/active_model/attribute.rb#83
156
+ def with_value_from_database(value); end
157
+
158
+ # source://activemodel//lib/active_model/attribute.rb#78
159
+ def with_value_from_user(value); end
160
+
161
+ private
162
+
163
+ # source://activemodel//lib/active_model/attribute.rb#169
164
+ def _original_value_for_database; end
165
+
166
+ # source://activemodel//lib/active_model/attribute.rb#165
167
+ def _value_for_database; end
168
+
169
+ # source://activemodel//lib/active_model/attribute.rb#152
170
+ def assigned?; end
171
+
172
+ # source://activemodel//lib/active_model/attribute.rb#161
173
+ def changed_from_assignment?; end
174
+
175
+ # source://activemodel//lib/active_model/attribute.rb#155
176
+ def initialize_dup(other); end
177
+
178
+ # source://activemodel//lib/active_model/attribute.rb#152
179
+ def original_attribute; end
180
+
181
+ class << self
182
+ # source://activemodel//lib/active_model/attribute.rb#8
183
+ def from_database(name, value_before_type_cast, type, value = T.unsafe(nil)); end
184
+
185
+ # source://activemodel//lib/active_model/attribute.rb#12
186
+ def from_user(name, value_before_type_cast, type, original_attribute = T.unsafe(nil)); end
187
+
188
+ # source://activemodel//lib/active_model/attribute.rb#20
189
+ def null(name); end
190
+
191
+ # source://activemodel//lib/active_model/attribute.rb#24
192
+ def uninitialized(name, type); end
193
+
194
+ # source://activemodel//lib/active_model/attribute.rb#16
195
+ def with_cast_value(name, value_before_type_cast, type); end
196
+ end
197
+ end
198
+
199
+ # source://activemodel//lib/active_model/attribute.rb#173
200
+ class ActiveModel::Attribute::FromDatabase < ::ActiveModel::Attribute
201
+ # source://activemodel//lib/active_model/attribute.rb#178
202
+ def forgetting_assignment; end
203
+
204
+ # source://activemodel//lib/active_model/attribute.rb#174
205
+ def type_cast(value); end
206
+
207
+ private
208
+
209
+ # source://activemodel//lib/active_model/attribute.rb#192
210
+ def _original_value_for_database; end
211
+ end
212
+
213
+ # source://activemodel//lib/active_model/attribute.rb#197
214
+ class ActiveModel::Attribute::FromUser < ::ActiveModel::Attribute
215
+ # source://activemodel//lib/active_model/attribute.rb#202
216
+ def came_from_user?; end
217
+
218
+ # source://activemodel//lib/active_model/attribute.rb#198
219
+ def type_cast(value); end
220
+
221
+ private
222
+
223
+ # source://activemodel//lib/active_model/attribute.rb#207
224
+ def _value_for_database; end
225
+ end
226
+
227
+ # source://activemodel//lib/active_model/attribute.rb#222
228
+ class ActiveModel::Attribute::Null < ::ActiveModel::Attribute
229
+ # source://activemodel//lib/active_model/attribute.rb#223
230
+ def initialize(name); end
231
+
232
+ # source://activemodel//lib/active_model/attribute.rb#227
233
+ def type_cast(*_arg0); end
234
+
235
+ # source://activemodel//lib/active_model/attribute.rb#235
236
+ def with_cast_value(value); end
237
+
238
+ # source://activemodel//lib/active_model/attribute.rb#231
239
+ def with_type(type); end
240
+
241
+ # source://activemodel//lib/active_model/attribute.rb#235
242
+ def with_value_from_database(value); end
243
+
244
+ # source://activemodel//lib/active_model/attribute.rb#235
245
+ def with_value_from_user(value); end
246
+ end
247
+
248
+ # source://activemodel//lib/active_model/attribute.rb#242
249
+ class ActiveModel::Attribute::Uninitialized < ::ActiveModel::Attribute
250
+ # source://activemodel//lib/active_model/attribute.rb#245
251
+ def initialize(name, type); end
252
+
253
+ # source://activemodel//lib/active_model/attribute.rb#266
254
+ def forgetting_assignment; end
255
+
256
+ # source://activemodel//lib/active_model/attribute.rb#262
257
+ def initialized?; end
258
+
259
+ # source://activemodel//lib/active_model/attribute.rb#255
260
+ def original_value; end
261
+
262
+ # source://activemodel//lib/active_model/attribute.rb#249
263
+ def value; end
264
+
265
+ # source://activemodel//lib/active_model/attribute.rb#259
266
+ def value_for_database; end
267
+
268
+ # source://activemodel//lib/active_model/attribute.rb#270
269
+ def with_type(type); end
270
+ end
271
+
272
+ # source://activemodel//lib/active_model/attribute.rb#243
273
+ ActiveModel::Attribute::Uninitialized::UNINITIALIZED_ORIGINAL_VALUE = T.let(T.unsafe(nil), Object)
274
+
275
+ # source://activemodel//lib/active_model/attribute/user_provided_default.rb#11
276
+ class ActiveModel::Attribute::UserProvidedDefault < ::ActiveModel::Attribute::FromUser
277
+ # source://activemodel//lib/active_model/attribute/user_provided_default.rb#12
278
+ def initialize(name, value, type, database_default); end
279
+
280
+ # source://activemodel//lib/active_model/attribute/user_provided_default.rb#29
281
+ def marshal_dump; end
282
+
283
+ # source://activemodel//lib/active_model/attribute/user_provided_default.rb#40
284
+ def marshal_load(values); end
285
+
286
+ # source://activemodel//lib/active_model/attribute/user_provided_default.rb#17
287
+ def value_before_type_cast; end
288
+
289
+ # source://activemodel//lib/active_model/attribute/user_provided_default.rb#25
290
+ def with_type(type); end
291
+
292
+ private
293
+
294
+ # source://activemodel//lib/active_model/attribute/user_provided_default.rb#52
295
+ def user_provided_value; end
296
+ end
297
+
298
+ # source://activemodel//lib/active_model/attribute.rb#212
299
+ class ActiveModel::Attribute::WithCastValue < ::ActiveModel::Attribute
300
+ # source://activemodel//lib/active_model/attribute.rb#217
301
+ def changed_in_place?; end
302
+
303
+ # source://activemodel//lib/active_model/attribute.rb#213
304
+ def type_cast(value); end
305
+ end
306
+
307
+ # source://activemodel//lib/active_model/attribute_assignment.rb#6
308
+ module ActiveModel::AttributeAssignment
309
+ include ::ActiveModel::ForbiddenAttributesProtection
310
+
311
+ # source://activemodel//lib/active_model/attribute_assignment.rb#28
312
+ def assign_attributes(new_attributes); end
313
+
314
+ # source://activemodel//lib/active_model/attribute_assignment.rb#56
315
+ def attribute_writer_missing(name, value); end
316
+
317
+ # source://activemodel//lib/active_model/attribute_assignment.rb#28
318
+ def attributes=(new_attributes); end
319
+
320
+ private
321
+
322
+ # source://activemodel//lib/active_model/attribute_assignment.rb#67
323
+ def _assign_attribute(k, v); end
324
+
325
+ # source://activemodel//lib/active_model/attribute_assignment.rb#61
326
+ def _assign_attributes(attributes); end
327
+ end
328
+
329
+ # source://activemodel//lib/active_model/attribute_methods.rb#64
330
+ module ActiveModel::AttributeMethods
331
+ extend ::ActiveSupport::Concern
332
+ include GeneratedInstanceMethods
333
+
334
+ mixes_in_class_methods GeneratedClassMethods
335
+ mixes_in_class_methods ::ActiveModel::AttributeMethods::ClassMethods
336
+
337
+ # source://activemodel//lib/active_model/attribute_methods.rb#520
338
+ def attribute_missing(match, *_arg1, **_arg2, &_arg3); end
339
+
340
+ # source://activemodel//lib/active_model/attribute_methods.rb#507
341
+ def method_missing(method, *_arg1, **_arg2, &_arg3); end
342
+
343
+ # source://activemodel//lib/active_model/attribute_methods.rb#528
344
+ def respond_to?(method, include_private_methods = T.unsafe(nil)); end
345
+
346
+ def respond_to_without_attributes?(*_arg0); end
347
+
348
+ private
349
+
350
+ # source://activemodel//lib/active_model/attribute_methods.rb#556
351
+ def _read_attribute(attr); end
352
+
353
+ # source://activemodel//lib/active_model/attribute_methods.rb#541
354
+ def attribute_method?(attr_name); end
355
+
356
+ # source://activemodel//lib/active_model/attribute_methods.rb#547
357
+ def matched_attribute_method(method_name); end
358
+
359
+ # source://activemodel//lib/active_model/attribute_methods.rb#552
360
+ def missing_attribute(attr_name, stack); end
361
+
362
+ module GeneratedClassMethods
363
+ def attribute_aliases; end
364
+ def attribute_aliases=(value); end
365
+ def attribute_aliases?; end
366
+ def attribute_method_patterns; end
367
+ def attribute_method_patterns=(value); end
368
+ def attribute_method_patterns?; end
369
+ end
370
+
371
+ module GeneratedInstanceMethods
372
+ def attribute_aliases; end
373
+ def attribute_aliases?; end
374
+ def attribute_method_patterns; end
375
+ def attribute_method_patterns?; end
376
+ end
377
+ end
378
+
379
+ # source://activemodel//lib/active_model/attribute_methods.rb#560
380
+ module ActiveModel::AttributeMethods::AttrNames
381
+ class << self
382
+ # source://activemodel//lib/active_model/attribute_methods.rb#577
383
+ def define_attribute_accessor_method(owner, attr_name, writer: T.unsafe(nil)); end
384
+ end
385
+ end
386
+
387
+ # source://activemodel//lib/active_model/attribute_methods.rb#561
388
+ ActiveModel::AttributeMethods::AttrNames::DEF_SAFE_NAME = T.let(T.unsafe(nil), Regexp)
389
+
390
+ # source://activemodel//lib/active_model/attribute_methods.rb#68
391
+ ActiveModel::AttributeMethods::CALL_COMPILABLE_REGEXP = T.let(T.unsafe(nil), Regexp)
392
+
393
+ # source://activemodel//lib/active_model/attribute_methods.rb#75
394
+ module ActiveModel::AttributeMethods::ClassMethods
395
+ # source://activemodel//lib/active_model/attribute_methods.rb#203
396
+ def alias_attribute(new_name, old_name); end
397
+
398
+ # source://activemodel//lib/active_model/attribute_methods.rb#226
399
+ def alias_attribute_method_definition(code_generator, pattern, new_name, old_name); end
400
+
401
+ # source://activemodel//lib/active_model/attribute_methods.rb#382
402
+ def aliases_by_attribute_name; end
403
+
404
+ # source://activemodel//lib/active_model/attribute_methods.rb#245
405
+ def attribute_alias(name); end
406
+
407
+ # source://activemodel//lib/active_model/attribute_methods.rb#240
408
+ def attribute_alias?(new_name); end
409
+
410
+ # source://activemodel//lib/active_model/attribute_methods.rb#175
411
+ def attribute_method_affix(*affixes); end
412
+
413
+ # source://activemodel//lib/active_model/attribute_methods.rb#106
414
+ def attribute_method_prefix(*prefixes, parameters: T.unsafe(nil)); end
415
+
416
+ # source://activemodel//lib/active_model/attribute_methods.rb#140
417
+ def attribute_method_suffix(*suffixes, parameters: T.unsafe(nil)); end
418
+
419
+ # source://activemodel//lib/active_model/attribute_methods.rb#311
420
+ def define_attribute_method(attr_name, _owner: T.unsafe(nil), as: T.unsafe(nil)); end
421
+
422
+ # source://activemodel//lib/active_model/attribute_methods.rb#320
423
+ def define_attribute_method_pattern(pattern, attr_name, owner:, as:, override: T.unsafe(nil)); end
424
+
425
+ # source://activemodel//lib/active_model/attribute_methods.rb#272
426
+ def define_attribute_methods(*attr_names); end
427
+
428
+ # source://activemodel//lib/active_model/attribute_methods.rb#211
429
+ def eagerly_generate_alias_attribute_methods(new_name, old_name); end
430
+
431
+ # source://activemodel//lib/active_model/attribute_methods.rb#217
432
+ def generate_alias_attribute_methods(code_generator, new_name, old_name); end
433
+
434
+ # source://activemodel//lib/active_model/attribute_methods.rb#375
435
+ def undefine_attribute_methods; end
436
+
437
+ private
438
+
439
+ # source://activemodel//lib/active_model/attribute_methods.rb#417
440
+ def attribute_method_patterns_cache; end
441
+
442
+ # source://activemodel//lib/active_model/attribute_methods.rb#421
443
+ def attribute_method_patterns_matching(method_name); end
444
+
445
+ # source://activemodel//lib/active_model/attribute_methods.rb#445
446
+ def build_mangled_name(name); end
447
+
448
+ # source://activemodel//lib/active_model/attribute_methods.rb#455
449
+ def define_call(code_generator, name, target_name, mangled_name, parameters, call_args, namespace:, as:); end
450
+
451
+ # source://activemodel//lib/active_model/attribute_methods.rb#430
452
+ def define_proxy_call(code_generator, name, proxy_target, parameters, *call_args, namespace:, as: T.unsafe(nil)); end
453
+
454
+ # source://activemodel//lib/active_model/attribute_methods.rb#400
455
+ def generated_attribute_methods; end
456
+
457
+ # source://activemodel//lib/active_model/attribute_methods.rb#387
458
+ def inherited(base); end
459
+
460
+ # source://activemodel//lib/active_model/attribute_methods.rb#404
461
+ def instance_method_already_implemented?(method_name); end
462
+
463
+ # source://activemodel//lib/active_model/attribute_methods.rb#396
464
+ def resolve_attribute_name(name); end
465
+ end
466
+
467
+ # source://activemodel//lib/active_model/attribute_methods.rb#471
468
+ class ActiveModel::AttributeMethods::ClassMethods::AttributeMethodPattern
469
+ # source://activemodel//lib/active_model/attribute_methods.rb#476
470
+ def initialize(prefix: T.unsafe(nil), suffix: T.unsafe(nil), parameters: T.unsafe(nil)); end
471
+
472
+ # source://activemodel//lib/active_model/attribute_methods.rb#485
473
+ def match(method_name); end
474
+
475
+ # source://activemodel//lib/active_model/attribute_methods.rb#491
476
+ def method_name(attr_name); end
477
+
478
+ # source://activemodel//lib/active_model/attribute_methods.rb#472
479
+ def parameters; end
480
+
481
+ # source://activemodel//lib/active_model/attribute_methods.rb#472
482
+ def prefix; end
483
+
484
+ # source://activemodel//lib/active_model/attribute_methods.rb#472
485
+ def proxy_target; end
486
+
487
+ # source://activemodel//lib/active_model/attribute_methods.rb#472
488
+ def suffix; end
489
+ end
490
+
491
+ # source://activemodel//lib/active_model/attribute_methods.rb#474
492
+ class ActiveModel::AttributeMethods::ClassMethods::AttributeMethodPattern::AttributeMethod < ::Struct
493
+ def attr_name; end
494
+ def attr_name=(_); end
495
+ def proxy_target; end
496
+ def proxy_target=(_); end
497
+
498
+ class << self
499
+ def [](*_arg0); end
500
+ def inspect; end
501
+ def keyword_init?; end
502
+ def members; end
503
+ def new(*_arg0); end
504
+ end
505
+ end
506
+
507
+ # source://activemodel//lib/active_model/attribute_methods.rb#67
508
+ ActiveModel::AttributeMethods::NAME_COMPILABLE_REGEXP = T.let(T.unsafe(nil), Regexp)
509
+
510
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#7
511
+ class ActiveModel::AttributeMutationTracker
512
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#10
513
+ def initialize(attributes); end
514
+
515
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#40
516
+ def any_changes?; end
517
+
518
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#34
519
+ def change_to_attribute(attr_name); end
520
+
521
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#44
522
+ def changed?(attr_name, from: T.unsafe(nil), to: T.unsafe(nil)); end
523
+
524
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#14
525
+ def changed_attribute_names; end
526
+
527
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#50
528
+ def changed_in_place?(attr_name); end
529
+
530
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#18
531
+ def changed_values; end
532
+
533
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#26
534
+ def changes; end
535
+
536
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#63
537
+ def force_change(attr_name); end
538
+
539
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#54
540
+ def forget_change(attr_name); end
541
+
542
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#59
543
+ def original_value(attr_name); end
544
+
545
+ private
546
+
547
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#74
548
+ def attr_names; end
549
+
550
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#78
551
+ def attribute_changed?(attr_name); end
552
+
553
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#68
554
+ def attributes; end
555
+
556
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#82
557
+ def fetch_value(attr_name); end
558
+
559
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#70
560
+ def forced_changes; end
561
+
562
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#86
563
+ def type_cast(attr_name, value); end
564
+ end
565
+
566
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#8
567
+ ActiveModel::AttributeMutationTracker::OPTION_NOT_GIVEN = T.let(T.unsafe(nil), Object)
568
+
569
+ # source://activemodel//lib/active_model/attribute_registration.rb#8
570
+ module ActiveModel::AttributeRegistration
571
+ extend ::ActiveSupport::Concern
572
+
573
+ mixes_in_class_methods ::ActiveModel::AttributeRegistration::ClassMethods
574
+ end
575
+
576
+ # source://activemodel//lib/active_model/attribute_registration.rb#11
577
+ module ActiveModel::AttributeRegistration::ClassMethods
578
+ # source://activemodel//lib/active_model/attribute_registration.rb#31
579
+ def _default_attributes; end
580
+
581
+ # source://activemodel//lib/active_model/attribute_registration.rb#12
582
+ def attribute(name, type = T.unsafe(nil), default: T.unsafe(nil), **options); end
583
+
584
+ # source://activemodel//lib/active_model/attribute_registration.rb#37
585
+ def attribute_types; end
586
+
587
+ # source://activemodel//lib/active_model/attribute_registration.rb#23
588
+ def decorate_attributes(names = T.unsafe(nil), &decorator); end
589
+
590
+ # source://activemodel//lib/active_model/attribute_registration.rb#43
591
+ def type_for_attribute(attribute_name, &block); end
592
+
593
+ private
594
+
595
+ # source://activemodel//lib/active_model/attribute_registration.rb#81
596
+ def apply_pending_attribute_modifications(attribute_set); end
597
+
598
+ # source://activemodel//lib/active_model/attribute_registration.rb#112
599
+ def hook_attribute_type(attribute, type); end
600
+
601
+ # source://activemodel//lib/active_model/attribute_registration.rb#77
602
+ def pending_attribute_modifications; end
603
+
604
+ # source://activemodel//lib/active_model/attribute_registration.rb#91
605
+ def reset_default_attributes; end
606
+
607
+ # source://activemodel//lib/active_model/attribute_registration.rb#96
608
+ def reset_default_attributes!; end
609
+
610
+ # source://activemodel//lib/active_model/attribute_registration.rb#101
611
+ def resolve_attribute_name(name); end
612
+
613
+ # source://activemodel//lib/active_model/attribute_registration.rb#105
614
+ def resolve_type_name(name, **options); end
615
+ end
616
+
617
+ # source://activemodel//lib/active_model/attribute_registration.rb#67
618
+ class ActiveModel::AttributeRegistration::ClassMethods::PendingDecorator < ::Struct
619
+ # source://activemodel//lib/active_model/attribute_registration.rb#68
620
+ def apply_to(attribute_set); end
621
+
622
+ def decorator; end
623
+ def decorator=(_); end
624
+ def names; end
625
+ def names=(_); end
626
+
627
+ class << self
628
+ def [](*_arg0); end
629
+ def inspect; end
630
+ def keyword_init?; end
631
+ def members; end
632
+ def new(*_arg0); end
633
+ end
634
+ end
635
+
636
+ # source://activemodel//lib/active_model/attribute_registration.rb#61
637
+ class ActiveModel::AttributeRegistration::ClassMethods::PendingDefault < ::Struct
638
+ # source://activemodel//lib/active_model/attribute_registration.rb#62
639
+ def apply_to(attribute_set); end
640
+
641
+ def default; end
642
+ def default=(_); end
643
+ def name; end
644
+ def name=(_); end
645
+
646
+ class << self
647
+ def [](*_arg0); end
648
+ def inspect; end
649
+ def keyword_init?; end
650
+ def members; end
651
+ def new(*_arg0); end
652
+ end
653
+ end
654
+
655
+ # source://activemodel//lib/active_model/attribute_registration.rb#54
656
+ class ActiveModel::AttributeRegistration::ClassMethods::PendingType < ::Struct
657
+ # source://activemodel//lib/active_model/attribute_registration.rb#55
658
+ def apply_to(attribute_set); end
659
+
660
+ def name; end
661
+ def name=(_); end
662
+ def type; end
663
+ def type=(_); end
664
+
665
+ class << self
666
+ def [](*_arg0); end
667
+ def inspect; end
668
+ def keyword_init?; end
669
+ def members; end
670
+ def new(*_arg0); end
671
+ end
672
+ end
673
+
674
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#6
675
+ class ActiveModel::AttributeSet
676
+ # source://activemodel//lib/active_model/attribute_set.rb#12
677
+ def initialize(attributes); end
678
+
679
+ # source://activemodel//lib/active_model/attribute_set.rb#106
680
+ def ==(other); end
681
+
682
+ # source://activemodel//lib/active_model/attribute_set.rb#16
683
+ def [](name); end
684
+
685
+ # source://activemodel//lib/active_model/attribute_set.rb#20
686
+ def []=(name, value); end
687
+
688
+ # source://activemodel//lib/active_model/attribute_set.rb#93
689
+ def accessed; end
690
+
691
+ # source://activemodel//lib/active_model/attribute_set.rb#24
692
+ def cast_types; end
693
+
694
+ # source://activemodel//lib/active_model/attribute_set.rb#73
695
+ def deep_dup; end
696
+
697
+ # source://activemodel//lib/active_model/attribute_set.rb#10
698
+ def each_value(*_arg0, **_arg1, &_arg2); end
699
+
700
+ # source://activemodel//lib/active_model/attribute_set.rb#10
701
+ def except(*_arg0, **_arg1, &_arg2); end
702
+
703
+ # source://activemodel//lib/active_model/attribute_set.rb#10
704
+ def fetch(*_arg0, **_arg1, &_arg2); end
705
+
706
+ # source://activemodel//lib/active_model/attribute_set.rb#50
707
+ def fetch_value(name, &block); end
708
+
709
+ # source://activemodel//lib/active_model/attribute_set.rb#68
710
+ def freeze; end
711
+
712
+ # source://activemodel//lib/active_model/attribute_set.rb#41
713
+ def include?(name); end
714
+
715
+ # source://activemodel//lib/active_model/attribute_set.rb#41
716
+ def key?(name); end
717
+
718
+ # source://activemodel//lib/active_model/attribute_set.rb#46
719
+ def keys; end
720
+
721
+ # source://activemodel//lib/active_model/attribute_set.rb#97
722
+ def map(&block); end
723
+
724
+ # source://activemodel//lib/active_model/attribute_set.rb#87
725
+ def reset(key); end
726
+
727
+ # source://activemodel//lib/active_model/attribute_set.rb#102
728
+ def reverse_merge!(target_attributes); end
729
+
730
+ # source://activemodel//lib/active_model/attribute_set.rb#36
731
+ def to_h; end
732
+
733
+ # source://activemodel//lib/active_model/attribute_set.rb#36
734
+ def to_hash; end
735
+
736
+ # source://activemodel//lib/active_model/attribute_set.rb#28
737
+ def values_before_type_cast; end
738
+
739
+ # source://activemodel//lib/active_model/attribute_set.rb#32
740
+ def values_for_database; end
741
+
742
+ # source://activemodel//lib/active_model/attribute_set.rb#64
743
+ def write_cast_value(name, value); end
744
+
745
+ # source://activemodel//lib/active_model/attribute_set.rb#54
746
+ def write_from_database(name, value); end
747
+
748
+ # source://activemodel//lib/active_model/attribute_set.rb#58
749
+ def write_from_user(name, value); end
750
+
751
+ protected
752
+
753
+ # source://activemodel//lib/active_model/attribute_set.rb#111
754
+ def attributes; end
755
+
756
+ private
757
+
758
+ # source://activemodel//lib/active_model/attribute_set.rb#114
759
+ def default_attribute(name); end
760
+
761
+ # source://activemodel//lib/active_model/attribute_set.rb#82
762
+ def initialize_clone(_); end
763
+
764
+ # source://activemodel//lib/active_model/attribute_set.rb#77
765
+ def initialize_dup(_); end
766
+ end
767
+
768
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#7
769
+ class ActiveModel::AttributeSet::Builder
770
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#10
771
+ def initialize(types, default_attributes = T.unsafe(nil)); end
772
+
773
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#15
774
+ def build_from_database(values = T.unsafe(nil), additional_types = T.unsafe(nil)); end
775
+
776
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#8
777
+ def default_attributes; end
778
+
779
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#8
780
+ def types; end
781
+ end
782
+
783
+ # source://activemodel//lib/active_model/attribute_set/yaml_encoder.rb#7
784
+ class ActiveModel::AttributeSet::YAMLEncoder
785
+ # source://activemodel//lib/active_model/attribute_set/yaml_encoder.rb#8
786
+ def initialize(default_types); end
787
+
788
+ # source://activemodel//lib/active_model/attribute_set/yaml_encoder.rb#22
789
+ def decode(coder); end
790
+
791
+ # source://activemodel//lib/active_model/attribute_set/yaml_encoder.rb#12
792
+ def encode(attribute_set, coder); end
793
+
794
+ private
795
+
796
+ # source://activemodel//lib/active_model/attribute_set/yaml_encoder.rb#37
797
+ def default_types; end
798
+ end
799
+
800
+ # source://activemodel//lib/active_model/attributes.rb#30
801
+ module ActiveModel::Attributes
802
+ extend ::ActiveSupport::Concern
803
+ include GeneratedInstanceMethods
804
+ include ::ActiveModel::AttributeRegistration
805
+ include ::ActiveModel::AttributeMethods
806
+
807
+ mixes_in_class_methods GeneratedClassMethods
808
+ mixes_in_class_methods ::ActiveModel::AttributeRegistration::ClassMethods
809
+ mixes_in_class_methods ::ActiveModel::AttributeMethods::ClassMethods
810
+ mixes_in_class_methods ::ActiveModel::Attributes::ClassMethods
811
+
812
+ # source://activemodel//lib/active_model/attributes.rb#106
813
+ def initialize(*_arg0); end
814
+
815
+ # source://activemodel//lib/active_model/attributes.rb#146
816
+ def attribute_names; end
817
+
818
+ # source://activemodel//lib/active_model/attributes.rb#131
819
+ def attributes; end
820
+
821
+ # source://activemodel//lib/active_model/attributes.rb#150
822
+ def freeze; end
823
+
824
+ private
825
+
826
+ # source://activemodel//lib/active_model/attributes.rb#156
827
+ def _write_attribute(attr_name, value); end
828
+
829
+ # source://activemodel//lib/active_model/attributes.rb#161
830
+ def attribute(attr_name); end
831
+
832
+ # source://activemodel//lib/active_model/attributes.rb#156
833
+ def attribute=(attr_name, value); end
834
+
835
+ # source://activemodel//lib/active_model/attributes.rb#111
836
+ def initialize_dup(other); end
837
+
838
+ module GeneratedClassMethods
839
+ def attribute_aliases; end
840
+ def attribute_aliases=(value); end
841
+ def attribute_aliases?; end
842
+ def attribute_method_patterns; end
843
+ def attribute_method_patterns=(value); end
844
+ def attribute_method_patterns?; end
845
+ end
846
+
847
+ module GeneratedInstanceMethods
848
+ def attribute_aliases; end
849
+ def attribute_aliases?; end
850
+ def attribute_method_patterns; end
851
+ def attribute_method_patterns?; end
852
+ end
853
+ end
854
+
855
+ # source://activemodel//lib/active_model/attributes.rb#39
856
+ module ActiveModel::Attributes::ClassMethods
857
+ # source://activemodel//lib/active_model/attributes.rb#59
858
+ def attribute(name, *_arg1, **_arg2, &_arg3); end
859
+
860
+ # source://activemodel//lib/active_model/attributes.rb#74
861
+ def attribute_names; end
862
+
863
+ private
864
+
865
+ # source://activemodel//lib/active_model/attributes.rb#92
866
+ def define_method_attribute=(canonical_name, owner:, as: T.unsafe(nil)); end
867
+ end
868
+
869
+ # source://activemodel//lib/active_model/validator.rb#179
870
+ class ActiveModel::BlockValidator < ::ActiveModel::EachValidator
871
+ # source://activemodel//lib/active_model/validator.rb#180
872
+ def initialize(options, &block); end
873
+
874
+ private
875
+
876
+ # source://activemodel//lib/active_model/validator.rb#186
877
+ def validate_each(record, attribute, value); end
878
+ end
879
+
880
+ # source://activemodel//lib/active_model/callbacks.rb#65
881
+ module ActiveModel::Callbacks
882
+ # source://activemodel//lib/active_model/callbacks.rb#109
883
+ def define_model_callbacks(*callbacks); end
884
+
885
+ private
886
+
887
+ # source://activemodel//lib/active_model/callbacks.rb#143
888
+ def _define_after_model_callback(klass, callback); end
889
+
890
+ # source://activemodel//lib/active_model/callbacks.rb#136
891
+ def _define_around_model_callback(klass, callback); end
892
+
893
+ # source://activemodel//lib/active_model/callbacks.rb#129
894
+ def _define_before_model_callback(klass, callback); end
895
+
896
+ class << self
897
+ # source://activemodel//lib/active_model/callbacks.rb#66
898
+ def extended(base); end
899
+ end
900
+ end
901
+
902
+ # source://activemodel//lib/active_model/conversion.rb#24
903
+ module ActiveModel::Conversion
904
+ extend ::ActiveSupport::Concern
905
+ include GeneratedInstanceMethods
906
+
907
+ mixes_in_class_methods GeneratedClassMethods
908
+ mixes_in_class_methods ::ActiveModel::Conversion::ClassMethods
909
+
910
+ # source://activemodel//lib/active_model/conversion.rb#67
911
+ def to_key; end
912
+
913
+ # source://activemodel//lib/active_model/conversion.rb#49
914
+ def to_model; end
915
+
916
+ # source://activemodel//lib/active_model/conversion.rb#90
917
+ def to_param; end
918
+
919
+ # source://activemodel//lib/active_model/conversion.rb#103
920
+ def to_partial_path; end
921
+
922
+ module GeneratedClassMethods
923
+ def param_delimiter; end
924
+ def param_delimiter=(value); end
925
+ def param_delimiter?; end
926
+ end
927
+
928
+ module GeneratedInstanceMethods
929
+ def param_delimiter=(value); end
930
+ end
931
+ end
932
+
933
+ # source://activemodel//lib/active_model/conversion.rb#107
934
+ module ActiveModel::Conversion::ClassMethods
935
+ # source://activemodel//lib/active_model/conversion.rb#110
936
+ def _to_partial_path; end
937
+ end
938
+
939
+ # source://activemodel//lib/active_model/dirty.rb#123
940
+ module ActiveModel::Dirty
941
+ extend ::ActiveSupport::Concern
942
+ include GeneratedInstanceMethods
943
+ include ::ActiveModel::AttributeMethods
944
+
945
+ mixes_in_class_methods GeneratedClassMethods
946
+ mixes_in_class_methods ::ActiveModel::AttributeMethods::ClassMethods
947
+
948
+ # source://activemodel//lib/active_model/dirty.rb#264
949
+ def as_json(options = T.unsafe(nil)); end
950
+
951
+ # source://activemodel//lib/active_model/dirty.rb#300
952
+ def attribute_changed?(attr_name, **options); end
953
+
954
+ # source://activemodel//lib/active_model/dirty.rb#367
955
+ def attribute_changed_in_place?(attr_name); end
956
+
957
+ # source://activemodel//lib/active_model/dirty.rb#310
958
+ def attribute_previously_changed?(attr_name, **options); end
959
+
960
+ # source://activemodel//lib/active_model/dirty.rb#315
961
+ def attribute_previously_was(attr_name); end
962
+
963
+ # source://activemodel//lib/active_model/dirty.rb#305
964
+ def attribute_was(attr_name); end
965
+
966
+ # source://activemodel//lib/active_model/dirty.rb#295
967
+ def changed; end
968
+
969
+ # source://activemodel//lib/active_model/dirty.rb#286
970
+ def changed?; end
971
+
972
+ # source://activemodel//lib/active_model/dirty.rb#343
973
+ def changed_attributes; end
974
+
975
+ # source://activemodel//lib/active_model/dirty.rb#353
976
+ def changes; end
977
+
978
+ # source://activemodel//lib/active_model/dirty.rb#272
979
+ def changes_applied; end
980
+
981
+ # source://activemodel//lib/active_model/dirty.rb#331
982
+ def clear_attribute_changes(attr_names); end
983
+
984
+ # source://activemodel//lib/active_model/dirty.rb#325
985
+ def clear_changes_information; end
986
+
987
+ # source://activemodel//lib/active_model/dirty.rb#253
988
+ def init_attributes(other); end
989
+
990
+ # source://activemodel//lib/active_model/dirty.rb#363
991
+ def previous_changes; end
992
+
993
+ # source://activemodel//lib/active_model/dirty.rb#320
994
+ def restore_attributes(attr_names = T.unsafe(nil)); end
995
+
996
+ private
997
+
998
+ # source://activemodel//lib/active_model/dirty.rb#399
999
+ def attribute_change(attr_name); end
1000
+
1001
+ # source://activemodel//lib/active_model/dirty.rb#404
1002
+ def attribute_previous_change(attr_name); end
1003
+
1004
+ # source://activemodel//lib/active_model/dirty.rb#409
1005
+ def attribute_will_change!(attr_name); end
1006
+
1007
+ # source://activemodel//lib/active_model/dirty.rb#378
1008
+ def clear_attribute_change(attr_name); end
1009
+
1010
+ # source://activemodel//lib/active_model/dirty.rb#390
1011
+ def forget_attribute_assignments; end
1012
+
1013
+ # source://activemodel//lib/active_model/dirty.rb#372
1014
+ def init_internals; end
1015
+
1016
+ # source://activemodel//lib/active_model/dirty.rb#248
1017
+ def initialize_dup(other); end
1018
+
1019
+ # source://activemodel//lib/active_model/dirty.rb#394
1020
+ def mutations_before_last_save; end
1021
+
1022
+ # source://activemodel//lib/active_model/dirty.rb#382
1023
+ def mutations_from_database; end
1024
+
1025
+ # source://activemodel//lib/active_model/dirty.rb#414
1026
+ def restore_attribute!(attr_name); end
1027
+
1028
+ module GeneratedClassMethods
1029
+ def attribute_aliases; end
1030
+ def attribute_aliases=(value); end
1031
+ def attribute_aliases?; end
1032
+ def attribute_method_patterns; end
1033
+ def attribute_method_patterns=(value); end
1034
+ def attribute_method_patterns?; end
1035
+ end
1036
+
1037
+ module GeneratedInstanceMethods
1038
+ def attribute_aliases; end
1039
+ def attribute_aliases?; end
1040
+ def attribute_method_patterns; end
1041
+ def attribute_method_patterns?; end
1042
+ end
1043
+ end
1044
+
1045
+ # source://activemodel//lib/active_model/validator.rb#134
1046
+ class ActiveModel::EachValidator < ::ActiveModel::Validator
1047
+ # source://activemodel//lib/active_model/validator.rb#140
1048
+ def initialize(options); end
1049
+
1050
+ # source://activemodel//lib/active_model/validator.rb#135
1051
+ def attributes; end
1052
+
1053
+ # source://activemodel//lib/active_model/validator.rb#168
1054
+ def check_validity!; end
1055
+
1056
+ # source://activemodel//lib/active_model/validator.rb#150
1057
+ def validate(record); end
1058
+
1059
+ # source://activemodel//lib/active_model/validator.rb#161
1060
+ def validate_each(record, attribute, value); end
1061
+
1062
+ private
1063
+
1064
+ # source://activemodel//lib/active_model/validator.rb#172
1065
+ def prepare_value_for_validation(value, record, attr_name); end
1066
+ end
1067
+
1068
+ # source://activemodel//lib/active_model/error.rb#9
1069
+ class ActiveModel::Error
1070
+ # source://activemodel//lib/active_model/error.rb#103
1071
+ def initialize(base, attribute, type = T.unsafe(nil), **options); end
1072
+
1073
+ # source://activemodel//lib/active_model/error.rb#190
1074
+ def ==(other); end
1075
+
1076
+ # source://activemodel//lib/active_model/error.rb#121
1077
+ def attribute; end
1078
+
1079
+ # source://activemodel//lib/active_model/error.rb#119
1080
+ def base; end
1081
+
1082
+ # source://activemodel//lib/active_model/error.rb#149
1083
+ def detail; end
1084
+
1085
+ # source://activemodel//lib/active_model/error.rb#149
1086
+ def details; end
1087
+
1088
+ # source://activemodel//lib/active_model/error.rb#190
1089
+ def eql?(other); end
1090
+
1091
+ # source://activemodel//lib/active_model/error.rb#159
1092
+ def full_message; end
1093
+
1094
+ # source://activemodel//lib/active_model/error.rb#195
1095
+ def hash; end
1096
+
1097
+ # source://activemodel//lib/active_model/error.rb#13
1098
+ def i18n_customize_full_message; end
1099
+
1100
+ # source://activemodel//lib/active_model/error.rb#13
1101
+ def i18n_customize_full_message=(_arg0); end
1102
+
1103
+ # source://activemodel//lib/active_model/error.rb#13
1104
+ def i18n_customize_full_message?; end
1105
+
1106
+ # source://activemodel//lib/active_model/error.rb#199
1107
+ def inspect; end
1108
+
1109
+ # source://activemodel//lib/active_model/error.rb#166
1110
+ def match?(attribute, type = T.unsafe(nil), **options); end
1111
+
1112
+ # source://activemodel//lib/active_model/error.rb#135
1113
+ def message; end
1114
+
1115
+ # source://activemodel//lib/active_model/error.rb#128
1116
+ def options; end
1117
+
1118
+ # source://activemodel//lib/active_model/error.rb#126
1119
+ def raw_type; end
1120
+
1121
+ # source://activemodel//lib/active_model/error.rb#184
1122
+ def strict_match?(attribute, type, **options); end
1123
+
1124
+ # source://activemodel//lib/active_model/error.rb#123
1125
+ def type; end
1126
+
1127
+ protected
1128
+
1129
+ # source://activemodel//lib/active_model/error.rb#204
1130
+ def attributes_for_hash; end
1131
+
1132
+ private
1133
+
1134
+ # source://activemodel//lib/active_model/error.rb#111
1135
+ def initialize_dup(other); end
1136
+
1137
+ class << self
1138
+ # source://activemodel//lib/active_model/error.rb#15
1139
+ def full_message(attribute, message, base); end
1140
+
1141
+ # source://activemodel//lib/active_model/error.rb#64
1142
+ def generate_message(attribute, type, base, options); end
1143
+
1144
+ # source://activemodel//lib/active_model/error.rb#13
1145
+ def i18n_customize_full_message; end
1146
+
1147
+ # source://activemodel//lib/active_model/error.rb#13
1148
+ def i18n_customize_full_message=(value); end
1149
+
1150
+ # source://activemodel//lib/active_model/error.rb#13
1151
+ def i18n_customize_full_message?; end
1152
+
1153
+ private
1154
+
1155
+ # source://activesupport/8.0.4/lib/active_support/class_attribute.rb#15
1156
+ def __class_attr_i18n_customize_full_message; end
1157
+
1158
+ # source://activesupport/8.0.4/lib/active_support/class_attribute.rb#17
1159
+ def __class_attr_i18n_customize_full_message=(new_value); end
1160
+ end
1161
+ end
1162
+
1163
+ # source://activemodel//lib/active_model/error.rb#10
1164
+ ActiveModel::Error::CALLBACKS_OPTIONS = T.let(T.unsafe(nil), Array)
1165
+
1166
+ # source://activemodel//lib/active_model/error.rb#11
1167
+ ActiveModel::Error::MESSAGE_OPTIONS = T.let(T.unsafe(nil), Array)
1168
+
1169
+ # source://activemodel//lib/active_model/errors.rb#61
1170
+ class ActiveModel::Errors
1171
+ include ::Enumerable
1172
+ extend ::Forwardable
1173
+
1174
+ # source://activemodel//lib/active_model/errors.rb#117
1175
+ def initialize(base); end
1176
+
1177
+ # source://activemodel//lib/active_model/errors.rb#229
1178
+ def [](attribute); end
1179
+
1180
+ # source://activemodel//lib/active_model/errors.rb#342
1181
+ def add(attribute, type = T.unsafe(nil), **options); end
1182
+
1183
+ # source://activemodel//lib/active_model/errors.rb#372
1184
+ def added?(attribute, type = T.unsafe(nil), options = T.unsafe(nil)); end
1185
+
1186
+ # source://activemodel//lib/active_model/errors.rb#247
1187
+ def as_json(options = T.unsafe(nil)); end
1188
+
1189
+ # source://activemodel//lib/active_model/errors.rb#237
1190
+ def attribute_names; end
1191
+
1192
+ # source://forwardable/1.3.3/forwardable.rb#231
1193
+ def clear(*args, **_arg1, &block); end
1194
+
1195
+ # source://activemodel//lib/active_model/errors.rb#138
1196
+ def copy!(other); end
1197
+
1198
+ # source://activemodel//lib/active_model/errors.rb#215
1199
+ def delete(attribute, type = T.unsafe(nil), **options); end
1200
+
1201
+ # source://activemodel//lib/active_model/errors.rb#276
1202
+ def details; end
1203
+
1204
+ # source://forwardable/1.3.3/forwardable.rb#231
1205
+ def each(*args, **_arg1, &block); end
1206
+
1207
+ # source://forwardable/1.3.3/forwardable.rb#231
1208
+ def empty?(*args, **_arg1, &block); end
1209
+
1210
+ # source://activemodel//lib/active_model/errors.rb#107
1211
+ def errors; end
1212
+
1213
+ # source://activemodel//lib/active_model/errors.rb#451
1214
+ def full_message(attribute, message); end
1215
+
1216
+ # source://activemodel//lib/active_model/errors.rb#415
1217
+ def full_messages; end
1218
+
1219
+ # source://activemodel//lib/active_model/errors.rb#430
1220
+ def full_messages_for(attribute); end
1221
+
1222
+ # source://activemodel//lib/active_model/errors.rb#479
1223
+ def generate_message(attribute, type = T.unsafe(nil), options = T.unsafe(nil)); end
1224
+
1225
+ # source://activemodel//lib/active_model/errors.rb#289
1226
+ def group_by_attribute; end
1227
+
1228
+ # source://activemodel//lib/active_model/errors.rb#202
1229
+ def has_key?(attribute); end
1230
+
1231
+ # source://activemodel//lib/active_model/errors.rb#154
1232
+ def import(error, override_options = T.unsafe(nil)); end
1233
+
1234
+ # source://activemodel//lib/active_model/errors.rb#202
1235
+ def include?(attribute); end
1236
+
1237
+ # source://activemodel//lib/active_model/errors.rb#483
1238
+ def inspect; end
1239
+
1240
+ # source://activemodel//lib/active_model/errors.rb#202
1241
+ def key?(attribute); end
1242
+
1243
+ # source://activemodel//lib/active_model/errors.rb#174
1244
+ def merge!(other); end
1245
+
1246
+ # source://activemodel//lib/active_model/errors.rb#268
1247
+ def messages; end
1248
+
1249
+ # source://activemodel//lib/active_model/errors.rb#444
1250
+ def messages_for(attribute); end
1251
+
1252
+ # source://activemodel//lib/active_model/errors.rb#107
1253
+ def objects; end
1254
+
1255
+ # source://activemodel//lib/active_model/errors.rb#395
1256
+ def of_kind?(attribute, type = T.unsafe(nil)); end
1257
+
1258
+ # source://forwardable/1.3.3/forwardable.rb#231
1259
+ def size(*args, **_arg1, &block); end
1260
+
1261
+ # source://activemodel//lib/active_model/errors.rb#415
1262
+ def to_a; end
1263
+
1264
+ # source://activemodel//lib/active_model/errors.rb#256
1265
+ def to_hash(full_messages = T.unsafe(nil)); end
1266
+
1267
+ # source://forwardable/1.3.3/forwardable.rb#231
1268
+ def uniq!(*args, **_arg1, &block); end
1269
+
1270
+ # source://activemodel//lib/active_model/errors.rb#189
1271
+ def where(attribute, type = T.unsafe(nil), **options); end
1272
+
1273
+ private
1274
+
1275
+ # source://activemodel//lib/active_model/errors.rb#122
1276
+ def initialize_dup(other); end
1277
+
1278
+ # source://activemodel//lib/active_model/errors.rb#490
1279
+ def normalize_arguments(attribute, type, **options); end
1280
+ end
1281
+
1282
+ # source://activemodel//lib/active_model/errors.rb#265
1283
+ ActiveModel::Errors::EMPTY_ARRAY = T.let(T.unsafe(nil), Array)
1284
+
1285
+ # source://activemodel//lib/active_model/forbidden_attributes_protection.rb#18
1286
+ class ActiveModel::ForbiddenAttributesError < ::StandardError; end
1287
+
1288
+ # source://activemodel//lib/active_model/forbidden_attributes_protection.rb#21
1289
+ module ActiveModel::ForbiddenAttributesProtection
1290
+ private
1291
+
1292
+ # source://activemodel//lib/active_model/forbidden_attributes_protection.rb#23
1293
+ def sanitize_for_mass_assignment(attributes); end
1294
+
1295
+ # source://activemodel//lib/active_model/forbidden_attributes_protection.rb#23
1296
+ def sanitize_forbidden_attributes(attributes); end
1297
+ end
1298
+
1299
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#91
1300
+ class ActiveModel::ForcedMutationTracker < ::ActiveModel::AttributeMutationTracker
1301
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#92
1302
+ def initialize(attributes); end
1303
+
1304
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#101
1305
+ def change_to_attribute(attr_name); end
1306
+
1307
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#97
1308
+ def changed_in_place?(attr_name); end
1309
+
1310
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#125
1311
+ def finalize_changes; end
1312
+
1313
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#121
1314
+ def force_change(attr_name); end
1315
+
1316
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#109
1317
+ def forget_change(attr_name); end
1318
+
1319
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#113
1320
+ def original_value(attr_name); end
1321
+
1322
+ private
1323
+
1324
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#132
1325
+ def attr_names; end
1326
+
1327
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#136
1328
+ def attribute_changed?(attr_name); end
1329
+
1330
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#144
1331
+ def clone_value(attr_name); end
1332
+
1333
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#140
1334
+ def fetch_value(attr_name); end
1335
+
1336
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#130
1337
+ def finalized_changes; end
1338
+
1339
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#151
1340
+ def type_cast(attr_name, value); end
1341
+ end
1342
+
1343
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#94
1344
+ class ActiveModel::LazyAttributeHash
1345
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#97
1346
+ def initialize(types, values, additional_types, default_attributes, delegate_hash = T.unsafe(nil)); end
1347
+
1348
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#134
1349
+ def ==(other); end
1350
+
1351
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#110
1352
+ def [](key); end
1353
+
1354
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#114
1355
+ def []=(key, value); end
1356
+
1357
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#118
1358
+ def deep_dup; end
1359
+
1360
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#129
1361
+ def each_key(&block); end
1362
+
1363
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#95
1364
+ def each_value(*_arg0, **_arg1, &_arg2); end
1365
+
1366
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#95
1367
+ def except(*_arg0, **_arg1, &_arg2); end
1368
+
1369
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#95
1370
+ def fetch(*_arg0, **_arg1, &_arg2); end
1371
+
1372
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#106
1373
+ def key?(key); end
1374
+
1375
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#142
1376
+ def marshal_dump; end
1377
+
1378
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#146
1379
+ def marshal_load(values); end
1380
+
1381
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#95
1382
+ def transform_values(*_arg0, **_arg1, &_arg2); end
1383
+
1384
+ protected
1385
+
1386
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#151
1387
+ def materialize; end
1388
+
1389
+ private
1390
+
1391
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#163
1392
+ def additional_types; end
1393
+
1394
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#165
1395
+ def assign_default_value(name); end
1396
+
1397
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#163
1398
+ def default_attributes; end
1399
+
1400
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#163
1401
+ def delegate_hash; end
1402
+
1403
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#124
1404
+ def initialize_dup(_); end
1405
+
1406
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#163
1407
+ def types; end
1408
+
1409
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#163
1410
+ def values; end
1411
+ end
1412
+
1413
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#21
1414
+ class ActiveModel::LazyAttributeSet < ::ActiveModel::AttributeSet
1415
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#22
1416
+ def initialize(values, types, additional_types, default_attributes, attributes = T.unsafe(nil)); end
1417
+
1418
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#41
1419
+ def fetch_value(name, &block); end
1420
+
1421
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#32
1422
+ def key?(name); end
1423
+
1424
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#36
1425
+ def keys; end
1426
+
1427
+ protected
1428
+
1429
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#61
1430
+ def attributes; end
1431
+
1432
+ private
1433
+
1434
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#71
1435
+ def additional_types; end
1436
+
1437
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#73
1438
+ def default_attribute(name, value_present = T.unsafe(nil), value = T.unsafe(nil)); end
1439
+
1440
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#71
1441
+ def default_attributes; end
1442
+
1443
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#71
1444
+ def types; end
1445
+
1446
+ # source://activemodel//lib/active_model/attribute_set/builder.rb#71
1447
+ def values; end
1448
+ end
1449
+
1450
+ # source://activemodel//lib/active_model/lint.rb#4
1451
+ module ActiveModel::Lint; end
1452
+
1453
+ # source://activemodel//lib/active_model/lint.rb#24
1454
+ module ActiveModel::Lint::Tests
1455
+ # source://activemodel//lib/active_model/lint.rb#102
1456
+ def test_errors_aref; end
1457
+
1458
+ # source://activemodel//lib/active_model/lint.rb#81
1459
+ def test_model_naming; end
1460
+
1461
+ # source://activemodel//lib/active_model/lint.rb#70
1462
+ def test_persisted?; end
1463
+
1464
+ # source://activemodel//lib/active_model/lint.rb#31
1465
+ def test_to_key; end
1466
+
1467
+ # source://activemodel//lib/active_model/lint.rb#46
1468
+ def test_to_param; end
1469
+
1470
+ # source://activemodel//lib/active_model/lint.rb#58
1471
+ def test_to_partial_path; end
1472
+
1473
+ private
1474
+
1475
+ # source://activemodel//lib/active_model/lint.rb#113
1476
+ def assert_boolean(result, name); end
1477
+
1478
+ # source://activemodel//lib/active_model/lint.rb#108
1479
+ def model; end
1480
+ end
1481
+
1482
+ # source://activemodel//lib/active_model/attribute_methods.rb#15
1483
+ class ActiveModel::MissingAttributeError < ::NoMethodError; end
1484
+
1485
+ # source://activemodel//lib/active_model/model.rb#42
1486
+ module ActiveModel::Model
1487
+ include ::ActiveModel::Access
1488
+ extend ::ActiveSupport::Concern
1489
+ include GeneratedInstanceMethods
1490
+ include ::ActiveSupport::Callbacks
1491
+ include ::ActiveModel::Validations::HelperMethods
1492
+ include ::ActiveModel::Validations
1493
+ include ::ActiveModel::Conversion
1494
+ include ::ActiveModel::API
1495
+
1496
+ mixes_in_class_methods GeneratedClassMethods
1497
+ mixes_in_class_methods ::ActiveModel::Validations::ClassMethods
1498
+ mixes_in_class_methods ::ActiveModel::Callbacks
1499
+ mixes_in_class_methods ::ActiveSupport::Callbacks::ClassMethods
1500
+ mixes_in_class_methods ::ActiveSupport::DescendantsTracker
1501
+ mixes_in_class_methods ::ActiveModel::Translation
1502
+ mixes_in_class_methods ::ActiveModel::Validations::HelperMethods
1503
+ mixes_in_class_methods ::ActiveModel::Conversion::ClassMethods
1504
+
1505
+ module GeneratedClassMethods
1506
+ def __callbacks; end
1507
+ def __callbacks=(value); end
1508
+ def _validators; end
1509
+ def _validators=(value); end
1510
+ def _validators?; end
1511
+ def param_delimiter; end
1512
+ def param_delimiter=(value); end
1513
+ def param_delimiter?; end
1514
+ end
1515
+
1516
+ module GeneratedInstanceMethods
1517
+ def __callbacks; end
1518
+ def _validators; end
1519
+ def _validators?; end
1520
+ def param_delimiter=(value); end
1521
+ end
1522
+ end
1523
+
1524
+ # source://activemodel//lib/active_model/naming.rb#9
1525
+ class ActiveModel::Name
1526
+ include ::Comparable
1527
+
1528
+ # source://activemodel//lib/active_model/naming.rb#166
1529
+ def initialize(klass, namespace = T.unsafe(nil), name = T.unsafe(nil), locale = T.unsafe(nil)); end
1530
+
1531
+ # source://activemodel//lib/active_model/naming.rb#151
1532
+ def !~(*_arg0, **_arg1, &_arg2); end
1533
+
1534
+ # source://activemodel//lib/active_model/naming.rb#151
1535
+ def <=>(*_arg0, **_arg1, &_arg2); end
1536
+
1537
+ # source://activemodel//lib/active_model/naming.rb#151
1538
+ def ==(arg); end
1539
+
1540
+ # source://activemodel//lib/active_model/naming.rb#151
1541
+ def ===(arg); end
1542
+
1543
+ # source://activemodel//lib/active_model/naming.rb#151
1544
+ def =~(*_arg0, **_arg1, &_arg2); end
1545
+
1546
+ # source://activemodel//lib/active_model/naming.rb#151
1547
+ def as_json(*_arg0, **_arg1, &_arg2); end
1548
+
1549
+ # source://activemodel//lib/active_model/naming.rb#12
1550
+ def cache_key; end
1551
+
1552
+ # source://activemodel//lib/active_model/naming.rb#12
1553
+ def collection; end
1554
+
1555
+ # source://activemodel//lib/active_model/naming.rb#12
1556
+ def collection=(_arg0); end
1557
+
1558
+ # source://activemodel//lib/active_model/naming.rb#12
1559
+ def element; end
1560
+
1561
+ # source://activemodel//lib/active_model/naming.rb#12
1562
+ def element=(_arg0); end
1563
+
1564
+ # source://activemodel//lib/active_model/naming.rb#151
1565
+ def eql?(*_arg0, **_arg1, &_arg2); end
1566
+
1567
+ # source://activemodel//lib/active_model/naming.rb#197
1568
+ def human(options = T.unsafe(nil)); end
1569
+
1570
+ # source://activemodel//lib/active_model/naming.rb#12
1571
+ def i18n_key; end
1572
+
1573
+ # source://activemodel//lib/active_model/naming.rb#12
1574
+ def i18n_key=(_arg0); end
1575
+
1576
+ # source://activemodel//lib/active_model/naming.rb#151
1577
+ def match?(*_arg0, **_arg1, &_arg2); end
1578
+
1579
+ # source://activemodel//lib/active_model/naming.rb#12
1580
+ def name; end
1581
+
1582
+ # source://activemodel//lib/active_model/naming.rb#12
1583
+ def name=(_arg0); end
1584
+
1585
+ # source://activemodel//lib/active_model/naming.rb#12
1586
+ def param_key; end
1587
+
1588
+ # source://activemodel//lib/active_model/naming.rb#12
1589
+ def param_key=(_arg0); end
1590
+
1591
+ # source://activemodel//lib/active_model/naming.rb#12
1592
+ def plural; end
1593
+
1594
+ # source://activemodel//lib/active_model/naming.rb#12
1595
+ def plural=(_arg0); end
1596
+
1597
+ # source://activemodel//lib/active_model/naming.rb#12
1598
+ def route_key; end
1599
+
1600
+ # source://activemodel//lib/active_model/naming.rb#12
1601
+ def route_key=(_arg0); end
1602
+
1603
+ # source://activemodel//lib/active_model/naming.rb#12
1604
+ def singular; end
1605
+
1606
+ # source://activemodel//lib/active_model/naming.rb#12
1607
+ def singular=(_arg0); end
1608
+
1609
+ # source://activemodel//lib/active_model/naming.rb#12
1610
+ def singular_route_key; end
1611
+
1612
+ # source://activemodel//lib/active_model/naming.rb#12
1613
+ def singular_route_key=(_arg0); end
1614
+
1615
+ # source://activemodel//lib/active_model/naming.rb#151
1616
+ def to_s(*_arg0, **_arg1, &_arg2); end
1617
+
1618
+ # source://activemodel//lib/active_model/naming.rb#151
1619
+ def to_str(*_arg0, **_arg1, &_arg2); end
1620
+
1621
+ # source://activemodel//lib/active_model/naming.rb#209
1622
+ def uncountable?; end
1623
+
1624
+ private
1625
+
1626
+ # source://activemodel//lib/active_model/naming.rb#216
1627
+ def _singularize(string); end
1628
+
1629
+ # source://activemodel//lib/active_model/naming.rb#220
1630
+ def i18n_keys; end
1631
+
1632
+ # source://activemodel//lib/active_model/naming.rb#228
1633
+ def i18n_scope; end
1634
+ end
1635
+
1636
+ # source://activemodel//lib/active_model/naming.rb#214
1637
+ ActiveModel::Name::MISSING_TRANSLATION = T.let(T.unsafe(nil), Integer)
1638
+
1639
+ # source://activemodel//lib/active_model/naming.rb#252
1640
+ module ActiveModel::Naming
1641
+ # source://activemodel//lib/active_model/naming.rb#270
1642
+ def model_name; end
1643
+
1644
+ private
1645
+
1646
+ # source://activemodel//lib/active_model/naming.rb#352
1647
+ def inherited(base); end
1648
+
1649
+ class << self
1650
+ # source://activemodel//lib/active_model/naming.rb#253
1651
+ def extended(base); end
1652
+
1653
+ # source://activemodel//lib/active_model/naming.rb#338
1654
+ def param_key(record_or_class); end
1655
+
1656
+ # source://activemodel//lib/active_model/naming.rb#283
1657
+ def plural(record_or_class); end
1658
+
1659
+ # source://activemodel//lib/active_model/naming.rb#326
1660
+ def route_key(record_or_class); end
1661
+
1662
+ # source://activemodel//lib/active_model/naming.rb#291
1663
+ def singular(record_or_class); end
1664
+
1665
+ # source://activemodel//lib/active_model/naming.rb#311
1666
+ def singular_route_key(record_or_class); end
1667
+
1668
+ # source://activemodel//lib/active_model/naming.rb#299
1669
+ def uncountable?(record_or_class); end
1670
+
1671
+ private
1672
+
1673
+ # source://activemodel//lib/active_model/naming.rb#342
1674
+ def model_name_from_record_or_class(record_or_class); end
1675
+ end
1676
+ end
1677
+
1678
+ # source://activemodel//lib/active_model/nested_error.rb#7
1679
+ class ActiveModel::NestedError < ::ActiveModel::Error
1680
+ extend ::Forwardable
1681
+
1682
+ # source://activemodel//lib/active_model/nested_error.rb#8
1683
+ def initialize(base, inner_error, override_options = T.unsafe(nil)); end
1684
+
1685
+ # source://activemodel//lib/active_model/nested_error.rb#17
1686
+ def inner_error; end
1687
+
1688
+ # source://forwardable/1.3.3/forwardable.rb#231
1689
+ def message(*args, **_arg1, &block); end
1690
+ end
1691
+
1692
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#156
1693
+ class ActiveModel::NullMutationTracker
1694
+ include ::Singleton
1695
+ extend ::Singleton::SingletonClassMethods
1696
+
1697
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#174
1698
+ def any_changes?; end
1699
+
1700
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#171
1701
+ def change_to_attribute(attr_name); end
1702
+
1703
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#178
1704
+ def changed?(attr_name, **_arg1); end
1705
+
1706
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#159
1707
+ def changed_attribute_names; end
1708
+
1709
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#182
1710
+ def changed_in_place?(attr_name); end
1711
+
1712
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#163
1713
+ def changed_values; end
1714
+
1715
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#167
1716
+ def changes; end
1717
+
1718
+ # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#186
1719
+ def original_value(attr_name); end
1720
+
1721
+ class << self
1722
+ private
1723
+
1724
+ def allocate; end
1725
+ def new(*_arg0); end
1726
+ end
1727
+ end
1728
+
1729
+ # source://activemodel//lib/active_model/errors.rb#523
1730
+ class ActiveModel::RangeError < ::RangeError; end
1731
+
1732
+ # source://activemodel//lib/active_model/secure_password.rb#4
1733
+ module ActiveModel::SecurePassword
1734
+ extend ::ActiveSupport::Concern
1735
+
1736
+ mixes_in_class_methods ::ActiveModel::SecurePassword::ClassMethods
1737
+
1738
+ class << self
1739
+ # source://activemodel//lib/active_model/secure_password.rb#13
1740
+ def min_cost; end
1741
+
1742
+ # source://activemodel//lib/active_model/secure_password.rb#13
1743
+ def min_cost=(_arg0); end
1744
+ end
1745
+ end
1746
+
1747
+ # source://activemodel//lib/active_model/secure_password.rb#17
1748
+ module ActiveModel::SecurePassword::ClassMethods
1749
+ # source://activemodel//lib/active_model/secure_password.rb#116
1750
+ def has_secure_password(attribute = T.unsafe(nil), validations: T.unsafe(nil), reset_token: T.unsafe(nil)); end
1751
+ end
1752
+
1753
+ # source://activemodel//lib/active_model/secure_password.rb#182
1754
+ class ActiveModel::SecurePassword::InstanceMethodsOnActivation < ::Module
1755
+ # source://activemodel//lib/active_model/secure_password.rb#183
1756
+ def initialize(attribute, reset_token:); end
1757
+ end
1758
+
1759
+ # source://activemodel//lib/active_model/secure_password.rb#10
1760
+ ActiveModel::SecurePassword::MAX_PASSWORD_LENGTH_ALLOWED = T.let(T.unsafe(nil), Integer)
1761
+
1762
+ # source://activemodel//lib/active_model/serialization.rb#69
1763
+ module ActiveModel::Serialization
1764
+ def read_attribute_for_serialization(*_arg0); end
1765
+
1766
+ # source://activemodel//lib/active_model/serialization.rb#125
1767
+ def serializable_hash(options = T.unsafe(nil)); end
1768
+
1769
+ private
1770
+
1771
+ # source://activemodel//lib/active_model/serialization.rb#170
1772
+ def attribute_names_for_serialization; end
1773
+
1774
+ # source://activemodel//lib/active_model/serialization.rb#184
1775
+ def serializable_add_includes(options = T.unsafe(nil)); end
1776
+
1777
+ # source://activemodel//lib/active_model/serialization.rb#174
1778
+ def serializable_attributes(attribute_names); end
1779
+ end
1780
+
1781
+ # source://activemodel//lib/active_model.rb#68
1782
+ module ActiveModel::Serializers
1783
+ extend ::ActiveSupport::Autoload
1784
+ end
1785
+
1786
+ # source://activemodel//lib/active_model/serializers/json.rb#8
1787
+ module ActiveModel::Serializers::JSON
1788
+ include ::ActiveModel::Serialization
1789
+ extend ::ActiveSupport::Concern
1790
+ include GeneratedInstanceMethods
1791
+
1792
+ mixes_in_class_methods GeneratedClassMethods
1793
+ mixes_in_class_methods ::ActiveModel::Naming
1794
+
1795
+ # source://activemodel//lib/active_model/serializers/json.rb#96
1796
+ def as_json(options = T.unsafe(nil)); end
1797
+
1798
+ # source://activemodel//lib/active_model/serializers/json.rb#146
1799
+ def from_json(json, include_root = T.unsafe(nil)); end
1800
+
1801
+ module GeneratedClassMethods
1802
+ def include_root_in_json; end
1803
+ def include_root_in_json=(value); end
1804
+ def include_root_in_json?; end
1805
+ end
1806
+
1807
+ module GeneratedInstanceMethods
1808
+ def include_root_in_json; end
1809
+ def include_root_in_json?; end
1810
+ end
1811
+ end
1812
+
1813
+ # source://activemodel//lib/active_model/errors.rb#517
1814
+ class ActiveModel::StrictValidationFailed < ::StandardError; end
1815
+
1816
+ # source://activemodel//lib/active_model/translation.rb#22
1817
+ module ActiveModel::Translation
1818
+ include ::ActiveModel::Naming
1819
+
1820
+ # source://activemodel//lib/active_model/translation.rb#48
1821
+ def human_attribute_name(attribute, options = T.unsafe(nil)); end
1822
+
1823
+ # source://activemodel//lib/active_model/translation.rb#28
1824
+ def i18n_scope; end
1825
+
1826
+ # source://activemodel//lib/active_model/translation.rb#36
1827
+ def lookup_ancestors; end
1828
+
1829
+ class << self
1830
+ # source://activemodel//lib/active_model/translation.rb#25
1831
+ def raise_on_missing_translations; end
1832
+
1833
+ # source://activemodel//lib/active_model/translation.rb#25
1834
+ def raise_on_missing_translations=(_arg0); end
1835
+ end
1836
+ end
1837
+
1838
+ # source://activemodel//lib/active_model/translation.rb#40
1839
+ ActiveModel::Translation::MISSING_TRANSLATION = T.let(T.unsafe(nil), Integer)
1840
+
1841
+ # source://activemodel//lib/active_model/type/helpers/accepts_multiparameter_time.rb#4
1842
+ module ActiveModel::Type
1843
+ class << self
1844
+ # source://activemodel//lib/active_model/type.rb#38
1845
+ def default_value; end
1846
+
1847
+ # source://activemodel//lib/active_model/type.rb#34
1848
+ def lookup(*_arg0, **_arg1, &_arg2); end
1849
+
1850
+ # source://activemodel//lib/active_model/type.rb#30
1851
+ def register(type_name, klass = T.unsafe(nil), &block); end
1852
+
1853
+ # source://activemodel//lib/active_model/type.rb#26
1854
+ def registry; end
1855
+
1856
+ # source://activemodel//lib/active_model/type.rb#26
1857
+ def registry=(_arg0); end
1858
+ end
1859
+ end
1860
+
1861
+ # source://activemodel//lib/active_model/type/big_integer.rb#25
1862
+ class ActiveModel::Type::BigInteger < ::ActiveModel::Type::Integer
1863
+ # source://activemodel//lib/active_model/type/big_integer.rb#26
1864
+ def serialize_cast_value(value); end
1865
+
1866
+ private
1867
+
1868
+ # source://activemodel//lib/active_model/type/big_integer.rb#31
1869
+ def max_value; end
1870
+ end
1871
+
1872
+ # source://activemodel//lib/active_model/type/binary.rb#11
1873
+ class ActiveModel::Type::Binary < ::ActiveModel::Type::Value
1874
+ # source://activemodel//lib/active_model/type/binary.rb#16
1875
+ def binary?; end
1876
+
1877
+ # source://activemodel//lib/active_model/type/binary.rb#20
1878
+ def cast(value); end
1879
+
1880
+ # source://activemodel//lib/active_model/type/binary.rb#35
1881
+ def changed_in_place?(raw_old_value, value); end
1882
+
1883
+ # source://activemodel//lib/active_model/type/binary.rb#30
1884
+ def serialize(value); end
1885
+
1886
+ # source://activemodel//lib/active_model/type/binary.rb#12
1887
+ def type; end
1888
+ end
1889
+
1890
+ # source://activemodel//lib/active_model/type/binary.rb#40
1891
+ class ActiveModel::Type::Binary::Data
1892
+ # source://activemodel//lib/active_model/type/binary.rb#41
1893
+ def initialize(value); end
1894
+
1895
+ # source://activemodel//lib/active_model/type/binary.rb#56
1896
+ def ==(other); end
1897
+
1898
+ # source://activemodel//lib/active_model/type/binary.rb#52
1899
+ def hex; end
1900
+
1901
+ # source://activemodel//lib/active_model/type/binary.rb#47
1902
+ def to_s; end
1903
+
1904
+ # source://activemodel//lib/active_model/type/binary.rb#47
1905
+ def to_str; end
1906
+ end
1907
+
1908
+ # source://activemodel//lib/active_model/type/boolean.rb#14
1909
+ class ActiveModel::Type::Boolean < ::ActiveModel::Type::Value
1910
+ # source://activemodel//lib/active_model/type/boolean.rb#30
1911
+ def serialize(value); end
1912
+
1913
+ # source://activemodel//lib/active_model/type/boolean.rb#34
1914
+ def serialize_cast_value(value); end
1915
+
1916
+ # source://activemodel//lib/active_model/type/boolean.rb#26
1917
+ def type; end
1918
+
1919
+ private
1920
+
1921
+ # source://activemodel//lib/active_model/type/boolean.rb#39
1922
+ def cast_value(value); end
1923
+ end
1924
+
1925
+ # source://activemodel//lib/active_model/type/boolean.rb#15
1926
+ ActiveModel::Type::Boolean::FALSE_VALUES = T.let(T.unsafe(nil), Set)
1927
+
1928
+ # source://activemodel//lib/active_model/type/date.rb#26
1929
+ class ActiveModel::Type::Date < ::ActiveModel::Type::Value
1930
+ include ::ActiveModel::Type::Helpers::Timezone
1931
+ include ::ActiveModel::Type::Helpers::AcceptsMultiparameterTime::InstanceMethods
1932
+
1933
+ # source://activemodel//lib/active_model/type/date.rb#30
1934
+ def type; end
1935
+
1936
+ # source://activemodel//lib/active_model/type/date.rb#34
1937
+ def type_cast_for_schema(value); end
1938
+
1939
+ private
1940
+
1941
+ # source://activemodel//lib/active_model/type/date.rb#39
1942
+ def cast_value(value); end
1943
+
1944
+ # source://activemodel//lib/active_model/type/date.rb#57
1945
+ def fallback_string_to_date(string); end
1946
+
1947
+ # source://activemodel//lib/active_model/type/date.rb#51
1948
+ def fast_string_to_date(string); end
1949
+
1950
+ # source://activemodel//lib/active_model/type/date.rb#66
1951
+ def new_date(year, mon, mday); end
1952
+
1953
+ # source://activemodel//lib/active_model/type/date.rb#72
1954
+ def value_from_multiparameter_assignment(*_arg0); end
1955
+ end
1956
+
1957
+ # source://activemodel//lib/active_model/type/date.rb#50
1958
+ ActiveModel::Type::Date::ISO_DATE = T.let(T.unsafe(nil), Regexp)
1959
+
1960
+ # source://activemodel//lib/active_model/type/date_time.rb#42
1961
+ class ActiveModel::Type::DateTime < ::ActiveModel::Type::Value
1962
+ include ::ActiveModel::Type::Helpers::Timezone
1963
+ include ::ActiveModel::Type::Helpers::AcceptsMultiparameterTime::InstanceMethods
1964
+ include ::ActiveModel::Type::Helpers::TimeValue
1965
+
1966
+ # source://activemodel//lib/active_model/type/date_time.rb#49
1967
+ def type; end
1968
+
1969
+ private
1970
+
1971
+ # source://activemodel//lib/active_model/type/date_time.rb#54
1972
+ def cast_value(value); end
1973
+
1974
+ # source://activemodel//lib/active_model/type/date_time.rb#67
1975
+ def fallback_string_to_time(string); end
1976
+
1977
+ # source://activemodel//lib/active_model/type/date_time.rb#63
1978
+ def microseconds(time); end
1979
+
1980
+ # source://activemodel//lib/active_model/type/date_time.rb#79
1981
+ def value_from_multiparameter_assignment(values_hash); end
1982
+ end
1983
+
1984
+ # source://activemodel//lib/active_model/type/decimal.rb#45
1985
+ class ActiveModel::Type::Decimal < ::ActiveModel::Type::Value
1986
+ include ::ActiveModel::Type::Helpers::Numeric
1987
+
1988
+ # source://activemodel//lib/active_model/type/decimal.rb#49
1989
+ def type; end
1990
+
1991
+ # source://activemodel//lib/active_model/type/decimal.rb#53
1992
+ def type_cast_for_schema(value); end
1993
+
1994
+ private
1995
+
1996
+ # source://activemodel//lib/active_model/type/decimal.rb#98
1997
+ def apply_scale(value); end
1998
+
1999
+ # source://activemodel//lib/active_model/type/decimal.rb#58
2000
+ def cast_value(value); end
2001
+
2002
+ # source://activemodel//lib/active_model/type/decimal.rb#82
2003
+ def convert_float_to_big_decimal(value); end
2004
+
2005
+ # source://activemodel//lib/active_model/type/decimal.rb#90
2006
+ def float_precision; end
2007
+ end
2008
+
2009
+ # source://activemodel//lib/active_model/type/decimal.rb#47
2010
+ ActiveModel::Type::Decimal::BIGDECIMAL_PRECISION = T.let(T.unsafe(nil), Integer)
2011
+
2012
+ # source://activemodel//lib/active_model/type/float.rb#36
2013
+ class ActiveModel::Type::Float < ::ActiveModel::Type::Value
2014
+ include ::ActiveModel::Type::Helpers::Numeric
2015
+
2016
+ # source://activemodel//lib/active_model/type/float.rb#39
2017
+ def type; end
2018
+
2019
+ # source://activemodel//lib/active_model/type/float.rb#43
2020
+ def type_cast_for_schema(value); end
2021
+
2022
+ private
2023
+
2024
+ # source://activemodel//lib/active_model/type/float.rb#53
2025
+ def cast_value(value); end
2026
+ end
2027
+
2028
+ # source://activemodel//lib/active_model/type/helpers/accepts_multiparameter_time.rb#5
2029
+ module ActiveModel::Type::Helpers; end
2030
+
2031
+ # source://activemodel//lib/active_model/type/helpers/accepts_multiparameter_time.rb#6
2032
+ class ActiveModel::Type::Helpers::AcceptsMultiparameterTime < ::Module
2033
+ # source://activemodel//lib/active_model/type/helpers/accepts_multiparameter_time.rb#37
2034
+ def initialize(defaults: T.unsafe(nil)); end
2035
+ end
2036
+
2037
+ # source://activemodel//lib/active_model/type/helpers/accepts_multiparameter_time.rb#7
2038
+ module ActiveModel::Type::Helpers::AcceptsMultiparameterTime::InstanceMethods
2039
+ # source://activemodel//lib/active_model/type/helpers/accepts_multiparameter_time.rb#24
2040
+ def assert_valid_value(value); end
2041
+
2042
+ # source://activemodel//lib/active_model/type/helpers/accepts_multiparameter_time.rb#16
2043
+ def cast(value); end
2044
+
2045
+ # source://activemodel//lib/active_model/type/helpers/accepts_multiparameter_time.rb#8
2046
+ def serialize(value); end
2047
+
2048
+ # source://activemodel//lib/active_model/type/helpers/accepts_multiparameter_time.rb#12
2049
+ def serialize_cast_value(value); end
2050
+
2051
+ # source://activemodel//lib/active_model/type/helpers/accepts_multiparameter_time.rb#32
2052
+ def value_constructed_by_mass_assignment?(value); end
2053
+ end
2054
+
2055
+ # source://activemodel//lib/active_model/type/helpers/mutable.rb#6
2056
+ module ActiveModel::Type::Helpers::Mutable
2057
+ # source://activemodel//lib/active_model/type/helpers/mutable.rb#7
2058
+ def cast(value); end
2059
+
2060
+ # source://activemodel//lib/active_model/type/helpers/mutable.rb#14
2061
+ def changed_in_place?(raw_old_value, new_value); end
2062
+
2063
+ # source://activemodel//lib/active_model/type/helpers/mutable.rb#18
2064
+ def mutable?; end
2065
+ end
2066
+
2067
+ # source://activemodel//lib/active_model/type/helpers/numeric.rb#6
2068
+ module ActiveModel::Type::Helpers::Numeric
2069
+ # source://activemodel//lib/active_model/type/helpers/numeric.rb#15
2070
+ def cast(value); end
2071
+
2072
+ # source://activemodel//lib/active_model/type/helpers/numeric.rb#31
2073
+ def changed?(old_value, _new_value, new_value_before_type_cast); end
2074
+
2075
+ # source://activemodel//lib/active_model/type/helpers/numeric.rb#7
2076
+ def serialize(value); end
2077
+
2078
+ # source://activemodel//lib/active_model/type/helpers/numeric.rb#11
2079
+ def serialize_cast_value(value); end
2080
+
2081
+ private
2082
+
2083
+ # source://activemodel//lib/active_model/type/helpers/numeric.rb#37
2084
+ def equal_nan?(old_value, new_value); end
2085
+
2086
+ # source://activemodel//lib/active_model/type/helpers/numeric.rb#49
2087
+ def non_numeric_string?(value); end
2088
+
2089
+ # source://activemodel//lib/active_model/type/helpers/numeric.rb#44
2090
+ def number_to_non_number?(old_value, new_value_before_type_cast); end
2091
+ end
2092
+
2093
+ # source://activemodel//lib/active_model/type/helpers/numeric.rb#56
2094
+ ActiveModel::Type::Helpers::Numeric::NUMERIC_REGEX = T.let(T.unsafe(nil), Regexp)
2095
+
2096
+ # source://activemodel//lib/active_model/type/helpers/time_value.rb#9
2097
+ module ActiveModel::Type::Helpers::TimeValue
2098
+ # source://activemodel//lib/active_model/type/helpers/time_value.rb#24
2099
+ def apply_seconds_precision(value); end
2100
+
2101
+ # source://activemodel//lib/active_model/type/helpers/time_value.rb#10
2102
+ def serialize_cast_value(value); end
2103
+
2104
+ # source://activemodel//lib/active_model/type/helpers/time_value.rb#38
2105
+ def type_cast_for_schema(value); end
2106
+
2107
+ # source://activemodel//lib/active_model/type/helpers/time_value.rb#42
2108
+ def user_input_in_time_zone(value); end
2109
+
2110
+ private
2111
+
2112
+ # source://activemodel//lib/active_model/type/helpers/time_value.rb#88
2113
+ def fast_string_to_time(string); end
2114
+
2115
+ # source://activemodel//lib/active_model/type/helpers/time_value.rb#47
2116
+ def new_time(year, mon, mday, hour, min, sec, microsec, offset = T.unsafe(nil)); end
2117
+ end
2118
+
2119
+ # source://activemodel//lib/active_model/type/helpers/time_value.rb#64
2120
+ ActiveModel::Type::Helpers::TimeValue::ISO_DATETIME = T.let(T.unsafe(nil), Regexp)
2121
+
2122
+ # source://activemodel//lib/active_model/type/helpers/timezone.rb#8
2123
+ module ActiveModel::Type::Helpers::Timezone
2124
+ # source://activemodel//lib/active_model/type/helpers/timezone.rb#17
2125
+ def default_timezone; end
2126
+
2127
+ # source://activemodel//lib/active_model/type/helpers/timezone.rb#9
2128
+ def is_utc?; end
2129
+ end
2130
+
2131
+ # source://activemodel//lib/active_model/type/immutable_string.rb#37
2132
+ class ActiveModel::Type::ImmutableString < ::ActiveModel::Type::Value
2133
+ # source://activemodel//lib/active_model/type/immutable_string.rb#38
2134
+ def initialize(**args); end
2135
+
2136
+ # source://activemodel//lib/active_model/type/immutable_string.rb#48
2137
+ def serialize(value); end
2138
+
2139
+ # source://activemodel//lib/active_model/type/immutable_string.rb#57
2140
+ def serialize_cast_value(value); end
2141
+
2142
+ # source://activemodel//lib/active_model/type/immutable_string.rb#44
2143
+ def type; end
2144
+
2145
+ private
2146
+
2147
+ # source://activemodel//lib/active_model/type/immutable_string.rb#62
2148
+ def cast_value(value); end
2149
+ end
2150
+
2151
+ # source://activemodel//lib/active_model/type/integer.rb#44
2152
+ class ActiveModel::Type::Integer < ::ActiveModel::Type::Value
2153
+ include ::ActiveModel::Type::Helpers::Numeric
2154
+
2155
+ # source://activemodel//lib/active_model/type/integer.rb#51
2156
+ def initialize(**_arg0); end
2157
+
2158
+ # source://activemodel//lib/active_model/type/integer.rb#60
2159
+ def deserialize(value); end
2160
+
2161
+ # source://activemodel//lib/active_model/type/integer.rb#74
2162
+ def serializable?(value); end
2163
+
2164
+ # source://activemodel//lib/active_model/type/integer.rb#65
2165
+ def serialize(value); end
2166
+
2167
+ # source://activemodel//lib/active_model/type/integer.rb#70
2168
+ def serialize_cast_value(value); end
2169
+
2170
+ # source://activemodel//lib/active_model/type/integer.rb#56
2171
+ def type; end
2172
+
2173
+ private
2174
+
2175
+ # source://activemodel//lib/active_model/type/integer.rb#108
2176
+ def _limit; end
2177
+
2178
+ # source://activemodel//lib/active_model/type/integer.rb#89
2179
+ def cast_value(value); end
2180
+
2181
+ # source://activemodel//lib/active_model/type/integer.rb#93
2182
+ def ensure_in_range(value); end
2183
+
2184
+ # source://activemodel//lib/active_model/type/integer.rb#85
2185
+ def in_range?(value); end
2186
+
2187
+ # source://activemodel//lib/active_model/type/integer.rb#100
2188
+ def max_value; end
2189
+
2190
+ # source://activemodel//lib/active_model/type/integer.rb#104
2191
+ def min_value; end
2192
+
2193
+ # source://activemodel//lib/active_model/type/integer.rb#83
2194
+ def range; end
2195
+ end
2196
+
2197
+ # source://activemodel//lib/active_model/type/integer.rb#49
2198
+ ActiveModel::Type::Integer::DEFAULT_LIMIT = T.let(T.unsafe(nil), Integer)
2199
+
2200
+ # source://activemodel//lib/active_model/type/registry.rb#5
2201
+ class ActiveModel::Type::Registry
2202
+ # source://activemodel//lib/active_model/type/registry.rb#6
2203
+ def initialize; end
2204
+
2205
+ # source://activemodel//lib/active_model/type/registry.rb#23
2206
+ def lookup(symbol, *_arg1, **_arg2, &_arg3); end
2207
+
2208
+ # source://activemodel//lib/active_model/type/registry.rb#15
2209
+ def register(type_name, klass = T.unsafe(nil), &block); end
2210
+
2211
+ private
2212
+
2213
+ # source://activemodel//lib/active_model/type/registry.rb#10
2214
+ def initialize_copy(other); end
2215
+
2216
+ # source://activemodel//lib/active_model/type/registry.rb#34
2217
+ def registrations; end
2218
+ end
2219
+
2220
+ # source://activemodel//lib/active_model/type/serialize_cast_value.rb#5
2221
+ module ActiveModel::Type::SerializeCastValue
2222
+ extend ::ActiveSupport::Concern
2223
+ include ::ActiveModel::Type::SerializeCastValue::DefaultImplementation
2224
+
2225
+ mixes_in_class_methods ::ActiveModel::Type::SerializeCastValue::ClassMethods
2226
+
2227
+ # source://activemodel//lib/active_model/type/serialize_cast_value.rb#41
2228
+ def initialize(*_arg0, **_arg1, &_arg2); end
2229
+
2230
+ # source://activemodel//lib/active_model/type/serialize_cast_value.rb#37
2231
+ def itself_if_serialize_cast_value_compatible; end
2232
+
2233
+ class << self
2234
+ # source://activemodel//lib/active_model/type/serialize_cast_value.rb#21
2235
+ def included(klass); end
2236
+
2237
+ # source://activemodel//lib/active_model/type/serialize_cast_value.rb#25
2238
+ def serialize(type, value); end
2239
+ end
2240
+ end
2241
+
2242
+ # source://activemodel//lib/active_model/type/serialize_cast_value.rb#8
2243
+ module ActiveModel::Type::SerializeCastValue::ClassMethods
2244
+ # source://activemodel//lib/active_model/type/serialize_cast_value.rb#9
2245
+ def serialize_cast_value_compatible?; end
2246
+ end
2247
+
2248
+ # source://activemodel//lib/active_model/type/serialize_cast_value.rb#15
2249
+ module ActiveModel::Type::SerializeCastValue::DefaultImplementation
2250
+ # source://activemodel//lib/active_model/type/serialize_cast_value.rb#16
2251
+ def serialize_cast_value(value); end
2252
+ end
2253
+
2254
+ # source://activemodel//lib/active_model/type/string.rb#15
2255
+ class ActiveModel::Type::String < ::ActiveModel::Type::ImmutableString
2256
+ # source://activemodel//lib/active_model/type/string.rb#16
2257
+ def changed_in_place?(raw_old_value, new_value); end
2258
+
2259
+ # source://activemodel//lib/active_model/type/string.rb#22
2260
+ def to_immutable_string; end
2261
+
2262
+ private
2263
+
2264
+ # source://activemodel//lib/active_model/type/string.rb#33
2265
+ def cast_value(value); end
2266
+ end
2267
+
2268
+ # source://activemodel//lib/active_model/type/time.rb#38
2269
+ class ActiveModel::Type::Time < ::ActiveModel::Type::Value
2270
+ include ::ActiveModel::Type::Helpers::Timezone
2271
+ include ::ActiveModel::Type::Helpers::AcceptsMultiparameterTime::InstanceMethods
2272
+ include ::ActiveModel::Type::Helpers::TimeValue
2273
+
2274
+ # source://activemodel//lib/active_model/type/time.rb#45
2275
+ def type; end
2276
+
2277
+ # source://activemodel//lib/active_model/type/time.rb#49
2278
+ def user_input_in_time_zone(value); end
2279
+
2280
+ private
2281
+
2282
+ # source://activemodel//lib/active_model/type/time.rb#69
2283
+ def cast_value(value); end
2284
+ end
2285
+
2286
+ # source://activemodel//lib/active_model/type/value.rb#9
2287
+ class ActiveModel::Type::Value
2288
+ include ::ActiveModel::Type::SerializeCastValue
2289
+ include ::ActiveModel::Type::SerializeCastValue::DefaultImplementation
2290
+ extend ::ActiveModel::Type::SerializeCastValue::ClassMethods
2291
+
2292
+ # source://activemodel//lib/active_model/type/value.rb#17
2293
+ def initialize(precision: T.unsafe(nil), limit: T.unsafe(nil), scale: T.unsafe(nil)); end
2294
+
2295
+ # source://activemodel//lib/active_model/type/value.rb#121
2296
+ def ==(other); end
2297
+
2298
+ # source://activemodel//lib/active_model/type/value.rb#144
2299
+ def as_json(*_arg0); end
2300
+
2301
+ # source://activemodel//lib/active_model/type/value.rb#133
2302
+ def assert_valid_value(_); end
2303
+
2304
+ # source://activemodel//lib/active_model/type/value.rb#77
2305
+ def binary?; end
2306
+
2307
+ # source://activemodel//lib/active_model/type/value.rb#57
2308
+ def cast(value); end
2309
+
2310
+ # source://activemodel//lib/active_model/type/value.rb#84
2311
+ def changed?(old_value, new_value, _new_value_before_type_cast); end
2312
+
2313
+ # source://activemodel//lib/active_model/type/value.rb#105
2314
+ def changed_in_place?(raw_old_value, new_value); end
2315
+
2316
+ # source://activemodel//lib/active_model/type/value.rb#43
2317
+ def deserialize(value); end
2318
+
2319
+ # source://activemodel//lib/active_model/type/value.rb#121
2320
+ def eql?(other); end
2321
+
2322
+ # source://activemodel//lib/active_model/type/value.rb#113
2323
+ def force_equality?(_value); end
2324
+
2325
+ # source://activemodel//lib/active_model/type/value.rb#129
2326
+ def hash; end
2327
+
2328
+ # source://activemodel//lib/active_model/type/value.rb#11
2329
+ def limit; end
2330
+
2331
+ # source://activemodel//lib/active_model/type/value.rb#117
2332
+ def map(value, &_arg1); end
2333
+
2334
+ # source://activemodel//lib/active_model/type/value.rb#140
2335
+ def mutable?; end
2336
+
2337
+ # source://activemodel//lib/active_model/type/value.rb#11
2338
+ def precision; end
2339
+
2340
+ # source://activemodel//lib/active_model/type/value.rb#11
2341
+ def scale; end
2342
+
2343
+ # source://activemodel//lib/active_model/type/value.rb#28
2344
+ def serializable?(value, &_); end
2345
+
2346
+ # source://activemodel//lib/active_model/type/value.rb#65
2347
+ def serialize(value); end
2348
+
2349
+ # source://activemodel//lib/active_model/type/value.rb#136
2350
+ def serialized?; end
2351
+
2352
+ # source://activemodel//lib/active_model/type/value.rb#34
2353
+ def type; end
2354
+
2355
+ # source://activemodel//lib/active_model/type/value.rb#71
2356
+ def type_cast_for_schema(value); end
2357
+
2358
+ # source://activemodel//lib/active_model/type/value.rb#109
2359
+ def value_constructed_by_mass_assignment?(_value); end
2360
+
2361
+ private
2362
+
2363
+ # source://activemodel//lib/active_model/type/value.rb#152
2364
+ def cast_value(value); end
2365
+ end
2366
+
2367
+ # source://activemodel//lib/active_model/errors.rb#538
2368
+ class ActiveModel::UnknownAttributeError < ::NoMethodError
2369
+ # source://activemodel//lib/active_model/errors.rb#541
2370
+ def initialize(record, attribute); end
2371
+
2372
+ # source://activemodel//lib/active_model/errors.rb#539
2373
+ def attribute; end
2374
+
2375
+ # source://activemodel//lib/active_model/errors.rb#539
2376
+ def record; end
2377
+ end
2378
+
2379
+ # source://activemodel//lib/active_model/gem_version.rb#9
2380
+ module ActiveModel::VERSION; end
2381
+
2382
+ # source://activemodel//lib/active_model/gem_version.rb#10
2383
+ ActiveModel::VERSION::MAJOR = T.let(T.unsafe(nil), Integer)
2384
+
2385
+ # source://activemodel//lib/active_model/gem_version.rb#11
2386
+ ActiveModel::VERSION::MINOR = T.let(T.unsafe(nil), Integer)
2387
+
2388
+ # source://activemodel//lib/active_model/gem_version.rb#13
2389
+ ActiveModel::VERSION::PRE = T.let(T.unsafe(nil), T.untyped)
2390
+
2391
+ # source://activemodel//lib/active_model/gem_version.rb#15
2392
+ ActiveModel::VERSION::STRING = T.let(T.unsafe(nil), String)
2393
+
2394
+ # source://activemodel//lib/active_model/gem_version.rb#12
2395
+ ActiveModel::VERSION::TINY = T.let(T.unsafe(nil), Integer)
2396
+
2397
+ # source://activemodel//lib/active_model/validations.rb#505
2398
+ class ActiveModel::ValidationContext
2399
+ # source://activemodel//lib/active_model/validations.rb#506
2400
+ def context; end
2401
+
2402
+ # source://activemodel//lib/active_model/validations.rb#506
2403
+ def context=(_arg0); end
2404
+ end
2405
+
2406
+ # source://activemodel//lib/active_model/validations.rb#495
2407
+ class ActiveModel::ValidationError < ::StandardError
2408
+ # source://activemodel//lib/active_model/validations.rb#498
2409
+ def initialize(model); end
2410
+
2411
+ # source://activemodel//lib/active_model/validations.rb#496
2412
+ def model; end
2413
+ end
2414
+
2415
+ # source://activemodel//lib/active_model/validations.rb#37
2416
+ module ActiveModel::Validations
2417
+ extend ::ActiveSupport::Concern
2418
+ include GeneratedInstanceMethods
2419
+ include ::ActiveSupport::Callbacks
2420
+ include ::ActiveModel::Validations::HelperMethods
2421
+
2422
+ mixes_in_class_methods GeneratedClassMethods
2423
+ mixes_in_class_methods ::ActiveModel::Validations::ClassMethods
2424
+ mixes_in_class_methods ::ActiveModel::Callbacks
2425
+ mixes_in_class_methods ::ActiveSupport::Callbacks::ClassMethods
2426
+ mixes_in_class_methods ::ActiveSupport::DescendantsTracker
2427
+ mixes_in_class_methods ::ActiveModel::Translation
2428
+ mixes_in_class_methods ::ActiveModel::Validations::HelperMethods
2429
+
2430
+ # source://activemodel//lib/active_model/validations.rb#330
2431
+ def errors; end
2432
+
2433
+ # source://activemodel//lib/active_model/validations.rb#374
2434
+ def freeze; end
2435
+
2436
+ # source://activemodel//lib/active_model/validations.rb#410
2437
+ def invalid?(context = T.unsafe(nil)); end
2438
+
2439
+ def read_attribute_for_validation(*_arg0); end
2440
+
2441
+ # source://activemodel//lib/active_model/validations.rb#363
2442
+ def valid?(context = T.unsafe(nil)); end
2443
+
2444
+ # source://activemodel//lib/active_model/validations.rb#363
2445
+ def validate(context = T.unsafe(nil)); end
2446
+
2447
+ # source://activemodel//lib/active_model/validations.rb#419
2448
+ def validate!(context = T.unsafe(nil)); end
2449
+
2450
+ # source://activemodel//lib/active_model/validations/with.rb#144
2451
+ def validates_with(*args, &block); end
2452
+
2453
+ # source://activemodel//lib/active_model/validations.rb#456
2454
+ def validation_context; end
2455
+
2456
+ private
2457
+
2458
+ # source://activemodel//lib/active_model/validations.rb#465
2459
+ def context_for_validation; end
2460
+
2461
+ # source://activemodel//lib/active_model/validations.rb#469
2462
+ def init_internals; end
2463
+
2464
+ # source://activemodel//lib/active_model/validations.rb#312
2465
+ def initialize_dup(other); end
2466
+
2467
+ # source://activemodel//lib/active_model/validations.rb#480
2468
+ def raise_validation_error; end
2469
+
2470
+ # source://activemodel//lib/active_model/validations.rb#475
2471
+ def run_validations!; end
2472
+
2473
+ # source://activemodel//lib/active_model/validations.rb#461
2474
+ def validation_context=(context); end
2475
+
2476
+ module GeneratedClassMethods
2477
+ def __callbacks; end
2478
+ def __callbacks=(value); end
2479
+ def _validators; end
2480
+ def _validators=(value); end
2481
+ def _validators?; end
2482
+ end
2483
+
2484
+ module GeneratedInstanceMethods
2485
+ def __callbacks; end
2486
+ def _validators; end
2487
+ def _validators?; end
2488
+ end
2489
+ end
2490
+
2491
+ # source://activemodel//lib/active_model/validations/absence.rb#6
2492
+ class ActiveModel::Validations::AbsenceValidator < ::ActiveModel::EachValidator
2493
+ # source://activemodel//lib/active_model/validations/absence.rb#7
2494
+ def validate_each(record, attr_name, value); end
2495
+ end
2496
+
2497
+ # source://activemodel//lib/active_model/validations/acceptance.rb#5
2498
+ class ActiveModel::Validations::AcceptanceValidator < ::ActiveModel::EachValidator
2499
+ # source://activemodel//lib/active_model/validations/acceptance.rb#6
2500
+ def initialize(options); end
2501
+
2502
+ # source://activemodel//lib/active_model/validations/acceptance.rb#11
2503
+ def validate_each(record, attribute, value); end
2504
+
2505
+ private
2506
+
2507
+ # source://activemodel//lib/active_model/validations/acceptance.rb#23
2508
+ def acceptable_option?(value); end
2509
+
2510
+ # source://activemodel//lib/active_model/validations/acceptance.rb#18
2511
+ def setup!(klass); end
2512
+ end
2513
+
2514
+ # source://activemodel//lib/active_model/validations/acceptance.rb#27
2515
+ class ActiveModel::Validations::AcceptanceValidator::LazilyDefineAttributes < ::Module
2516
+ # source://activemodel//lib/active_model/validations/acceptance.rb#28
2517
+ def initialize(attributes); end
2518
+
2519
+ # source://activemodel//lib/active_model/validations/acceptance.rb#73
2520
+ def ==(other); end
2521
+
2522
+ # source://activemodel//lib/active_model/validations/acceptance.rb#56
2523
+ def define_on(klass); end
2524
+
2525
+ # source://activemodel//lib/active_model/validations/acceptance.rb#32
2526
+ def included(klass); end
2527
+
2528
+ # source://activemodel//lib/active_model/validations/acceptance.rb#51
2529
+ def matches?(method_name); end
2530
+
2531
+ protected
2532
+
2533
+ # source://activemodel//lib/active_model/validations/acceptance.rb#78
2534
+ def attributes; end
2535
+ end
2536
+
2537
+ # source://activemodel//lib/active_model/validations/callbacks.rb#22
2538
+ module ActiveModel::Validations::Callbacks
2539
+ extend ::ActiveSupport::Concern
2540
+ include GeneratedInstanceMethods
2541
+ include ::ActiveSupport::Callbacks
2542
+
2543
+ mixes_in_class_methods GeneratedClassMethods
2544
+ mixes_in_class_methods ::ActiveModel::Validations::Callbacks::ClassMethods
2545
+ mixes_in_class_methods ::ActiveSupport::Callbacks::ClassMethods
2546
+ mixes_in_class_methods ::ActiveSupport::DescendantsTracker
2547
+
2548
+ private
2549
+
2550
+ # source://activemodel//lib/active_model/validations/callbacks.rb#114
2551
+ def run_validations!; end
2552
+
2553
+ module GeneratedClassMethods
2554
+ def __callbacks; end
2555
+ def __callbacks=(value); end
2556
+ end
2557
+
2558
+ module GeneratedInstanceMethods
2559
+ def __callbacks; end
2560
+ end
2561
+ end
2562
+
2563
+ # source://activemodel//lib/active_model/validations/callbacks.rb#32
2564
+ module ActiveModel::Validations::Callbacks::ClassMethods
2565
+ # source://activemodel//lib/active_model/validations/callbacks.rb#88
2566
+ def after_validation(*args, &block); end
2567
+
2568
+ # source://activemodel//lib/active_model/validations/callbacks.rb#55
2569
+ def before_validation(*args, &block); end
2570
+
2571
+ private
2572
+
2573
+ # source://activemodel//lib/active_model/validations/callbacks.rb#99
2574
+ def set_options_for_callback(options); end
2575
+ end
2576
+
2577
+ # source://activemodel//lib/active_model/validations.rb#53
2578
+ module ActiveModel::Validations::ClassMethods
2579
+ # source://activemodel//lib/active_model/validations.rb#284
2580
+ def attribute_method?(attribute); end
2581
+
2582
+ # source://activemodel//lib/active_model/validations.rb#248
2583
+ def clear_validators!; end
2584
+
2585
+ # source://activemodel//lib/active_model/validations.rb#289
2586
+ def inherited(base); end
2587
+
2588
+ # source://activemodel//lib/active_model/validations.rb#162
2589
+ def validate(*args, &block); end
2590
+
2591
+ # source://activemodel//lib/active_model/validations/validates.rb#111
2592
+ def validates(*attributes); end
2593
+
2594
+ # source://activemodel//lib/active_model/validations/validates.rb#153
2595
+ def validates!(*attributes); end
2596
+
2597
+ # source://activemodel//lib/active_model/validations.rb#89
2598
+ def validates_each(*attr_names, &block); end
2599
+
2600
+ # source://activemodel//lib/active_model/validations/with.rb#88
2601
+ def validates_with(*args, &block); end
2602
+
2603
+ # source://activemodel//lib/active_model/validations.rb#206
2604
+ def validators; end
2605
+
2606
+ # source://activemodel//lib/active_model/validations.rb#268
2607
+ def validators_on(*attributes); end
2608
+
2609
+ private
2610
+
2611
+ # source://activemodel//lib/active_model/validations/validates.rb#166
2612
+ def _parse_validates_options(options); end
2613
+
2614
+ # source://activemodel//lib/active_model/validations/validates.rb#162
2615
+ def _validates_default_keys; end
2616
+
2617
+ # source://activemodel//lib/active_model/validations.rb#298
2618
+ def predicate_for_validation_context(context); end
2619
+ end
2620
+
2621
+ # source://activemodel//lib/active_model/validations.rb#93
2622
+ ActiveModel::Validations::ClassMethods::VALID_OPTIONS_FOR_VALIDATE = T.let(T.unsafe(nil), Array)
2623
+
2624
+ # source://activemodel//lib/active_model/validations/clusivity.rb#8
2625
+ module ActiveModel::Validations::Clusivity
2626
+ include ::ActiveModel::Validations::ResolveValue
2627
+
2628
+ # source://activemodel//lib/active_model/validations/clusivity.rb#14
2629
+ def check_validity!; end
2630
+
2631
+ private
2632
+
2633
+ # source://activemodel//lib/active_model/validations/clusivity.rb#31
2634
+ def delimiter; end
2635
+
2636
+ # source://activemodel//lib/active_model/validations/clusivity.rb#21
2637
+ def include?(record, value); end
2638
+
2639
+ # source://activemodel//lib/active_model/validations/clusivity.rb#40
2640
+ def inclusion_method(enumerable); end
2641
+ end
2642
+
2643
+ # source://activemodel//lib/active_model/validations/clusivity.rb#11
2644
+ ActiveModel::Validations::Clusivity::ERROR_MESSAGE = T.let(T.unsafe(nil), String)
2645
+
2646
+ # source://activemodel//lib/active_model/validations/comparability.rb#5
2647
+ module ActiveModel::Validations::Comparability
2648
+ # source://activemodel//lib/active_model/validations/comparability.rb#10
2649
+ def error_options(value, option_value); end
2650
+ end
2651
+
2652
+ # source://activemodel//lib/active_model/validations/comparability.rb#6
2653
+ ActiveModel::Validations::Comparability::COMPARE_CHECKS = T.let(T.unsafe(nil), Hash)
2654
+
2655
+ # source://activemodel//lib/active_model/validations/comparison.rb#8
2656
+ class ActiveModel::Validations::ComparisonValidator < ::ActiveModel::EachValidator
2657
+ include ::ActiveModel::Validations::Comparability
2658
+ include ::ActiveModel::Validations::ResolveValue
2659
+
2660
+ # source://activemodel//lib/active_model/validations/comparison.rb#12
2661
+ def check_validity!; end
2662
+
2663
+ # source://activemodel//lib/active_model/validations/comparison.rb#19
2664
+ def validate_each(record, attr_name, value); end
2665
+ end
2666
+
2667
+ # source://activemodel//lib/active_model/validations/confirmation.rb#5
2668
+ class ActiveModel::Validations::ConfirmationValidator < ::ActiveModel::EachValidator
2669
+ # source://activemodel//lib/active_model/validations/confirmation.rb#6
2670
+ def initialize(options); end
2671
+
2672
+ # source://activemodel//lib/active_model/validations/confirmation.rb#11
2673
+ def validate_each(record, attribute, value); end
2674
+
2675
+ private
2676
+
2677
+ # source://activemodel//lib/active_model/validations/confirmation.rb#31
2678
+ def confirmation_value_equal?(record, attribute, value, confirmed); end
2679
+
2680
+ # source://activemodel//lib/active_model/validations/confirmation.rb#21
2681
+ def setup!(klass); end
2682
+ end
2683
+
2684
+ # source://activemodel//lib/active_model/validations/exclusion.rb#7
2685
+ class ActiveModel::Validations::ExclusionValidator < ::ActiveModel::EachValidator
2686
+ include ::ActiveModel::Validations::ResolveValue
2687
+ include ::ActiveModel::Validations::Clusivity
2688
+
2689
+ # source://activemodel//lib/active_model/validations/exclusion.rb#10
2690
+ def validate_each(record, attribute, value); end
2691
+ end
2692
+
2693
+ # source://activemodel//lib/active_model/validations/format.rb#7
2694
+ class ActiveModel::Validations::FormatValidator < ::ActiveModel::EachValidator
2695
+ include ::ActiveModel::Validations::ResolveValue
2696
+
2697
+ # source://activemodel//lib/active_model/validations/format.rb#20
2698
+ def check_validity!; end
2699
+
2700
+ # source://activemodel//lib/active_model/validations/format.rb#10
2701
+ def validate_each(record, attribute, value); end
2702
+
2703
+ private
2704
+
2705
+ # source://activemodel//lib/active_model/validations/format.rb#34
2706
+ def check_options_validity(name); end
2707
+
2708
+ # source://activemodel//lib/active_model/validations/format.rb#30
2709
+ def record_error(record, attribute, name, value); end
2710
+
2711
+ # source://activemodel//lib/active_model/validations/format.rb#48
2712
+ def regexp_using_multiline_anchors?(regexp); end
2713
+ end
2714
+
2715
+ # source://activemodel//lib/active_model/validations/absence.rb#12
2716
+ module ActiveModel::Validations::HelperMethods
2717
+ # source://activemodel//lib/active_model/validations/absence.rb#28
2718
+ def validates_absence_of(*attr_names); end
2719
+
2720
+ # source://activemodel//lib/active_model/validations/acceptance.rb#108
2721
+ def validates_acceptance_of(*attr_names); end
2722
+
2723
+ # source://activemodel//lib/active_model/validations/comparison.rb#85
2724
+ def validates_comparison_of(*attr_names); end
2725
+
2726
+ # source://activemodel//lib/active_model/validations/confirmation.rb#75
2727
+ def validates_confirmation_of(*attr_names); end
2728
+
2729
+ # source://activemodel//lib/active_model/validations/exclusion.rb#44
2730
+ def validates_exclusion_of(*attr_names); end
2731
+
2732
+ # source://activemodel//lib/active_model/validations/format.rb#107
2733
+ def validates_format_of(*attr_names); end
2734
+
2735
+ # source://activemodel//lib/active_model/validations/inclusion.rb#42
2736
+ def validates_inclusion_of(*attr_names); end
2737
+
2738
+ # source://activemodel//lib/active_model/validations/length.rb#123
2739
+ def validates_length_of(*attr_names); end
2740
+
2741
+ # source://activemodel//lib/active_model/validations/numericality.rb#217
2742
+ def validates_numericality_of(*attr_names); end
2743
+
2744
+ # source://activemodel//lib/active_model/validations/presence.rb#34
2745
+ def validates_presence_of(*attr_names); end
2746
+
2747
+ # source://activemodel//lib/active_model/validations/length.rb#123
2748
+ def validates_size_of(*attr_names); end
2749
+
2750
+ private
2751
+
2752
+ # source://activemodel//lib/active_model/validations/helper_methods.rb#7
2753
+ def _merge_attributes(attr_names); end
2754
+ end
2755
+
2756
+ # source://activemodel//lib/active_model/validations/inclusion.rb#7
2757
+ class ActiveModel::Validations::InclusionValidator < ::ActiveModel::EachValidator
2758
+ include ::ActiveModel::Validations::ResolveValue
2759
+ include ::ActiveModel::Validations::Clusivity
2760
+
2761
+ # source://activemodel//lib/active_model/validations/inclusion.rb#10
2762
+ def validate_each(record, attribute, value); end
2763
+ end
2764
+
2765
+ # source://activemodel//lib/active_model/validations/length.rb#7
2766
+ class ActiveModel::Validations::LengthValidator < ::ActiveModel::EachValidator
2767
+ include ::ActiveModel::Validations::ResolveValue
2768
+
2769
+ # source://activemodel//lib/active_model/validations/length.rb#15
2770
+ def initialize(options); end
2771
+
2772
+ # source://activemodel//lib/active_model/validations/length.rb#29
2773
+ def check_validity!; end
2774
+
2775
+ # source://activemodel//lib/active_model/validations/length.rb#47
2776
+ def validate_each(record, attribute, value); end
2777
+
2778
+ private
2779
+
2780
+ # source://activemodel//lib/active_model/validations/length.rb#69
2781
+ def skip_nil_check?(key); end
2782
+ end
2783
+
2784
+ # source://activemodel//lib/active_model/validations/length.rb#11
2785
+ ActiveModel::Validations::LengthValidator::CHECKS = T.let(T.unsafe(nil), Hash)
2786
+
2787
+ # source://activemodel//lib/active_model/validations/length.rb#10
2788
+ ActiveModel::Validations::LengthValidator::MESSAGES = T.let(T.unsafe(nil), Hash)
2789
+
2790
+ # source://activemodel//lib/active_model/validations/length.rb#13
2791
+ ActiveModel::Validations::LengthValidator::RESERVED_OPTIONS = T.let(T.unsafe(nil), Array)
2792
+
2793
+ # source://activemodel//lib/active_model/validations/numericality.rb#9
2794
+ class ActiveModel::Validations::NumericalityValidator < ::ActiveModel::EachValidator
2795
+ include ::ActiveModel::Validations::Comparability
2796
+ include ::ActiveModel::Validations::ResolveValue
2797
+
2798
+ # source://activemodel//lib/active_model/validations/numericality.rb#22
2799
+ def check_validity!; end
2800
+
2801
+ # source://activemodel//lib/active_model/validations/numericality.rb#36
2802
+ def validate_each(record, attr_name, value, precision: T.unsafe(nil), scale: T.unsafe(nil)); end
2803
+
2804
+ private
2805
+
2806
+ # source://activemodel//lib/active_model/validations/numericality.rb#118
2807
+ def allow_only_integer?(record); end
2808
+
2809
+ # source://activemodel//lib/active_model/validations/numericality.rb#112
2810
+ def filtered_options(value); end
2811
+
2812
+ # source://activemodel//lib/active_model/validations/numericality.rb#108
2813
+ def is_hexadecimal_literal?(raw_value); end
2814
+
2815
+ # source://activemodel//lib/active_model/validations/numericality.rb#104
2816
+ def is_integer?(raw_value); end
2817
+
2818
+ # source://activemodel//lib/active_model/validations/numericality.rb#94
2819
+ def is_number?(raw_value, precision, scale); end
2820
+
2821
+ # source://activemodel//lib/active_model/validations/numericality.rb#68
2822
+ def option_as_number(record, option_value, precision, scale); end
2823
+
2824
+ # source://activemodel//lib/active_model/validations/numericality.rb#72
2825
+ def parse_as_number(raw_value, precision, scale); end
2826
+
2827
+ # source://activemodel//lib/active_model/validations/numericality.rb#86
2828
+ def parse_float(raw_value, precision, scale); end
2829
+
2830
+ # source://activemodel//lib/active_model/validations/numericality.rb#122
2831
+ def prepare_value_for_validation(value, record, attr_name); end
2832
+
2833
+ # source://activemodel//lib/active_model/validations/numericality.rb#143
2834
+ def record_attribute_changed_in_place?(record, attr_name); end
2835
+
2836
+ # source://activemodel//lib/active_model/validations/numericality.rb#90
2837
+ def round(raw_value, scale); end
2838
+ end
2839
+
2840
+ # source://activemodel//lib/active_model/validations/numericality.rb#20
2841
+ ActiveModel::Validations::NumericalityValidator::HEXADECIMAL_REGEX = T.let(T.unsafe(nil), Regexp)
2842
+
2843
+ # source://activemodel//lib/active_model/validations/numericality.rb#18
2844
+ ActiveModel::Validations::NumericalityValidator::INTEGER_REGEX = T.let(T.unsafe(nil), Regexp)
2845
+
2846
+ # source://activemodel//lib/active_model/validations/numericality.rb#14
2847
+ ActiveModel::Validations::NumericalityValidator::NUMBER_CHECKS = T.let(T.unsafe(nil), Hash)
2848
+
2849
+ # source://activemodel//lib/active_model/validations/numericality.rb#13
2850
+ ActiveModel::Validations::NumericalityValidator::RANGE_CHECKS = T.let(T.unsafe(nil), Hash)
2851
+
2852
+ # source://activemodel//lib/active_model/validations/numericality.rb#16
2853
+ ActiveModel::Validations::NumericalityValidator::RESERVED_OPTIONS = T.let(T.unsafe(nil), Array)
2854
+
2855
+ # source://activemodel//lib/active_model/validations/presence.rb#5
2856
+ class ActiveModel::Validations::PresenceValidator < ::ActiveModel::EachValidator
2857
+ # source://activemodel//lib/active_model/validations/presence.rb#6
2858
+ def validate_each(record, attr_name, value); end
2859
+ end
2860
+
2861
+ # source://activemodel//lib/active_model/validations/resolve_value.rb#5
2862
+ module ActiveModel::Validations::ResolveValue
2863
+ # source://activemodel//lib/active_model/validations/resolve_value.rb#6
2864
+ def resolve_value(record, value); end
2865
+ end
2866
+
2867
+ # source://activemodel//lib/active_model/validations/with.rb#7
2868
+ class ActiveModel::Validations::WithValidator < ::ActiveModel::EachValidator
2869
+ # source://activemodel//lib/active_model/validations/with.rb#8
2870
+ def validate_each(record, attr, val); end
2871
+ end
2872
+
2873
+ # source://activemodel//lib/active_model/validator.rb#96
2874
+ class ActiveModel::Validator
2875
+ # source://activemodel//lib/active_model/validator.rb#108
2876
+ def initialize(options = T.unsafe(nil)); end
2877
+
2878
+ # source://activemodel//lib/active_model/validator.rb#116
2879
+ def kind; end
2880
+
2881
+ # source://activemodel//lib/active_model/validator.rb#97
2882
+ def options; end
2883
+
2884
+ # source://activemodel//lib/active_model/validator.rb#122
2885
+ def validate(record); end
2886
+
2887
+ class << self
2888
+ # source://activemodel//lib/active_model/validator.rb#103
2889
+ def kind; end
2890
+ end
2891
+ end