sord 0.7.1 → 0.8.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.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/README.md +62 -25
- data/Rakefile +72 -0
- data/exe/sord +39 -4
- data/lib/sord/logging.rb +43 -0
- data/lib/sord/rbi_generator.rb +144 -40
- data/lib/sord/resolver.rb +82 -0
- data/lib/sord/type_converter.rb +55 -13
- data/lib/sord/version.rb +1 -1
- data/rbi/sord.rbi +165 -0
- data/sorbet/config +0 -2
- data/sorbet/rbi/gems/colorize.rbi +81 -0
- data/sorbet/rbi/gems/docile.rbi +31 -0
- data/sorbet/rbi/gems/rake.rbi +7 -0
- data/sorbet/rbi/gems/rspec-core.rbi +16 -0
- data/sorbet/rbi/gems/rspec-expectations.rbi +389 -0
- data/sorbet/rbi/gems/rspec-mocks.rbi +823 -0
- data/sorbet/rbi/gems/rspec-support.rbi +143 -1
- data/sorbet/rbi/gems/rspec.rbi +1 -1
- data/sorbet/rbi/gems/simplecov-html.rbi +30 -0
- data/sorbet/rbi/gems/simplecov.rbi +223 -0
- data/sorbet/rbi/gems/sorbet-runtime.rbi +647 -0
- data/sorbet/rbi/gems/yard.rbi +13 -13
- data/sorbet/rbi/hidden-definitions/errors.txt +1579 -2264
- data/sorbet/rbi/hidden-definitions/hidden.rbi +2918 -845
- data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +15 -5
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +1 -1
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +1 -1
- metadata +11 -2
@@ -1,7 +1,7 @@
|
|
1
1
|
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
2
|
# srb rbi gems
|
3
3
|
|
4
|
-
# typed:
|
4
|
+
# typed: true
|
5
5
|
#
|
6
6
|
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
7
|
#
|
@@ -14,11 +14,16 @@ end
|
|
14
14
|
module RSpec::Support
|
15
15
|
def self.class_of(object); end
|
16
16
|
def self.define_optimized_require_for_rspec(lib, &require_relative); end
|
17
|
+
def self.deregister_matcher_definition(&block); end
|
17
18
|
def self.failure_notifier; end
|
18
19
|
def self.failure_notifier=(callable); end
|
20
|
+
def self.is_a_matcher?(object); end
|
21
|
+
def self.matcher_definitions; end
|
19
22
|
def self.method_handle_for(object, method_name); end
|
20
23
|
def self.notify_failure(failure, options = nil); end
|
24
|
+
def self.register_matcher_definition(&block); end
|
21
25
|
def self.require_rspec_support(f); end
|
26
|
+
def self.rspec_description_for_object(object); end
|
22
27
|
def self.thread_local_data; end
|
23
28
|
def self.warning_notifier; end
|
24
29
|
def self.warning_notifier=(arg0); end
|
@@ -124,3 +129,140 @@ module RSpec::Support::RecursiveConstMethods
|
|
124
129
|
def recursive_const_defined?(const_name); end
|
125
130
|
def recursive_const_get(const_name); end
|
126
131
|
end
|
132
|
+
class RSpec::Support::ObjectFormatter
|
133
|
+
def format(object); end
|
134
|
+
def initialize(max_formatted_output_length = nil); end
|
135
|
+
def max_formatted_output_length; end
|
136
|
+
def max_formatted_output_length=(arg0); end
|
137
|
+
def prepare_array(array); end
|
138
|
+
def prepare_element(element); end
|
139
|
+
def prepare_for_inspection(object); end
|
140
|
+
def prepare_hash(input_hash); end
|
141
|
+
def recursive_structure?(object); end
|
142
|
+
def self.default_instance; end
|
143
|
+
def self.format(object); end
|
144
|
+
def self.prepare_for_inspection(object); end
|
145
|
+
def sort_hash_keys(input_hash); end
|
146
|
+
def truncate_string(str, start_index, end_index); end
|
147
|
+
def with_entering_structure(structure); end
|
148
|
+
end
|
149
|
+
class RSpec::Support::ObjectFormatter::InspectableItem < Struct
|
150
|
+
def inspect; end
|
151
|
+
def pretty_print(pp); end
|
152
|
+
def self.[](*arg0); end
|
153
|
+
def self.inspect; end
|
154
|
+
def self.members; end
|
155
|
+
def self.new(*arg0); end
|
156
|
+
def text; end
|
157
|
+
def text=(_); end
|
158
|
+
end
|
159
|
+
class RSpec::Support::ObjectFormatter::BaseInspector < Struct
|
160
|
+
def formatter; end
|
161
|
+
def formatter=(_); end
|
162
|
+
def inspect; end
|
163
|
+
def object; end
|
164
|
+
def object=(_); end
|
165
|
+
def pretty_print(pp); end
|
166
|
+
def self.[](*arg0); end
|
167
|
+
def self.can_inspect?(_object); end
|
168
|
+
def self.inspect; end
|
169
|
+
def self.members; end
|
170
|
+
def self.new(*arg0); end
|
171
|
+
end
|
172
|
+
class RSpec::Support::ObjectFormatter::TimeInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
173
|
+
def inspect; end
|
174
|
+
def self.can_inspect?(object); end
|
175
|
+
end
|
176
|
+
class RSpec::Support::ObjectFormatter::DateTimeInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
177
|
+
def inspect; end
|
178
|
+
def self.can_inspect?(object); end
|
179
|
+
end
|
180
|
+
class RSpec::Support::ObjectFormatter::BigDecimalInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
181
|
+
def inspect; end
|
182
|
+
def self.can_inspect?(object); end
|
183
|
+
end
|
184
|
+
class RSpec::Support::ObjectFormatter::DescribableMatcherInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
185
|
+
def inspect; end
|
186
|
+
def self.can_inspect?(object); end
|
187
|
+
end
|
188
|
+
class RSpec::Support::ObjectFormatter::UninspectableObjectInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
189
|
+
def inspect; end
|
190
|
+
def klass; end
|
191
|
+
def native_object_id; end
|
192
|
+
def self.can_inspect?(object); end
|
193
|
+
end
|
194
|
+
class RSpec::Support::ObjectFormatter::DelegatorInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
195
|
+
def inspect; end
|
196
|
+
def self.can_inspect?(object); end
|
197
|
+
end
|
198
|
+
class RSpec::Support::ObjectFormatter::InspectableObjectInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
199
|
+
def inspect; end
|
200
|
+
def self.can_inspect?(object); end
|
201
|
+
end
|
202
|
+
module RSpec::Support::FuzzyMatcher
|
203
|
+
def self.arrays_match?(expected_list, actual_list); end
|
204
|
+
def self.hashes_match?(expected_hash, actual_hash); end
|
205
|
+
def self.values_match?(expected, actual); end
|
206
|
+
end
|
207
|
+
class RSpec::Support::MethodSignature
|
208
|
+
def arbitrary_kw_args?; end
|
209
|
+
def classify_arity(arity = nil); end
|
210
|
+
def classify_parameters; end
|
211
|
+
def could_contain_kw_args?(args); end
|
212
|
+
def description; end
|
213
|
+
def has_kw_args_in?(args); end
|
214
|
+
def initialize(method); end
|
215
|
+
def invalid_kw_args_from(given_kw_args); end
|
216
|
+
def max_non_kw_args; end
|
217
|
+
def min_non_kw_args; end
|
218
|
+
def missing_kw_args_from(given_kw_args); end
|
219
|
+
def non_kw_args_arity_description; end
|
220
|
+
def optional_kw_args; end
|
221
|
+
def required_kw_args; end
|
222
|
+
def unlimited_args?; end
|
223
|
+
def valid_non_kw_args?(positional_arg_count, optional_max_arg_count = nil); end
|
224
|
+
end
|
225
|
+
class RSpec::Support::MethodSignatureExpectation
|
226
|
+
def empty?; end
|
227
|
+
def expect_arbitrary_keywords; end
|
228
|
+
def expect_arbitrary_keywords=(arg0); end
|
229
|
+
def expect_unlimited_arguments; end
|
230
|
+
def expect_unlimited_arguments=(arg0); end
|
231
|
+
def initialize; end
|
232
|
+
def keywords; end
|
233
|
+
def keywords=(values); end
|
234
|
+
def max_count; end
|
235
|
+
def max_count=(number); end
|
236
|
+
def min_count; end
|
237
|
+
def min_count=(number); end
|
238
|
+
end
|
239
|
+
class RSpec::Support::BlockSignature < RSpec::Support::MethodSignature
|
240
|
+
def classify_parameters; end
|
241
|
+
end
|
242
|
+
class RSpec::Support::MethodSignatureVerifier
|
243
|
+
def arbitrary_kw_args?; end
|
244
|
+
def error_message; end
|
245
|
+
def initialize(signature, args = nil); end
|
246
|
+
def invalid_kw_args; end
|
247
|
+
def kw_args; end
|
248
|
+
def max_non_kw_args; end
|
249
|
+
def min_non_kw_args; end
|
250
|
+
def missing_kw_args; end
|
251
|
+
def non_kw_args; end
|
252
|
+
def split_args(*args); end
|
253
|
+
def unlimited_args?; end
|
254
|
+
def valid?; end
|
255
|
+
def valid_non_kw_args?; end
|
256
|
+
def with_expectation(expectation); end
|
257
|
+
end
|
258
|
+
class RSpec::Support::LooseSignatureVerifier < RSpec::Support::MethodSignatureVerifier
|
259
|
+
def split_args(*args); end
|
260
|
+
end
|
261
|
+
class RSpec::Support::LooseSignatureVerifier::SignatureWithKeywordArgumentsMatcher
|
262
|
+
def has_kw_args_in?(args); end
|
263
|
+
def initialize(signature); end
|
264
|
+
def invalid_kw_args_from(_kw_args); end
|
265
|
+
def missing_kw_args_from(_kw_args); end
|
266
|
+
def non_kw_args_arity_description; end
|
267
|
+
def valid_non_kw_args?(*args); end
|
268
|
+
end
|
data/sorbet/rbi/gems/rspec.rbi
CHANGED
@@ -0,0 +1,30 @@
|
|
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/simplecov-html/all/simplecov-html.rbi
|
9
|
+
#
|
10
|
+
# simplecov-html-0.10.2
|
11
|
+
module SimpleCov
|
12
|
+
end
|
13
|
+
module SimpleCov::Formatter
|
14
|
+
end
|
15
|
+
class SimpleCov::Formatter::HTMLFormatter
|
16
|
+
def asset_output_path; end
|
17
|
+
def assets_path(name); end
|
18
|
+
def coverage_css_class(covered_percent); end
|
19
|
+
def format(result); end
|
20
|
+
def formatted_file_list(title, source_files); end
|
21
|
+
def formatted_source_file(source_file); end
|
22
|
+
def id(source_file); end
|
23
|
+
def link_to_source_file(source_file); end
|
24
|
+
def output_message(result); end
|
25
|
+
def output_path; end
|
26
|
+
def shortened_filename(source_file); end
|
27
|
+
def strength_css_class(covered_strength); end
|
28
|
+
def template(name); end
|
29
|
+
def timeago(time); end
|
30
|
+
end
|
@@ -0,0 +1,223 @@
|
|
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/simplecov/all/simplecov.rbi
|
9
|
+
#
|
10
|
+
# simplecov-0.16.1
|
11
|
+
module SimpleCov
|
12
|
+
def self.add_not_loaded_files(result); end
|
13
|
+
def self.clear_result; end
|
14
|
+
def self.exit_exception; end
|
15
|
+
def self.exit_status_from_exception; end
|
16
|
+
def self.filtered(files); end
|
17
|
+
def self.grouped(files); end
|
18
|
+
def self.load_adapter(name); end
|
19
|
+
def self.load_profile(name); end
|
20
|
+
def self.pid; end
|
21
|
+
def self.pid=(arg0); end
|
22
|
+
def self.process_result(result, exit_status); end
|
23
|
+
def self.result; end
|
24
|
+
def self.result?; end
|
25
|
+
def self.result_exit_status(result, covered_percent); end
|
26
|
+
def self.run_exit_tasks!; end
|
27
|
+
def self.running; end
|
28
|
+
def self.running=(arg0); end
|
29
|
+
def self.set_exit_exception; end
|
30
|
+
def self.start(profile = nil, &block); end
|
31
|
+
def self.usable?; end
|
32
|
+
def self.write_last_run(covered_percent); end
|
33
|
+
extend SimpleCov::Configuration
|
34
|
+
end
|
35
|
+
module SimpleCov::Formatter
|
36
|
+
end
|
37
|
+
class SimpleCov::Formatter::MultiFormatter
|
38
|
+
def self.[](*args); end
|
39
|
+
def self.new(formatters = nil); end
|
40
|
+
end
|
41
|
+
module SimpleCov::Formatter::MultiFormatter::InstanceMethods
|
42
|
+
def format(result); end
|
43
|
+
end
|
44
|
+
module SimpleCov::Configuration
|
45
|
+
def adapters; end
|
46
|
+
def add_filter(filter_argument = nil, &filter_proc); end
|
47
|
+
def add_group(group_name, filter_argument = nil, &filter_proc); end
|
48
|
+
def at_exit(&block); end
|
49
|
+
def command_name(name = nil); end
|
50
|
+
def configure(&block); end
|
51
|
+
def coverage_dir(dir = nil); end
|
52
|
+
def coverage_path; end
|
53
|
+
def filters; end
|
54
|
+
def filters=(arg0); end
|
55
|
+
def formatter(formatter = nil); end
|
56
|
+
def formatter=(arg0); end
|
57
|
+
def formatters; end
|
58
|
+
def formatters=(formatters); end
|
59
|
+
def groups; end
|
60
|
+
def groups=(arg0); end
|
61
|
+
def maximum_coverage_drop(coverage_drop = nil); end
|
62
|
+
def merge_timeout(seconds = nil); end
|
63
|
+
def minimum_coverage(coverage = nil); end
|
64
|
+
def minimum_coverage_by_file(coverage = nil); end
|
65
|
+
def nocov_token(nocov_token = nil); end
|
66
|
+
def parse_filter(filter_argument = nil, &filter_proc); end
|
67
|
+
def profiles; end
|
68
|
+
def project_name(new_name = nil); end
|
69
|
+
def refuse_coverage_drop; end
|
70
|
+
def root(root = nil); end
|
71
|
+
def skip_token(nocov_token = nil); end
|
72
|
+
def track_files(glob); end
|
73
|
+
def tracked_files; end
|
74
|
+
def use_merging(use = nil); end
|
75
|
+
end
|
76
|
+
module SimpleCov::ExitCodes
|
77
|
+
end
|
78
|
+
class SimpleCov::Profiles < Hash
|
79
|
+
def define(name, &blk); end
|
80
|
+
def load(name); end
|
81
|
+
end
|
82
|
+
class SimpleCov::SourceFile
|
83
|
+
def build_lines; end
|
84
|
+
def coverage; end
|
85
|
+
def coverage_exceeding_source_warn; end
|
86
|
+
def covered_lines; end
|
87
|
+
def covered_percent; end
|
88
|
+
def covered_strength; end
|
89
|
+
def filename; end
|
90
|
+
def initialize(filename, coverage); end
|
91
|
+
def line(number); end
|
92
|
+
def lines; end
|
93
|
+
def lines_of_code; end
|
94
|
+
def lines_strength; end
|
95
|
+
def missed_lines; end
|
96
|
+
def never_lines; end
|
97
|
+
def no_lines?; end
|
98
|
+
def process_skipped_lines(lines); end
|
99
|
+
def project_filename; end
|
100
|
+
def relevant_lines; end
|
101
|
+
def round_float(float, places); end
|
102
|
+
def skipped_lines; end
|
103
|
+
def source; end
|
104
|
+
def source_lines; end
|
105
|
+
def src; end
|
106
|
+
end
|
107
|
+
class SimpleCov::SourceFile::Line
|
108
|
+
def coverage; end
|
109
|
+
def covered?; end
|
110
|
+
def initialize(src, line_number, coverage); end
|
111
|
+
def line; end
|
112
|
+
def line_number; end
|
113
|
+
def missed?; end
|
114
|
+
def never?; end
|
115
|
+
def number; end
|
116
|
+
def skipped!; end
|
117
|
+
def skipped; end
|
118
|
+
def skipped?; end
|
119
|
+
def source; end
|
120
|
+
def src; end
|
121
|
+
def status; end
|
122
|
+
end
|
123
|
+
class SimpleCov::FileList < Array
|
124
|
+
def covered_lines; end
|
125
|
+
def covered_percent; end
|
126
|
+
def covered_percentages; end
|
127
|
+
def covered_strength; end
|
128
|
+
def least_covered_file; end
|
129
|
+
def lines_of_code; end
|
130
|
+
def missed_lines; end
|
131
|
+
def never_lines; end
|
132
|
+
def skipped_lines; end
|
133
|
+
end
|
134
|
+
class SimpleCov::Result
|
135
|
+
def command_name; end
|
136
|
+
def command_name=(arg0); end
|
137
|
+
def coverage; end
|
138
|
+
def covered_lines(*args, &block); end
|
139
|
+
def covered_percent(*args, &block); end
|
140
|
+
def covered_percentages(*args, &block); end
|
141
|
+
def covered_strength(*args, &block); end
|
142
|
+
def created_at; end
|
143
|
+
def created_at=(arg0); end
|
144
|
+
def filenames; end
|
145
|
+
def files; end
|
146
|
+
def filter!; end
|
147
|
+
def format!; end
|
148
|
+
def groups; end
|
149
|
+
def initialize(original_result); end
|
150
|
+
def least_covered_file(*args, &block); end
|
151
|
+
def missed_lines(*args, &block); end
|
152
|
+
def original_result; end
|
153
|
+
def self.from_hash(hash); end
|
154
|
+
def source_files; end
|
155
|
+
def to_hash; end
|
156
|
+
def total_lines(*args, &block); end
|
157
|
+
extend Forwardable
|
158
|
+
end
|
159
|
+
class SimpleCov::Filter
|
160
|
+
def filter_argument; end
|
161
|
+
def initialize(filter_argument); end
|
162
|
+
def matches?(_); end
|
163
|
+
def passes?(source_file); end
|
164
|
+
def self.build_filter(filter_argument); end
|
165
|
+
def self.class_for_argument(filter_argument); end
|
166
|
+
end
|
167
|
+
class SimpleCov::StringFilter < SimpleCov::Filter
|
168
|
+
def matches?(source_file); end
|
169
|
+
end
|
170
|
+
class SimpleCov::RegexFilter < SimpleCov::Filter
|
171
|
+
def matches?(source_file); end
|
172
|
+
end
|
173
|
+
class SimpleCov::BlockFilter < SimpleCov::Filter
|
174
|
+
def matches?(source_file); end
|
175
|
+
end
|
176
|
+
class SimpleCov::ArrayFilter < SimpleCov::Filter
|
177
|
+
def initialize(filter_argument); end
|
178
|
+
def matches?(source_files_list); end
|
179
|
+
end
|
180
|
+
class SimpleCov::Formatter::SimpleFormatter
|
181
|
+
def format(result); end
|
182
|
+
end
|
183
|
+
module SimpleCov::LastRun
|
184
|
+
def self.last_run_path; end
|
185
|
+
def self.read; end
|
186
|
+
def self.write(json); end
|
187
|
+
end
|
188
|
+
class SimpleCov::LinesClassifier
|
189
|
+
def classify(lines); end
|
190
|
+
def self.no_cov_line; end
|
191
|
+
def self.no_cov_line?(line); end
|
192
|
+
def self.whitespace_line?(line); end
|
193
|
+
end
|
194
|
+
module SimpleCov::RawCoverage
|
195
|
+
def merge_file_coverage(file1, file2); end
|
196
|
+
def merge_line_coverage(count1, count2); end
|
197
|
+
def merge_results(*results); end
|
198
|
+
def merge_resultsets(result1, result2); end
|
199
|
+
def self.merge_file_coverage(file1, file2); end
|
200
|
+
def self.merge_line_coverage(count1, count2); end
|
201
|
+
def self.merge_results(*results); end
|
202
|
+
def self.merge_resultsets(result1, result2); end
|
203
|
+
end
|
204
|
+
module SimpleCov::ResultMerger
|
205
|
+
def self.clear_resultset; end
|
206
|
+
def self.merge_results(*results); end
|
207
|
+
def self.merged_result; end
|
208
|
+
def self.results; end
|
209
|
+
def self.resultset; end
|
210
|
+
def self.resultset_path; end
|
211
|
+
def self.resultset_writelock; end
|
212
|
+
def self.store_result(result); end
|
213
|
+
def self.stored_data; end
|
214
|
+
def self.synchronize_resultset; end
|
215
|
+
end
|
216
|
+
module SimpleCov::CommandGuesser
|
217
|
+
def self.from_command_line_options; end
|
218
|
+
def self.from_defined_constants; end
|
219
|
+
def self.from_env; end
|
220
|
+
def self.guess; end
|
221
|
+
def self.original_run_command; end
|
222
|
+
def self.original_run_command=(arg0); end
|
223
|
+
end
|
@@ -0,0 +1,647 @@
|
|
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.4358
|
11
|
+
module T::Configuration
|
12
|
+
def self.call_validation_error_handler(signature, opts); 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.hard_assert_handler(str, extra); end
|
18
|
+
def self.hard_assert_handler=(value); end
|
19
|
+
def self.hard_assert_handler_default(str, _); end
|
20
|
+
def self.inline_type_error_handler(error); end
|
21
|
+
def self.inline_type_error_handler=(value); end
|
22
|
+
def self.inline_type_error_handler_default(error); end
|
23
|
+
def self.log_info_handler(str, extra); end
|
24
|
+
def self.log_info_handler=(value); end
|
25
|
+
def self.log_info_handler_default(str, extra); end
|
26
|
+
def self.scalar_types; end
|
27
|
+
def self.scalar_types=(values); end
|
28
|
+
def self.sig_builder_error_handler(error, location); end
|
29
|
+
def self.sig_builder_error_handler=(value); end
|
30
|
+
def self.sig_builder_error_handler_default(error, location); end
|
31
|
+
def self.sig_validation_error_handler(error, opts); end
|
32
|
+
def self.sig_validation_error_handler=(value); end
|
33
|
+
def self.sig_validation_error_handler_default(error, opts); end
|
34
|
+
def self.soft_assert_handler(str, extra); end
|
35
|
+
def self.soft_assert_handler=(value); end
|
36
|
+
def self.soft_assert_handler_default(str, extra); end
|
37
|
+
def self.validate_lambda_given!(value); end
|
38
|
+
end
|
39
|
+
module T::Profile
|
40
|
+
def self.reset; end
|
41
|
+
def self.typecheck_count_estimate; end
|
42
|
+
def self.typecheck_duration; end
|
43
|
+
def self.typecheck_duration=(arg0); end
|
44
|
+
def self.typecheck_duration_estimate; end
|
45
|
+
def self.typecheck_sample_attempts; end
|
46
|
+
def self.typecheck_sample_attempts=(arg0); end
|
47
|
+
def self.typecheck_samples; end
|
48
|
+
def self.typecheck_samples=(arg0); end
|
49
|
+
end
|
50
|
+
module T
|
51
|
+
end
|
52
|
+
module T::Array
|
53
|
+
end
|
54
|
+
module T::Hash
|
55
|
+
end
|
56
|
+
module T::Enumerable
|
57
|
+
end
|
58
|
+
module T::Enumerator
|
59
|
+
def self.[](type); end
|
60
|
+
end
|
61
|
+
module T::Range
|
62
|
+
end
|
63
|
+
module T::Set
|
64
|
+
end
|
65
|
+
module T::CFGExport
|
66
|
+
end
|
67
|
+
class T::Private::DeclState
|
68
|
+
def active_declaration; end
|
69
|
+
def active_declaration=(arg0); end
|
70
|
+
def reset!; end
|
71
|
+
def self.current; end
|
72
|
+
def self.current=(other); end
|
73
|
+
end
|
74
|
+
module T::Utils
|
75
|
+
def self.arity(method); end
|
76
|
+
def self.coerce(val); end
|
77
|
+
def self.methods_excluding_object(mod); end
|
78
|
+
def self.register_forwarder(from_method, to_method, remove_first_param: nil); end
|
79
|
+
def self.run_all_sig_blocks; end
|
80
|
+
def self.signature_for_instance_method(mod, method_name); end
|
81
|
+
def self.string_truncate_middle(str, start_len, end_len, ellipsis = nil); end
|
82
|
+
def self.unwrap_nilable(type); end
|
83
|
+
def self.validate_sigs; end
|
84
|
+
def self.wrap_method_with_call_validation_if_needed(mod, method_sig, original_method); end
|
85
|
+
end
|
86
|
+
class T::Utils::RuntimeProfiled
|
87
|
+
end
|
88
|
+
module T::Private::ClassUtils
|
89
|
+
def self.replace_method(mod, name, &blk); end
|
90
|
+
def self.visibility_method_name(mod, name); end
|
91
|
+
end
|
92
|
+
class T::Private::ClassUtils::ReplacedMethod
|
93
|
+
def bind(obj); end
|
94
|
+
def initialize(mod, old_method, new_method, overwritten, visibility); end
|
95
|
+
def restore; end
|
96
|
+
def to_s; end
|
97
|
+
end
|
98
|
+
module T::Private::ErrorHandler
|
99
|
+
def self.handle_call_validation_error(signature, opts = nil); end
|
100
|
+
def self.handle_inline_type_error(type_error); end
|
101
|
+
def self.handle_sig_builder_error(error, location); end
|
102
|
+
def self.handle_sig_validation_error(error, opts = nil); end
|
103
|
+
end
|
104
|
+
module T::Private::RuntimeLevels
|
105
|
+
def self._toggle_checking_tests(checked); end
|
106
|
+
def self.check_tests?; end
|
107
|
+
def self.default_checked_level; end
|
108
|
+
def self.default_checked_level=(default_checked_level); end
|
109
|
+
def self.enable_checking_in_tests; end
|
110
|
+
end
|
111
|
+
module T::Private::Methods
|
112
|
+
def self._on_method_added(hook_mod, method_name, is_singleton_method: nil); end
|
113
|
+
def self.build_sig(hook_mod, method_name, original_method, current_declaration, loc); end
|
114
|
+
def self.declare_sig(mod, &blk); end
|
115
|
+
def self.finalize_proc(decl); end
|
116
|
+
def self.has_sig_block_for_key(key); end
|
117
|
+
def self.has_sig_block_for_method(method); end
|
118
|
+
def self.install_hooks(mod); end
|
119
|
+
def self.install_singleton_method_added_hook(singleton_klass); end
|
120
|
+
def self.key_to_method(key); end
|
121
|
+
def self.maybe_run_sig_block_for_key(key); end
|
122
|
+
def self.maybe_run_sig_block_for_method(method); end
|
123
|
+
def self.method_to_key(method); end
|
124
|
+
def self.register_forwarder(from_method, to_method, mode: nil, remove_first_param: nil); end
|
125
|
+
def self.run_all_sig_blocks; end
|
126
|
+
def self.run_builder(declaration_block); end
|
127
|
+
def self.run_sig(hook_mod, method_name, original_method, declaration_block); end
|
128
|
+
def self.run_sig_block_for_key(key); end
|
129
|
+
def self.run_sig_block_for_method(method); end
|
130
|
+
def self.sig_error(loc, message); end
|
131
|
+
def self.signature_for_key(key); end
|
132
|
+
def self.signature_for_method(method); end
|
133
|
+
def self.start_proc; end
|
134
|
+
def self.unwrap_method(hook_mod, signature, original_method); end
|
135
|
+
end
|
136
|
+
class T::Private::Methods::DeclarationBlock < Struct
|
137
|
+
def blk; end
|
138
|
+
def blk=(_); end
|
139
|
+
def loc; end
|
140
|
+
def loc=(_); end
|
141
|
+
def mod; end
|
142
|
+
def mod=(_); end
|
143
|
+
def self.[](*arg0); end
|
144
|
+
def self.inspect; end
|
145
|
+
def self.members; end
|
146
|
+
def self.new(*arg0); end
|
147
|
+
end
|
148
|
+
module T::Sig
|
149
|
+
def sig(&blk); end
|
150
|
+
end
|
151
|
+
module T::Sig::WithoutRuntime
|
152
|
+
end
|
153
|
+
module T::Helpers
|
154
|
+
def abstract!; end
|
155
|
+
def interface!; end
|
156
|
+
def mixes_in_class_methods(mod); end
|
157
|
+
end
|
158
|
+
module T::Types
|
159
|
+
end
|
160
|
+
class T::Types::Base
|
161
|
+
def self.method_added(method_name); end
|
162
|
+
end
|
163
|
+
class T::Types::TypedEnumerable < T::Types::Base
|
164
|
+
end
|
165
|
+
class T::Types::ClassOf < T::Types::Base
|
166
|
+
end
|
167
|
+
class T::Types::Enum < T::Types::Base
|
168
|
+
def self.method_added(name); end
|
169
|
+
def self.singleton_method_added(name); end
|
170
|
+
extend T::Sig
|
171
|
+
end
|
172
|
+
class T::Types::FixedArray < T::Types::Base
|
173
|
+
end
|
174
|
+
class T::Types::FixedHash < T::Types::Base
|
175
|
+
end
|
176
|
+
class T::Types::Intersection < T::Types::Base
|
177
|
+
end
|
178
|
+
class T::Types::NoReturn < T::Types::Base
|
179
|
+
end
|
180
|
+
class T::Types::Proc < T::Types::Base
|
181
|
+
end
|
182
|
+
class T::Types::SelfType < T::Types::Base
|
183
|
+
end
|
184
|
+
class T::Types::Simple < T::Types::Base
|
185
|
+
end
|
186
|
+
class T::Types::TypeParameter < T::Types::Base
|
187
|
+
end
|
188
|
+
class T::Types::TypedArray < T::Types::TypedEnumerable
|
189
|
+
end
|
190
|
+
class T::Types::TypedEnumerator < T::Types::TypedEnumerable
|
191
|
+
end
|
192
|
+
class T::Types::TypedHash < T::Types::TypedEnumerable
|
193
|
+
end
|
194
|
+
class T::Types::TypedRange < T::Types::TypedEnumerable
|
195
|
+
end
|
196
|
+
class T::Types::TypedSet < T::Types::TypedEnumerable
|
197
|
+
end
|
198
|
+
class T::Types::Union < T::Types::Base
|
199
|
+
end
|
200
|
+
class T::Types::Untyped < T::Types::Base
|
201
|
+
end
|
202
|
+
class T::Private::Types::NotTyped < T::Types::Base
|
203
|
+
end
|
204
|
+
class T::Private::Types::Void < T::Types::Base
|
205
|
+
end
|
206
|
+
module T::Private::Types::Void::VOID
|
207
|
+
end
|
208
|
+
class T::Private::Types::StringHolder < T::Types::Base
|
209
|
+
end
|
210
|
+
class T::Types::TypeVariable < T::Types::Base
|
211
|
+
end
|
212
|
+
class T::Types::TypeMember < T::Types::TypeVariable
|
213
|
+
end
|
214
|
+
class T::Types::TypeTemplate < T::Types::TypeVariable
|
215
|
+
end
|
216
|
+
module T::Private::Methods::Modes
|
217
|
+
def self.abstract; end
|
218
|
+
def self.implementation; end
|
219
|
+
def self.overridable; end
|
220
|
+
def self.overridable_implementation; end
|
221
|
+
def self.override; end
|
222
|
+
def self.standard; end
|
223
|
+
def self.untyped; end
|
224
|
+
end
|
225
|
+
module T::Private::Methods::CallValidation
|
226
|
+
def self.create_validator_method(mod, original_method, method_sig, original_visibility); end
|
227
|
+
def self.create_validator_method_fast(mod, original_method, method_sig); end
|
228
|
+
def self.create_validator_method_fast0(mod, original_method, method_sig, return_type); end
|
229
|
+
def self.create_validator_method_fast1(mod, original_method, method_sig, return_type, arg0_type); end
|
230
|
+
def self.create_validator_method_fast2(mod, original_method, method_sig, return_type, arg0_type, arg1_type); end
|
231
|
+
def self.create_validator_method_fast3(mod, original_method, method_sig, return_type, arg0_type, arg1_type, arg2_type); end
|
232
|
+
def self.create_validator_method_fast4(mod, original_method, method_sig, return_type, arg0_type, arg1_type, arg2_type, arg3_type); end
|
233
|
+
def self.create_validator_procedure_fast(mod, original_method, method_sig); end
|
234
|
+
def self.create_validator_procedure_fast0(mod, original_method, method_sig); end
|
235
|
+
def self.create_validator_procedure_fast1(mod, original_method, method_sig, arg0_type); end
|
236
|
+
def self.create_validator_procedure_fast2(mod, original_method, method_sig, arg0_type, arg1_type); end
|
237
|
+
def self.create_validator_procedure_fast3(mod, original_method, method_sig, arg0_type, arg1_type, arg2_type); end
|
238
|
+
def self.create_validator_procedure_fast4(mod, original_method, method_sig, arg0_type, arg1_type, arg2_type, arg3_type); end
|
239
|
+
def self.create_validator_slow(mod, original_method, method_sig); end
|
240
|
+
def self.disable_fast_path; end
|
241
|
+
def self.is_allowed_to_have_fast_path; end
|
242
|
+
def self.report_error(method_sig, error_message, kind, name, type, value, caller_offset: nil); end
|
243
|
+
def self.validate_call(instance, original_method, method_sig, args, blk); end
|
244
|
+
def self.visibility_method_name(mod, name); end
|
245
|
+
def self.wrap_method_if_needed(mod, method_sig, original_method); end
|
246
|
+
end
|
247
|
+
module T::Private::Methods::SignatureValidation
|
248
|
+
def self.base_override_loc_str(signature, super_signature); end
|
249
|
+
def self.method_loc_str(method); end
|
250
|
+
def self.pretty_mode(signature); end
|
251
|
+
def self.validate(signature); end
|
252
|
+
def self.validate_non_override_mode(signature); end
|
253
|
+
def self.validate_override_mode(signature, super_signature); end
|
254
|
+
def self.validate_override_shape(signature, super_signature); end
|
255
|
+
def self.validate_override_types(signature, super_signature); end
|
256
|
+
end
|
257
|
+
module T::AbstractUtils
|
258
|
+
def self.abstract_method?(method); end
|
259
|
+
def self.abstract_methods_for(mod); end
|
260
|
+
def self.abstract_module?(mod); end
|
261
|
+
def self.declared_abstract_methods_for(mod); end
|
262
|
+
end
|
263
|
+
module T::Private::Abstract::Validate
|
264
|
+
def self.describe_method(method, show_owner: nil); end
|
265
|
+
def self.validate_abstract_module(mod); end
|
266
|
+
def self.validate_interface(mod); end
|
267
|
+
def self.validate_interface_all_abstract(mod, method_names); end
|
268
|
+
def self.validate_interface_all_public(mod, method_names); end
|
269
|
+
def self.validate_subclass(mod); end
|
270
|
+
end
|
271
|
+
module T::Generic
|
272
|
+
def [](*types); end
|
273
|
+
def type_member(variance = nil, fixed: nil); end
|
274
|
+
def type_template(variance = nil, fixed: nil); end
|
275
|
+
include Kernel
|
276
|
+
include T::Helpers
|
277
|
+
end
|
278
|
+
class T::InterfaceWrapper
|
279
|
+
def __interface_mod_DO_NOT_USE; end
|
280
|
+
def __target_obj_DO_NOT_USE; end
|
281
|
+
def initialize(target_obj, interface_mod); end
|
282
|
+
def is_a?(other); end
|
283
|
+
def kind_of?(other); end
|
284
|
+
def self.dynamic_cast(obj, mod); end
|
285
|
+
def self.method_added(name); end
|
286
|
+
def self.new(*arg0); end
|
287
|
+
def self.self_methods; end
|
288
|
+
def self.singleton_method_added(name); end
|
289
|
+
def self.wrap_instance(obj, interface_mod); end
|
290
|
+
def self.wrap_instances(*args, &blk); end
|
291
|
+
def self.wrapped_dynamic_cast(obj, mod); end
|
292
|
+
extend T::Sig
|
293
|
+
end
|
294
|
+
module T::InterfaceWrapper::Helpers
|
295
|
+
def wrap_instance(obj); end
|
296
|
+
def wrap_instances(arr); end
|
297
|
+
end
|
298
|
+
module T::Private::Abstract::Declare
|
299
|
+
def self.declare_abstract(mod, type:); end
|
300
|
+
end
|
301
|
+
module T::Private::Abstract::Hooks
|
302
|
+
def append_features(other); end
|
303
|
+
def extend_object(other); end
|
304
|
+
def inherited(other); end
|
305
|
+
def prepended(other); end
|
306
|
+
end
|
307
|
+
module T::Private
|
308
|
+
end
|
309
|
+
module T::Private::Casts
|
310
|
+
def self.cast(value, type, cast_method:); end
|
311
|
+
end
|
312
|
+
class T::Private::Methods::Declaration < Struct
|
313
|
+
def bind; end
|
314
|
+
def bind=(_); end
|
315
|
+
def checked; end
|
316
|
+
def checked=(_); end
|
317
|
+
def finalized; end
|
318
|
+
def finalized=(_); end
|
319
|
+
def generated; end
|
320
|
+
def generated=(_); end
|
321
|
+
def mod; end
|
322
|
+
def mod=(_); end
|
323
|
+
def mode; end
|
324
|
+
def mode=(_); end
|
325
|
+
def override_allow_incompatible; end
|
326
|
+
def override_allow_incompatible=(_); end
|
327
|
+
def params; end
|
328
|
+
def params=(_); end
|
329
|
+
def returns; end
|
330
|
+
def returns=(_); end
|
331
|
+
def self.[](*arg0); end
|
332
|
+
def self.inspect; end
|
333
|
+
def self.members; end
|
334
|
+
def self.new(*arg0); end
|
335
|
+
def soft_notify; end
|
336
|
+
def soft_notify=(_); end
|
337
|
+
def type_parameters; end
|
338
|
+
def type_parameters=(_); end
|
339
|
+
end
|
340
|
+
class T::Private::Methods::DeclBuilder
|
341
|
+
def abstract; end
|
342
|
+
def bind(type); end
|
343
|
+
def check_live!; end
|
344
|
+
def checked(level); end
|
345
|
+
def decl; end
|
346
|
+
def finalize!; end
|
347
|
+
def generated; end
|
348
|
+
def implementation; end
|
349
|
+
def initialize(mod); end
|
350
|
+
def overridable; end
|
351
|
+
def override(allow_incompatible: nil); end
|
352
|
+
def params(params); end
|
353
|
+
def returns(type); end
|
354
|
+
def soft(notify:); end
|
355
|
+
def type_parameters(*names); end
|
356
|
+
def void; end
|
357
|
+
end
|
358
|
+
class T::Private::Methods::DeclBuilder::BuilderError < StandardError
|
359
|
+
end
|
360
|
+
class T::Private::Methods::Signature
|
361
|
+
def arg_count; end
|
362
|
+
def arg_types; end
|
363
|
+
def bind; end
|
364
|
+
def block_name; end
|
365
|
+
def block_type; end
|
366
|
+
def check_level; end
|
367
|
+
def dsl_method; end
|
368
|
+
def each_args_value_type(args); end
|
369
|
+
def ever_failed; end
|
370
|
+
def generated; end
|
371
|
+
def has_keyrest; end
|
372
|
+
def has_rest; end
|
373
|
+
def initialize(method:, method_name:, raw_arg_types:, raw_return_type:, bind:, mode:, check_level:, soft_notify:, parameters: nil, generated: nil, override_allow_incompatible: nil); end
|
374
|
+
def keyrest_name; end
|
375
|
+
def keyrest_type; end
|
376
|
+
def kwarg_names; end
|
377
|
+
def kwarg_types; end
|
378
|
+
def mark_failed; end
|
379
|
+
def method; end
|
380
|
+
def method_desc; end
|
381
|
+
def method_name; end
|
382
|
+
def mode; end
|
383
|
+
def override_allow_incompatible; end
|
384
|
+
def owner; end
|
385
|
+
def parameters; end
|
386
|
+
def req_arg_count; end
|
387
|
+
def req_kwarg_names; end
|
388
|
+
def rest_name; end
|
389
|
+
def rest_type; end
|
390
|
+
def return_type; end
|
391
|
+
def self.new_untyped(method:, mode: nil, parameters: nil); end
|
392
|
+
def soft_notify; end
|
393
|
+
end
|
394
|
+
module T::Utils::Nilable
|
395
|
+
def self.get_type_info(prop_type); end
|
396
|
+
def self.get_underlying_type(prop_type); end
|
397
|
+
def self.get_underlying_type_object(prop_type); end
|
398
|
+
def self.is_union_with_nilclass(prop_type); end
|
399
|
+
end
|
400
|
+
class T::Utils::Nilable::TypeInfo < Struct
|
401
|
+
def is_union_type; end
|
402
|
+
def is_union_type=(_); end
|
403
|
+
def non_nilable_type; end
|
404
|
+
def non_nilable_type=(_); end
|
405
|
+
def self.[](*arg0); end
|
406
|
+
def self.inspect; end
|
407
|
+
def self.members; end
|
408
|
+
def self.new(*arg0); end
|
409
|
+
end
|
410
|
+
module T::Private::Abstract::Data
|
411
|
+
def self.get(mod, key); end
|
412
|
+
def self.key?(mod, key); end
|
413
|
+
def self.set(mod, key, value); end
|
414
|
+
def self.set_default(mod, key, default); end
|
415
|
+
end
|
416
|
+
module T::Private::MixesInClassMethods
|
417
|
+
def included(other); end
|
418
|
+
end
|
419
|
+
module T::Private::Mixins
|
420
|
+
def self.declare_mixes_in_class_methods(mixin, class_methods); end
|
421
|
+
end
|
422
|
+
module T::Props
|
423
|
+
extend T::Helpers
|
424
|
+
end
|
425
|
+
module T::Props::ClassMethods
|
426
|
+
def const(*args, &blk); end
|
427
|
+
def decorator; end
|
428
|
+
def decorator_class; end
|
429
|
+
def extended(child); end
|
430
|
+
def included(child); end
|
431
|
+
def inherited(child); end
|
432
|
+
def plugin(mod); end
|
433
|
+
def plugins; end
|
434
|
+
def prepended(child); end
|
435
|
+
def prop(name, cls, rules = nil); end
|
436
|
+
def props; end
|
437
|
+
def reload_decorator!; end
|
438
|
+
def self.method_added(name); end
|
439
|
+
def self.singleton_method_added(name); end
|
440
|
+
def validate_prop_value(prop, val); end
|
441
|
+
extend T::Helpers
|
442
|
+
extend T::Sig
|
443
|
+
end
|
444
|
+
module T::Props::CustomType
|
445
|
+
def deserialize(_mongo_scalar); end
|
446
|
+
def instance?(_value); end
|
447
|
+
def self.included(_base); end
|
448
|
+
def self.scalar_type?(val); end
|
449
|
+
def self.valid_serialization?(val, type = nil); end
|
450
|
+
def serialize(_instance); end
|
451
|
+
def valid?(value); end
|
452
|
+
include Kernel
|
453
|
+
end
|
454
|
+
class T::Props::Decorator
|
455
|
+
def add_prop_definition(*args, &blk); end
|
456
|
+
def all_props(*args, &blk); end
|
457
|
+
def array_subdoc_type(*args, &blk); end
|
458
|
+
def check_prop_type(*args, &blk); end
|
459
|
+
def convert_type_to_class(*args, &blk); end
|
460
|
+
def decorated_class; end
|
461
|
+
def define_foreign_method(*args, &blk); end
|
462
|
+
def define_getter_and_setter(*args, &blk); end
|
463
|
+
def foreign_prop_get(*args, &blk); end
|
464
|
+
def get(*args, &blk); end
|
465
|
+
def handle_foreign_hint_only_option(*args, &blk); end
|
466
|
+
def handle_foreign_option(*args, &blk); end
|
467
|
+
def handle_redaction_option(*args, &blk); end
|
468
|
+
def hash_key_custom_type(*args, &blk); end
|
469
|
+
def hash_value_subdoc_type(*args, &blk); end
|
470
|
+
def initialize(*args, &blk); end
|
471
|
+
def is_nilable?(*args, &blk); end
|
472
|
+
def model_inherited(*args, &blk); end
|
473
|
+
def mutate_prop_backdoor!(*args, &blk); end
|
474
|
+
def plugin(arg0, &blk); end
|
475
|
+
def prop_defined(*args, &blk); end
|
476
|
+
def prop_get(*args, &blk); end
|
477
|
+
def prop_rules(*args, &blk); end
|
478
|
+
def prop_set(*args, &blk); end
|
479
|
+
def prop_validate_definition!(*args, &blk); end
|
480
|
+
def props; end
|
481
|
+
def self.method_added(name); end
|
482
|
+
def self.singleton_method_added(name); end
|
483
|
+
def set(*args, &blk); end
|
484
|
+
def shallow_clone_ok(*args, &blk); end
|
485
|
+
def smart_coerce(*args, &blk); end
|
486
|
+
def valid_props(*args, &blk); end
|
487
|
+
def validate_foreign_option(*args, &blk); end
|
488
|
+
def validate_not_missing_sensitivity(*args, &blk); end
|
489
|
+
def validate_prop_name(name); end
|
490
|
+
def validate_prop_value(*args, &blk); end
|
491
|
+
extend T::Sig
|
492
|
+
end
|
493
|
+
class T::Props::Decorator::NoRulesError < StandardError
|
494
|
+
end
|
495
|
+
module T::Props::Decorator::Private
|
496
|
+
def self.apply_class_methods(plugin, target); end
|
497
|
+
def self.apply_decorator_methods(plugin, target); end
|
498
|
+
end
|
499
|
+
class T::Props::Error < StandardError
|
500
|
+
end
|
501
|
+
class T::Props::InvalidValueError < T::Props::Error
|
502
|
+
end
|
503
|
+
class T::Props::ImmutableProp < T::Props::Error
|
504
|
+
end
|
505
|
+
module T::Props::Plugin
|
506
|
+
extend T::Helpers
|
507
|
+
extend T::Props::ClassMethods
|
508
|
+
include T::Props
|
509
|
+
end
|
510
|
+
module T::Props::Plugin::ClassMethods
|
511
|
+
def included(child); end
|
512
|
+
end
|
513
|
+
module T::Props::Utils
|
514
|
+
def self.deep_clone_object(what, freeze: nil); end
|
515
|
+
def self.merge_serialized_optional_rule(prop_rules); end
|
516
|
+
def self.need_nil_read_check?(prop_rules); end
|
517
|
+
def self.need_nil_write_check?(prop_rules); end
|
518
|
+
def self.optional_prop?(prop_rules); end
|
519
|
+
def self.required_prop?(prop_rules); end
|
520
|
+
end
|
521
|
+
module T::Props::Optional
|
522
|
+
extend T::Props::ClassMethods
|
523
|
+
extend T::Props::Plugin::ClassMethods
|
524
|
+
include T::Props::Plugin
|
525
|
+
end
|
526
|
+
module T::Props::Optional::DecoratorMethods
|
527
|
+
def add_prop_definition(prop, rules); end
|
528
|
+
def compute_derived_rules(rules); end
|
529
|
+
def get_default(rules, instance_class); end
|
530
|
+
def has_default?(rules); end
|
531
|
+
def mutate_prop_backdoor!(prop, key, value); end
|
532
|
+
def prop_optional?(prop); end
|
533
|
+
def prop_validate_definition!(name, cls, rules, type); end
|
534
|
+
def valid_props; end
|
535
|
+
end
|
536
|
+
module T::Props::WeakConstructor
|
537
|
+
def initialize(hash = nil); end
|
538
|
+
extend T::Props::ClassMethods
|
539
|
+
extend T::Props::Plugin::ClassMethods
|
540
|
+
include T::Props::Optional
|
541
|
+
end
|
542
|
+
module T::Props::Constructor
|
543
|
+
def initialize(hash = nil); end
|
544
|
+
extend T::Props::ClassMethods
|
545
|
+
extend T::Props::Plugin::ClassMethods
|
546
|
+
extend T::Props::Plugin::ClassMethods
|
547
|
+
include T::Props::WeakConstructor
|
548
|
+
end
|
549
|
+
module T::Props::PrettyPrintable
|
550
|
+
def inspect; end
|
551
|
+
def pretty_inspect; end
|
552
|
+
extend T::Props::ClassMethods
|
553
|
+
extend T::Props::Plugin::ClassMethods
|
554
|
+
include T::Props::Plugin
|
555
|
+
end
|
556
|
+
module T::Props::PrettyPrintable::DecoratorMethods
|
557
|
+
def inspect_instance(*args, &blk); end
|
558
|
+
def inspect_instance_components(*args, &blk); end
|
559
|
+
def inspect_prop_value(*args, &blk); end
|
560
|
+
def join_props_with_pretty_values(*args, &blk); end
|
561
|
+
def self.method_added(name); end
|
562
|
+
def self.singleton_method_added(name); end
|
563
|
+
def valid_props(*args, &blk); end
|
564
|
+
extend T::Sig
|
565
|
+
end
|
566
|
+
module T::Props::Serializable
|
567
|
+
def deserialize(hash, strict = nil); end
|
568
|
+
def recursive_stringify_keys(obj); end
|
569
|
+
def required_prop_missing_from_deserialize(prop); end
|
570
|
+
def required_prop_missing_from_deserialize?(prop); end
|
571
|
+
def serialize(strict = nil); end
|
572
|
+
def with(changed_props); end
|
573
|
+
def with_existing_hash(changed_props, existing_hash:); end
|
574
|
+
extend T::Props::ClassMethods
|
575
|
+
extend T::Props::ClassMethods
|
576
|
+
extend T::Props::ClassMethods
|
577
|
+
extend T::Props::Plugin::ClassMethods
|
578
|
+
extend T::Props::Plugin::ClassMethods
|
579
|
+
extend T::Props::Plugin::ClassMethods
|
580
|
+
include T::Props::Optional
|
581
|
+
include T::Props::Plugin
|
582
|
+
include T::Props::PrettyPrintable
|
583
|
+
end
|
584
|
+
module T::Props::Serializable::DecoratorMethods
|
585
|
+
def add_prop_definition(prop, rules); end
|
586
|
+
def extra_props(instance); end
|
587
|
+
def from_hash(hash, strict = nil); end
|
588
|
+
def get_id(instance); end
|
589
|
+
def inspect_instance_components(instance, multiline:, indent:); end
|
590
|
+
def prop_by_serialized_forms; end
|
591
|
+
def prop_dont_store?(prop); end
|
592
|
+
def prop_serialized_form(prop); end
|
593
|
+
def prop_validate_definition!(name, cls, rules, type); end
|
594
|
+
def required_props; end
|
595
|
+
def serialized_form_prop(serialized_form); end
|
596
|
+
def valid_props; end
|
597
|
+
end
|
598
|
+
module T::Props::Serializable::ClassMethods
|
599
|
+
def from_hash!(hash); end
|
600
|
+
def from_hash(hash, strict = nil); end
|
601
|
+
def prop_by_serialized_forms; end
|
602
|
+
end
|
603
|
+
module T::Props::TypeValidation
|
604
|
+
extend T::Props::ClassMethods
|
605
|
+
extend T::Props::Plugin::ClassMethods
|
606
|
+
include T::Props::Plugin
|
607
|
+
end
|
608
|
+
class T::Props::TypeValidation::UnderspecifiedType < ArgumentError
|
609
|
+
end
|
610
|
+
module T::Props::TypeValidation::DecoratorMethods
|
611
|
+
def find_invalid_subtype(*args, &blk); end
|
612
|
+
def prop_validate_definition!(*args, &blk); end
|
613
|
+
def self.method_added(name); end
|
614
|
+
def self.singleton_method_added(name); end
|
615
|
+
def type_error_message(*args, &blk); end
|
616
|
+
def valid_props(*args, &blk); end
|
617
|
+
def validate_type(*args, &blk); end
|
618
|
+
extend T::Sig
|
619
|
+
end
|
620
|
+
class T::InexactStruct
|
621
|
+
extend T::Props::ClassMethods
|
622
|
+
extend T::Props::ClassMethods
|
623
|
+
extend T::Props::ClassMethods
|
624
|
+
extend T::Props::Plugin::ClassMethods
|
625
|
+
extend T::Props::Plugin::ClassMethods
|
626
|
+
extend T::Props::Plugin::ClassMethods
|
627
|
+
extend T::Props::Plugin::ClassMethods
|
628
|
+
extend T::Props::Plugin::ClassMethods
|
629
|
+
extend T::Props::Serializable::ClassMethods
|
630
|
+
include T::Props
|
631
|
+
include T::Props::Constructor
|
632
|
+
include T::Props::Serializable
|
633
|
+
end
|
634
|
+
class T::Struct < T::InexactStruct
|
635
|
+
def self.inherited(subclass); end
|
636
|
+
extend T::Props::ClassMethods
|
637
|
+
extend T::Props::Plugin::ClassMethods
|
638
|
+
extend T::Props::Plugin::ClassMethods
|
639
|
+
extend T::Props::Plugin::ClassMethods
|
640
|
+
extend T::Props::Plugin::ClassMethods
|
641
|
+
extend T::Props::Plugin::ClassMethods
|
642
|
+
extend T::Props::Serializable::ClassMethods
|
643
|
+
end
|
644
|
+
module T::Private::Abstract
|
645
|
+
end
|
646
|
+
module T::Private::Types
|
647
|
+
end
|