sord 0.9.0 → 3.0.0.beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  3. data/.github/ISSUE_TEMPLATE/feature-request.md +0 -0
  4. data/.gitignore +0 -0
  5. data/.parlour +6 -2
  6. data/.rspec +0 -0
  7. data/.travis.yml +0 -0
  8. data/CHANGELOG.md +58 -0
  9. data/CODE_OF_CONDUCT.md +0 -0
  10. data/Gemfile +0 -0
  11. data/LICENSE.txt +0 -0
  12. data/README.md +76 -43
  13. data/Rakefile +26 -7
  14. data/exe/sord +48 -6
  15. data/lib/sord.rb +1 -1
  16. data/lib/sord/generator.rb +592 -0
  17. data/lib/sord/logging.rb +0 -0
  18. data/lib/sord/parlour_plugin.rb +24 -3
  19. data/lib/sord/resolver.rb +0 -0
  20. data/lib/sord/type_converter.rb +71 -63
  21. data/lib/sord/version.rb +1 -1
  22. data/rbi/sord.rbi +210 -30
  23. data/sord.gemspec +3 -3
  24. metadata +15 -34
  25. data/lib/sord/rbi_generator.rb +0 -300
  26. data/sorbet/config +0 -0
  27. data/sorbet/rbi/gems/docile.rbi +0 -31
  28. data/sorbet/rbi/gems/parlour.rbi +0 -214
  29. data/sorbet/rbi/gems/rainbow.rbi +0 -117
  30. data/sorbet/rbi/gems/rake.rbi +0 -643
  31. data/sorbet/rbi/gems/rspec-core.rbi +0 -1658
  32. data/sorbet/rbi/gems/rspec-expectations.rbi +0 -389
  33. data/sorbet/rbi/gems/rspec-mocks.rbi +0 -823
  34. data/sorbet/rbi/gems/rspec-support.rbi +0 -268
  35. data/sorbet/rbi/gems/rspec.rbi +0 -14
  36. data/sorbet/rbi/gems/simplecov-html.rbi +0 -30
  37. data/sorbet/rbi/gems/simplecov.rbi +0 -225
  38. data/sorbet/rbi/gems/sorbet-runtime.rbi +0 -670
  39. data/sorbet/rbi/gems/yard.rbi +0 -310
  40. data/sorbet/rbi/hidden-definitions/errors.txt +0 -9285
  41. data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -26604
  42. data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +0 -8575
  43. data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +0 -111
  44. data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +0 -543
@@ -1,670 +0,0 @@
1
- # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
- # srb rbi gems
3
-
4
- # typed: true
5
- #
6
- # If you would like to make changes to this file, great! Please create the gem's shim here:
7
- #
8
- # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/sorbet-runtime/all/sorbet-runtime.rbi
9
- #
10
- # sorbet-runtime-0.4.4537
11
- module T::Configuration
12
- def self.call_validation_error_handler(signature, opts = nil); end
13
- def self.call_validation_error_handler=(value); end
14
- def self.call_validation_error_handler_default(signature, opts); end
15
- def self.default_checked_level=(default_checked_level); end
16
- def self.enable_checking_for_sigs_marked_checked_tests; end
17
- def self.enable_final_checks_on_hooks; end
18
- def self.hard_assert_handler(str, extra); end
19
- def self.hard_assert_handler=(value); end
20
- def self.hard_assert_handler_default(str, _); end
21
- def self.inline_type_error_handler(error); end
22
- def self.inline_type_error_handler=(value); end
23
- def self.inline_type_error_handler_default(error); end
24
- def self.log_info_handler(str, extra); end
25
- def self.log_info_handler=(value); end
26
- def self.log_info_handler_default(str, extra); end
27
- def self.reset_final_checks_on_hooks; end
28
- def self.scalar_types; end
29
- def self.scalar_types=(values); end
30
- def self.sig_builder_error_handler(error, location); end
31
- def self.sig_builder_error_handler=(value); end
32
- def self.sig_builder_error_handler_default(error, location); end
33
- def self.sig_validation_error_handler(error, opts = nil); end
34
- def self.sig_validation_error_handler=(value); end
35
- def self.sig_validation_error_handler_default(error, opts); end
36
- def self.soft_assert_handler(str, extra); end
37
- def self.soft_assert_handler=(value); end
38
- def self.soft_assert_handler_default(str, extra); end
39
- def self.validate_lambda_given!(value); end
40
- def self.without_ruby_warnings; end
41
- end
42
- module T::Profile
43
- def self.reset; end
44
- def self.typecheck_count_estimate; end
45
- def self.typecheck_duration; end
46
- def self.typecheck_duration=(arg0); end
47
- def self.typecheck_duration_estimate; end
48
- def self.typecheck_sample_attempts; end
49
- def self.typecheck_sample_attempts=(arg0); end
50
- def self.typecheck_samples; end
51
- def self.typecheck_samples=(arg0); end
52
- end
53
- module T
54
- def self.absurd(value); end
55
- end
56
- module T::Array
57
- end
58
- module T::Hash
59
- end
60
- module T::Enumerable
61
- end
62
- module T::Enumerator
63
- def self.[](type); end
64
- end
65
- module T::Range
66
- end
67
- module T::Set
68
- end
69
- module T::CFGExport
70
- end
71
- class T::Private::DeclState
72
- def active_declaration; end
73
- def active_declaration=(arg0); end
74
- def reset!; end
75
- def self.current; end
76
- def self.current=(other); end
77
- def skip_on_method_added; end
78
- def skip_on_method_added=(arg0); end
79
- end
80
- module T::Utils
81
- def self.arity(method); end
82
- def self.coerce(val); end
83
- def self.methods_excluding_object(mod); end
84
- def self.register_forwarder(from_method, to_method, remove_first_param: nil); end
85
- def self.run_all_sig_blocks; end
86
- def self.signature_for_instance_method(mod, method_name); end
87
- def self.string_truncate_middle(str, start_len, end_len, ellipsis = nil); end
88
- def self.unwrap_nilable(type); end
89
- def self.wrap_method_with_call_validation_if_needed(mod, method_sig, original_method); end
90
- end
91
- class T::Utils::RuntimeProfiled
92
- end
93
- module T::Private::ClassUtils
94
- def self.replace_method(mod, name, &blk); end
95
- def self.visibility_method_name(mod, name); end
96
- end
97
- class T::Private::ClassUtils::ReplacedMethod
98
- def bind(obj); end
99
- def initialize(mod, old_method, new_method, overwritten, visibility); end
100
- def restore; end
101
- def to_s; end
102
- end
103
- module T::Private::RuntimeLevels
104
- def self._toggle_checking_tests(checked); end
105
- def self.check_tests?; end
106
- def self.default_checked_level; end
107
- def self.default_checked_level=(default_checked_level); end
108
- def self.enable_checking_in_tests; end
109
- end
110
- module T::Private::Methods
111
- def self._check_final_ancestors(target, target_ancestors, source_method_names); end
112
- def self._hook_impl(target, target_ancestors, source); end
113
- def self._on_method_added(hook_mod, method_name, is_singleton_method: nil); end
114
- def self.add_final_method(method_key); end
115
- def self.add_module_with_final(mod); end
116
- def self.build_sig(hook_mod, method_name, original_method, current_declaration, loc); end
117
- def self.declare_sig(mod, arg, &blk); end
118
- def self.final_method?(method_key); end
119
- def self.finalize_proc(decl); end
120
- def self.has_sig_block_for_key(key); end
121
- def self.has_sig_block_for_method(method); end
122
- def self.install_hooks(mod); end
123
- def self.install_singleton_method_added_hook(singleton_klass); end
124
- def self.key_to_method(key); end
125
- def self.maybe_run_sig_block_for_key(key); end
126
- def self.maybe_run_sig_block_for_method(method); end
127
- def self.method_owner_and_name_to_key(owner, name); end
128
- def self.method_to_key(method); end
129
- def self.module_with_final?(mod); end
130
- def self.register_forwarder(from_method, to_method, mode: nil, remove_first_param: nil); end
131
- def self.run_all_sig_blocks; end
132
- def self.run_builder(declaration_block); end
133
- def self.run_sig(hook_mod, method_name, original_method, declaration_block); end
134
- def self.run_sig_block_for_key(key); end
135
- def self.run_sig_block_for_method(method); end
136
- def self.set_final_checks_on_hooks(enable); end
137
- def self.sig_error(loc, message); end
138
- def self.signature_for_key(key); end
139
- def self.signature_for_method(method); end
140
- def self.start_proc; end
141
- def self.unwrap_method(hook_mod, signature, original_method); end
142
- end
143
- class T::Private::Methods::DeclarationBlock < Struct
144
- def blk; end
145
- def blk=(_); end
146
- def final; end
147
- def final=(_); end
148
- def loc; end
149
- def loc=(_); end
150
- def mod; end
151
- def mod=(_); end
152
- def self.[](*arg0); end
153
- def self.inspect; end
154
- def self.members; end
155
- def self.new(*arg0); end
156
- end
157
- module T::Sig
158
- def sig(arg = nil, &blk); end
159
- end
160
- module T::Sig::WithoutRuntime
161
- end
162
- module T::Helpers
163
- def abstract!; end
164
- def final!; end
165
- def interface!; end
166
- def mixes_in_class_methods(mod); end
167
- end
168
- module T::Private::Final
169
- def self.declare(mod); end
170
- def self.final_module?(mod); end
171
- def self.mark_as_final_module(mod); end
172
- end
173
- module T::Private::Final::NoInherit
174
- def inherited(arg); end
175
- end
176
- module T::Private::Final::NoIncludeExtend
177
- def extended(arg); end
178
- def included(arg); end
179
- end
180
- module T::Types
181
- end
182
- class T::Types::Base
183
- def self.method_added(method_name); end
184
- end
185
- class T::Types::TypedEnumerable < T::Types::Base
186
- end
187
- class T::Types::ClassOf < T::Types::Base
188
- end
189
- class T::Types::Enum < T::Types::Base
190
- def self.method_added(name); end
191
- def self.singleton_method_added(name); end
192
- extend T::Sig
193
- end
194
- class T::Types::FixedArray < T::Types::Base
195
- end
196
- class T::Types::FixedHash < T::Types::Base
197
- end
198
- class T::Types::Intersection < T::Types::Base
199
- end
200
- class T::Types::NoReturn < T::Types::Base
201
- end
202
- class T::Types::Proc < T::Types::Base
203
- end
204
- class T::Types::SelfType < T::Types::Base
205
- end
206
- class T::Types::Simple < T::Types::Base
207
- end
208
- class T::Types::TypeParameter < T::Types::Base
209
- end
210
- class T::Types::TypedArray < T::Types::TypedEnumerable
211
- end
212
- class T::Types::TypedEnumerator < T::Types::TypedEnumerable
213
- end
214
- class T::Types::TypedHash < T::Types::TypedEnumerable
215
- end
216
- class T::Types::TypedRange < T::Types::TypedEnumerable
217
- end
218
- class T::Types::TypedSet < T::Types::TypedEnumerable
219
- end
220
- class T::Types::Union < T::Types::Base
221
- end
222
- class T::Types::Untyped < T::Types::Base
223
- end
224
- class T::Private::Types::NotTyped < T::Types::Base
225
- end
226
- class T::Private::Types::Void < T::Types::Base
227
- end
228
- module T::Private::Types::Void::VOID
229
- end
230
- class T::Private::Types::StringHolder < T::Types::Base
231
- end
232
- class T::Types::TypeVariable < T::Types::Base
233
- end
234
- class T::Types::TypeMember < T::Types::TypeVariable
235
- end
236
- class T::Types::TypeTemplate < T::Types::TypeVariable
237
- end
238
- module T::Private::Methods::Modes
239
- def self.abstract; end
240
- def self.implementation; end
241
- def self.overridable; end
242
- def self.overridable_implementation; end
243
- def self.override; end
244
- def self.standard; end
245
- def self.untyped; end
246
- end
247
- module T::Private::Methods::CallValidation
248
- def self.create_validator_method(mod, original_method, method_sig, original_visibility); end
249
- def self.create_validator_method_fast(mod, original_method, method_sig); end
250
- def self.create_validator_method_fast0(mod, original_method, method_sig, return_type); end
251
- def self.create_validator_method_fast1(mod, original_method, method_sig, return_type, arg0_type); end
252
- def self.create_validator_method_fast2(mod, original_method, method_sig, return_type, arg0_type, arg1_type); end
253
- def self.create_validator_method_fast3(mod, original_method, method_sig, return_type, arg0_type, arg1_type, arg2_type); end
254
- def self.create_validator_method_fast4(mod, original_method, method_sig, return_type, arg0_type, arg1_type, arg2_type, arg3_type); end
255
- def self.create_validator_procedure_fast(mod, original_method, method_sig); end
256
- def self.create_validator_procedure_fast0(mod, original_method, method_sig); end
257
- def self.create_validator_procedure_fast1(mod, original_method, method_sig, arg0_type); end
258
- def self.create_validator_procedure_fast2(mod, original_method, method_sig, arg0_type, arg1_type); end
259
- def self.create_validator_procedure_fast3(mod, original_method, method_sig, arg0_type, arg1_type, arg2_type); end
260
- def self.create_validator_procedure_fast4(mod, original_method, method_sig, arg0_type, arg1_type, arg2_type, arg3_type); end
261
- def self.create_validator_slow(mod, original_method, method_sig); end
262
- def self.disable_fast_path; end
263
- def self.is_allowed_to_have_fast_path; end
264
- def self.report_error(method_sig, error_message, kind, name, type, value, caller_offset: nil); end
265
- def self.validate_call(instance, original_method, method_sig, args, blk); end
266
- def self.visibility_method_name(mod, name); end
267
- def self.wrap_method_if_needed(mod, method_sig, original_method); end
268
- end
269
- module T::Private::Methods::SignatureValidation
270
- def self.base_override_loc_str(signature, super_signature); end
271
- def self.method_loc_str(method); end
272
- def self.pretty_mode(signature); end
273
- def self.validate(signature); end
274
- def self.validate_non_override_mode(signature); end
275
- def self.validate_override_mode(signature, super_signature); end
276
- def self.validate_override_shape(signature, super_signature); end
277
- def self.validate_override_types(signature, super_signature); end
278
- end
279
- module T::AbstractUtils
280
- def self.abstract_method?(method); end
281
- def self.abstract_methods_for(mod); end
282
- def self.abstract_module?(mod); end
283
- def self.declared_abstract_methods_for(mod); end
284
- end
285
- module T::Private::Abstract::Validate
286
- def self.describe_method(method, show_owner: nil); end
287
- def self.validate_abstract_module(mod); end
288
- def self.validate_interface(mod); end
289
- def self.validate_interface_all_abstract(mod, method_names); end
290
- def self.validate_interface_all_public(mod, method_names); end
291
- def self.validate_subclass(mod); end
292
- end
293
- module T::Generic
294
- def [](*types); end
295
- def type_member(variance = nil, fixed: nil, lower: nil, upper: nil); end
296
- def type_template(variance = nil, fixed: nil, lower: nil, upper: nil); end
297
- include Kernel
298
- include T::Helpers
299
- end
300
- class T::InterfaceWrapper
301
- def __interface_mod_DO_NOT_USE; end
302
- def __target_obj_DO_NOT_USE; end
303
- def initialize(target_obj, interface_mod); end
304
- def is_a?(other); end
305
- def kind_of?(other); end
306
- def self.dynamic_cast(obj, mod); end
307
- def self.method_added(name); end
308
- def self.new(*arg0); end
309
- def self.self_methods; end
310
- def self.singleton_method_added(name); end
311
- def self.wrap_instance(obj, interface_mod); end
312
- def self.wrap_instances(*args, &blk); end
313
- def self.wrapped_dynamic_cast(obj, mod); end
314
- extend T::Sig
315
- end
316
- module T::InterfaceWrapper::Helpers
317
- def wrap_instance(obj); end
318
- def wrap_instances(arr); end
319
- end
320
- module T::Private::Abstract::Declare
321
- def self.declare_abstract(mod, type:); end
322
- end
323
- module T::Private::Abstract::Hooks
324
- def append_features(other); end
325
- def extend_object(other); end
326
- def inherited(other); end
327
- def prepended(other); end
328
- end
329
- module T::Private
330
- end
331
- module T::Private::Casts
332
- def self.cast(value, type, cast_method:); end
333
- end
334
- class T::Private::Methods::Declaration < Struct
335
- def bind; end
336
- def bind=(_); end
337
- def checked; end
338
- def checked=(_); end
339
- def finalized; end
340
- def finalized=(_); end
341
- def generated; end
342
- def generated=(_); end
343
- def mod; end
344
- def mod=(_); end
345
- def mode; end
346
- def mode=(_); end
347
- def on_failure; end
348
- def on_failure=(_); end
349
- def override_allow_incompatible; end
350
- def override_allow_incompatible=(_); end
351
- def params; end
352
- def params=(_); end
353
- def returns; end
354
- def returns=(_); end
355
- def self.[](*arg0); end
356
- def self.inspect; end
357
- def self.members; end
358
- def self.new(*arg0); end
359
- def type_parameters; end
360
- def type_parameters=(_); end
361
- end
362
- class T::Private::Methods::DeclBuilder
363
- def abstract; end
364
- def bind(type); end
365
- def check_live!; end
366
- def checked(level); end
367
- def decl; end
368
- def final; end
369
- def finalize!; end
370
- def generated; end
371
- def implementation; end
372
- def initialize(mod); end
373
- def on_failure(*args); end
374
- def overridable; end
375
- def override(allow_incompatible: nil); end
376
- def params(params); end
377
- def returns(type); end
378
- def type_parameters(*names); end
379
- def void; end
380
- end
381
- class T::Private::Methods::DeclBuilder::BuilderError < StandardError
382
- end
383
- class T::Private::Methods::Signature
384
- def arg_count; end
385
- def arg_types; end
386
- def bind; end
387
- def block_name; end
388
- def block_type; end
389
- def check_level; end
390
- def dsl_method; end
391
- def each_args_value_type(args); end
392
- def ever_failed; end
393
- def generated; end
394
- def has_keyrest; end
395
- def has_rest; end
396
- def initialize(method:, method_name:, raw_arg_types:, raw_return_type:, bind:, mode:, check_level:, on_failure:, parameters: nil, generated: nil, override_allow_incompatible: nil); end
397
- def keyrest_name; end
398
- def keyrest_type; end
399
- def kwarg_names; end
400
- def kwarg_types; end
401
- def mark_failed; end
402
- def method; end
403
- def method_desc; end
404
- def method_name; end
405
- def mode; end
406
- def on_failure; end
407
- def override_allow_incompatible; end
408
- def owner; end
409
- def parameters; end
410
- def req_arg_count; end
411
- def req_kwarg_names; end
412
- def rest_name; end
413
- def rest_type; end
414
- def return_type; end
415
- def self.new_untyped(method:, mode: nil, parameters: nil); end
416
- end
417
- module T::Utils::Nilable
418
- def self.get_type_info(prop_type); end
419
- def self.get_underlying_type(prop_type); end
420
- def self.get_underlying_type_object(prop_type); end
421
- def self.is_union_with_nilclass(prop_type); end
422
- end
423
- class T::Utils::Nilable::TypeInfo < Struct
424
- def is_union_type; end
425
- def is_union_type=(_); end
426
- def non_nilable_type; end
427
- def non_nilable_type=(_); end
428
- def self.[](*arg0); end
429
- def self.inspect; end
430
- def self.members; end
431
- def self.new(*arg0); end
432
- end
433
- module T::Private::Abstract::Data
434
- def self.get(mod, key); end
435
- def self.key?(mod, key); end
436
- def self.set(mod, key, value); end
437
- def self.set_default(mod, key, default); end
438
- end
439
- module T::Private::MixesInClassMethods
440
- def included(other); end
441
- end
442
- module T::Private::Mixins
443
- def self.declare_mixes_in_class_methods(mixin, class_methods); end
444
- end
445
- module T::Props
446
- extend T::Helpers
447
- end
448
- module T::Props::ClassMethods
449
- def const(*args, &blk); end
450
- def decorator; end
451
- def decorator_class; end
452
- def extended(child); end
453
- def included(child); end
454
- def inherited(child); end
455
- def plugin(mod); end
456
- def plugins; end
457
- def prepended(child); end
458
- def prop(name, cls, rules = nil); end
459
- def props; end
460
- def reload_decorator!; end
461
- def self.method_added(name); end
462
- def self.singleton_method_added(name); end
463
- def validate_prop_value(prop, val); end
464
- extend T::Helpers
465
- extend T::Sig
466
- end
467
- module T::Props::CustomType
468
- def deserialize(_mongo_scalar); end
469
- def instance?(_value); end
470
- def self.included(_base); end
471
- def self.scalar_type?(val); end
472
- def self.valid_serialization?(val, type = nil); end
473
- def serialize(_instance); end
474
- def valid?(value); end
475
- include Kernel
476
- end
477
- class T::Props::Decorator
478
- def add_prop_definition(*args, &blk); end
479
- def all_props(*args, &blk); end
480
- def array_subdoc_type(*args, &blk); end
481
- def check_prop_type(*args, &blk); end
482
- def convert_type_to_class(*args, &blk); end
483
- def decorated_class; end
484
- def define_foreign_method(*args, &blk); end
485
- def define_getter_and_setter(*args, &blk); end
486
- def foreign_prop_get(*args, &blk); end
487
- def get(*args, &blk); end
488
- def handle_foreign_hint_only_option(*args, &blk); end
489
- def handle_foreign_option(*args, &blk); end
490
- def handle_redaction_option(*args, &blk); end
491
- def hash_key_custom_type(*args, &blk); end
492
- def hash_value_subdoc_type(*args, &blk); end
493
- def initialize(klass); end
494
- def is_nilable?(*args, &blk); end
495
- def model_inherited(child); end
496
- def mutate_prop_backdoor!(*args, &blk); end
497
- def plugin(mod); end
498
- def prop_defined(*args, &blk); end
499
- def prop_get(*args, &blk); end
500
- def prop_rules(*args, &blk); end
501
- def prop_set(*args, &blk); end
502
- def prop_validate_definition!(*args, &blk); end
503
- def props; end
504
- def self.method_added(name); end
505
- def self.singleton_method_added(name); end
506
- def set(*args, &blk); end
507
- def shallow_clone_ok(*args, &blk); end
508
- def smart_coerce(*args, &blk); end
509
- def valid_props(*args, &blk); end
510
- def validate_foreign_option(*args, &blk); end
511
- def validate_not_missing_sensitivity(*args, &blk); end
512
- def validate_prop_name(name); end
513
- def validate_prop_value(*args, &blk); end
514
- extend T::Sig
515
- end
516
- class T::Props::Decorator::NoRulesError < StandardError
517
- end
518
- module T::Props::Decorator::Private
519
- def self.apply_class_methods(plugin, target); end
520
- def self.apply_decorator_methods(plugin, target); end
521
- end
522
- class T::Props::Error < StandardError
523
- end
524
- class T::Props::InvalidValueError < T::Props::Error
525
- end
526
- class T::Props::ImmutableProp < T::Props::Error
527
- end
528
- module T::Props::Plugin
529
- extend T::Helpers
530
- extend T::Props::ClassMethods
531
- include T::Props
532
- end
533
- module T::Props::Plugin::ClassMethods
534
- def included(child); end
535
- end
536
- module T::Props::Utils
537
- def self.deep_clone_object(what, freeze: nil); end
538
- def self.merge_serialized_optional_rule(prop_rules); end
539
- def self.need_nil_read_check?(prop_rules); end
540
- def self.need_nil_write_check?(prop_rules); end
541
- def self.optional_prop?(prop_rules); end
542
- def self.required_prop?(prop_rules); end
543
- end
544
- module T::Props::Optional
545
- extend T::Props::ClassMethods
546
- extend T::Props::Plugin::ClassMethods
547
- include T::Props::Plugin
548
- end
549
- module T::Props::Optional::DecoratorMethods
550
- def add_prop_definition(prop, rules); end
551
- def compute_derived_rules(rules); end
552
- def get_default(rules, instance_class); end
553
- def has_default?(rules); end
554
- def mutate_prop_backdoor!(prop, key, value); end
555
- def prop_optional?(prop); end
556
- def prop_validate_definition!(name, cls, rules, type); end
557
- def valid_props; end
558
- end
559
- module T::Props::WeakConstructor
560
- def initialize(hash = nil); end
561
- extend T::Props::ClassMethods
562
- extend T::Props::Plugin::ClassMethods
563
- include T::Props::Optional
564
- end
565
- module T::Props::Constructor
566
- def initialize(hash = nil); end
567
- extend T::Props::ClassMethods
568
- extend T::Props::Plugin::ClassMethods
569
- extend T::Props::Plugin::ClassMethods
570
- include T::Props::WeakConstructor
571
- end
572
- module T::Props::PrettyPrintable
573
- def inspect; end
574
- def pretty_inspect; end
575
- extend T::Props::ClassMethods
576
- extend T::Props::Plugin::ClassMethods
577
- include T::Props::Plugin
578
- end
579
- module T::Props::PrettyPrintable::DecoratorMethods
580
- def inspect_instance(*args, &blk); end
581
- def inspect_instance_components(*args, &blk); end
582
- def inspect_prop_value(*args, &blk); end
583
- def join_props_with_pretty_values(*args, &blk); end
584
- def self.method_added(name); end
585
- def self.singleton_method_added(name); end
586
- def valid_props(*args, &blk); end
587
- extend T::Sig
588
- end
589
- module T::Props::Serializable
590
- def deserialize(hash, strict = nil); end
591
- def recursive_stringify_keys(obj); end
592
- def required_prop_missing_from_deserialize(prop); end
593
- def required_prop_missing_from_deserialize?(prop); end
594
- def serialize(strict = nil); end
595
- def with(changed_props); end
596
- def with_existing_hash(changed_props, existing_hash:); end
597
- extend T::Props::ClassMethods
598
- extend T::Props::ClassMethods
599
- extend T::Props::ClassMethods
600
- extend T::Props::Plugin::ClassMethods
601
- extend T::Props::Plugin::ClassMethods
602
- extend T::Props::Plugin::ClassMethods
603
- include T::Props::Optional
604
- include T::Props::Plugin
605
- include T::Props::PrettyPrintable
606
- end
607
- module T::Props::Serializable::DecoratorMethods
608
- def add_prop_definition(prop, rules); end
609
- def extra_props(instance); end
610
- def from_hash(hash, strict = nil); end
611
- def get_id(instance); end
612
- def inspect_instance_components(instance, multiline:, indent:); end
613
- def prop_by_serialized_forms; end
614
- def prop_dont_store?(prop); end
615
- def prop_serialized_form(prop); end
616
- def prop_validate_definition!(name, cls, rules, type); end
617
- def required_props; end
618
- def serialized_form_prop(serialized_form); end
619
- def valid_props; end
620
- end
621
- module T::Props::Serializable::ClassMethods
622
- def from_hash!(hash); end
623
- def from_hash(hash, strict = nil); end
624
- def prop_by_serialized_forms; end
625
- end
626
- module T::Props::TypeValidation
627
- extend T::Props::ClassMethods
628
- extend T::Props::Plugin::ClassMethods
629
- include T::Props::Plugin
630
- end
631
- class T::Props::TypeValidation::UnderspecifiedType < ArgumentError
632
- end
633
- module T::Props::TypeValidation::DecoratorMethods
634
- def find_invalid_subtype(*args, &blk); end
635
- def prop_validate_definition!(*args, &blk); end
636
- def self.method_added(name); end
637
- def self.singleton_method_added(name); end
638
- def type_error_message(*args, &blk); end
639
- def valid_props(*args, &blk); end
640
- def validate_type(*args, &blk); end
641
- extend T::Sig
642
- end
643
- class T::InexactStruct
644
- extend T::Props::ClassMethods
645
- extend T::Props::ClassMethods
646
- extend T::Props::ClassMethods
647
- extend T::Props::Plugin::ClassMethods
648
- extend T::Props::Plugin::ClassMethods
649
- extend T::Props::Plugin::ClassMethods
650
- extend T::Props::Plugin::ClassMethods
651
- extend T::Props::Plugin::ClassMethods
652
- extend T::Props::Serializable::ClassMethods
653
- include T::Props
654
- include T::Props::Constructor
655
- include T::Props::Serializable
656
- end
657
- class T::Struct < T::InexactStruct
658
- def self.inherited(subclass); end
659
- extend T::Props::ClassMethods
660
- extend T::Props::Plugin::ClassMethods
661
- extend T::Props::Plugin::ClassMethods
662
- extend T::Props::Plugin::ClassMethods
663
- extend T::Props::Plugin::ClassMethods
664
- extend T::Props::Plugin::ClassMethods
665
- extend T::Props::Serializable::ClassMethods
666
- end
667
- module T::Private::Abstract
668
- end
669
- module T::Private::Types
670
- end