muina 0.2.8 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +25 -0
  3. data/README.md +0 -35
  4. data/lib/muina/maybe/none.rb +57 -0
  5. data/lib/muina/maybe/some.rb +61 -0
  6. data/lib/muina/maybe.rb +13 -0
  7. data/lib/muina/version.rb +1 -2
  8. data/lib/muina.rb +0 -32
  9. metadata +24 -228
  10. data/.github/workflows/main.yml +0 -16
  11. data/.gitignore +0 -5
  12. data/.mutant.yml +0 -38
  13. data/.rspec +0 -4
  14. data/.rubocop.yml +0 -181
  15. data/.ruby-version +0 -1
  16. data/.simplecov +0 -14
  17. data/CHANGELOG.md +0 -38
  18. data/Gemfile +0 -34
  19. data/Gemfile.lock +0 -265
  20. data/Guardfile +0 -24
  21. data/Rakefile +0 -13
  22. data/SECURITY.md +0 -14
  23. data/bin/bundle +0 -114
  24. data/bin/console +0 -15
  25. data/bin/flay +0 -29
  26. data/bin/flog +0 -29
  27. data/bin/guard +0 -29
  28. data/bin/irb +0 -29
  29. data/bin/lefthook +0 -29
  30. data/bin/mutant +0 -29
  31. data/bin/parlour +0 -29
  32. data/bin/rake +0 -29
  33. data/bin/rspec +0 -29
  34. data/bin/rubocop +0 -29
  35. data/bin/setup +0 -8
  36. data/bin/srb +0 -29
  37. data/bin/srb-rbi +0 -29
  38. data/bin/tapioca +0 -29
  39. data/exe/muina +0 -11
  40. data/lefthook.yml +0 -39
  41. data/lib/muina/action/params_factory.rb +0 -17
  42. data/lib/muina/action/step/command.rb +0 -33
  43. data/lib/muina/action/step/failure.rb +0 -18
  44. data/lib/muina/action/step/query.rb +0 -35
  45. data/lib/muina/action/step/result.rb +0 -56
  46. data/lib/muina/action/step.rb +0 -13
  47. data/lib/muina/action.rb +0 -73
  48. data/lib/muina/any.rb +0 -7
  49. data/lib/muina/classes.rb +0 -7
  50. data/lib/muina/deprecator.rb +0 -93
  51. data/lib/muina/entity.rb +0 -20
  52. data/lib/muina/module.rb +0 -6
  53. data/lib/muina/parameters.rb +0 -7
  54. data/lib/muina/params.rb +0 -19
  55. data/lib/muina/private_creation.rb +0 -12
  56. data/lib/muina/result/factory.rb +0 -37
  57. data/lib/muina/result/failure.rb +0 -31
  58. data/lib/muina/result/null.rb +0 -25
  59. data/lib/muina/result/success.rb +0 -31
  60. data/lib/muina/result.rb +0 -17
  61. data/lib/muina/service.rb +0 -25
  62. data/lib/muina/symbol_hash.rb +0 -7
  63. data/lib/muina/unit.rb +0 -10
  64. data/lib/muina/untyped_array.rb +0 -7
  65. data/lib/muina/untyped_hash.rb +0 -7
  66. data/lib/muina/value.rb +0 -24
  67. data/muina.gemspec +0 -35
  68. data/rbi/muina.rbi +0 -311
  69. data/sorbet/config +0 -2
  70. data/sorbet/rbi/gems/actionpack@6.1.4.rbi +0 -5045
  71. data/sorbet/rbi/gems/actionview@6.1.4.rbi +0 -2416
  72. data/sorbet/rbi/gems/activesupport@6.1.4.rbi +0 -3778
  73. data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -54
  74. data/sorbet/rbi/gems/awesome_print@1.9.2.rbi +0 -322
  75. data/sorbet/rbi/gems/builder@3.2.4.rbi +0 -8
  76. data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -18
  77. data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
  78. data/sorbet/rbi/gems/colorize@0.8.1.rbi +0 -39
  79. data/sorbet/rbi/gems/commander@4.6.0.rbi +0 -8
  80. data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +0 -2403
  81. data/sorbet/rbi/gems/crass@1.0.6.rbi +0 -123
  82. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +0 -185
  83. data/sorbet/rbi/gems/docile@1.4.0.rbi +0 -54
  84. data/sorbet/rbi/gems/erubi@1.10.0.rbi +0 -36
  85. data/sorbet/rbi/gems/erubis@2.7.0.rbi +0 -8
  86. data/sorbet/rbi/gems/faker@2.18.0.rbi +0 -2469
  87. data/sorbet/rbi/gems/ffi@1.15.3.rbi +0 -8
  88. data/sorbet/rbi/gems/flay@2.12.1.rbi +0 -178
  89. data/sorbet/rbi/gems/flog@4.6.4.rbi +0 -70
  90. data/sorbet/rbi/gems/formatador@0.3.0.rbi +0 -8
  91. data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +0 -49
  92. data/sorbet/rbi/gems/guard-rspec@4.7.3.rbi +0 -233
  93. data/sorbet/rbi/gems/guard-rubocop@1.4.0.rbi +0 -66
  94. data/sorbet/rbi/gems/guard-shell@0.7.2.rbi +0 -69
  95. data/sorbet/rbi/gems/guard@2.18.0.rbi +0 -617
  96. data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -8
  97. data/sorbet/rbi/gems/i18n@1.8.10.rbi +0 -616
  98. data/sorbet/rbi/gems/io-console@0.5.9.rbi +0 -8
  99. data/sorbet/rbi/gems/irb@1.3.6.rbi +0 -452
  100. data/sorbet/rbi/gems/lefthook@0.7.6.rbi +0 -8
  101. data/sorbet/rbi/gems/listen@3.6.0.rbi +0 -476
  102. data/sorbet/rbi/gems/loofah@2.10.0.rbi +0 -223
  103. data/sorbet/rbi/gems/lumberjack@1.2.8.rbi +0 -431
  104. data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -8
  105. data/sorbet/rbi/gems/minitest@5.14.4.rbi +0 -344
  106. data/sorbet/rbi/gems/mutant-license@0.1.1.1.4043027289354708743625974235631451632228.0.rbi +0 -8
  107. data/sorbet/rbi/gems/mutant-rspec@0.10.32.rbi +0 -8
  108. data/sorbet/rbi/gems/mutant@0.10.32.rbi +0 -4154
  109. data/sorbet/rbi/gems/nenv@0.3.0.rbi +0 -88
  110. data/sorbet/rbi/gems/nokogiri@1.11.7.rbi +0 -1422
  111. data/sorbet/rbi/gems/notiffany@0.1.3.rbi +0 -331
  112. data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -113
  113. data/sorbet/rbi/gems/parlour@6.0.1.rbi +0 -1726
  114. data/sorbet/rbi/gems/parser@3.0.2.0.rbi +0 -1683
  115. data/sorbet/rbi/gems/path_expander@1.1.0.rbi +0 -24
  116. data/sorbet/rbi/gems/polyfill@1.9.0.rbi +0 -393
  117. data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -8
  118. data/sorbet/rbi/gems/racc@1.5.2.rbi +0 -47
  119. data/sorbet/rbi/gems/rack-test@1.1.0.rbi +0 -272
  120. data/sorbet/rbi/gems/rack@2.2.3.rbi +0 -1618
  121. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +0 -92
  122. data/sorbet/rbi/gems/rails-html-sanitizer@1.3.0.rbi +0 -183
  123. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -153
  124. data/sorbet/rbi/gems/rake@13.0.6.rbi +0 -808
  125. data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +0 -8
  126. data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +0 -8
  127. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -1120
  128. data/sorbet/rbi/gems/reline@0.2.6.rbi +0 -662
  129. data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -672
  130. data/sorbet/rbi/gems/rspec-core@3.10.1.rbi +0 -2509
  131. data/sorbet/rbi/gems/rspec-expectations@3.10.1.rbi +0 -1574
  132. data/sorbet/rbi/gems/rspec-mocks@3.10.2.rbi +0 -1462
  133. data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +0 -509
  134. data/sorbet/rbi/gems/rspec@3.10.0.rbi +0 -38
  135. data/sorbet/rbi/gems/rubocop-ast@1.8.0.rbi +0 -2194
  136. data/sorbet/rbi/gems/rubocop-performance@1.11.4.rbi +0 -899
  137. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -118
  138. data/sorbet/rbi/gems/rubocop-rspec@2.4.0.rbi +0 -1805
  139. data/sorbet/rbi/gems/rubocop-sorbet@0.6.2.rbi +0 -288
  140. data/sorbet/rbi/gems/rubocop@1.18.4.rbi +0 -13197
  141. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -405
  142. data/sorbet/rbi/gems/ruby_parser@3.16.0.rbi +0 -4528
  143. data/sorbet/rbi/gems/safe_type@1.1.1.rbi +0 -157
  144. data/sorbet/rbi/gems/sexp_processor@4.15.3.rbi +0 -359
  145. data/sorbet/rbi/gems/shellany@0.0.1.rbi +0 -28
  146. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -89
  147. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +0 -577
  148. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +0 -8
  149. data/sorbet/rbi/gems/sorbet-coerce@0.5.0.rbi +0 -42
  150. data/sorbet/rbi/gems/sorbet-rails@0.7.4.rbi +0 -8
  151. data/sorbet/rbi/gems/sorbet-struct-comparable@1.1.0.rbi +0 -17
  152. data/sorbet/rbi/gems/spoom@1.1.1.rbi +0 -1193
  153. data/sorbet/rbi/gems/tapioca@0.4.23.rbi +0 -1826
  154. data/sorbet/rbi/gems/thor@1.1.0.rbi +0 -838
  155. data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +0 -856
  156. data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +0 -26
  157. data/sorbet/rbi/gems/unparser@0.6.0.rbi +0 -2037
  158. data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +0 -173
  159. data/sorbet/rbi/todo.rbi +0 -8
  160. data/sorbet/rbi/typed_params.rbi +0 -7
  161. data/sorbet/tapioca/require.rb +0 -16
@@ -1,1826 +0,0 @@
1
- # DO NOT EDIT MANUALLY
2
- # This is an autogenerated file for types exported from the `tapioca` gem.
3
- # Please instead update this file by running `bin/tapioca sync`.
4
-
5
- # typed: true
6
-
7
- class Parlour::Generator
8
- sig { params(break_params: Integer, tab_size: Integer, sort_namespaces: T::Boolean).void }
9
- def initialize(break_params: T.unsafe(nil), tab_size: T.unsafe(nil), sort_namespaces: T.unsafe(nil)); end
10
-
11
- sig { overridable.returns(T.nilable(Parlour::Plugin)) }
12
- def current_plugin; end
13
-
14
- def current_plugin=(_arg0); end
15
-
16
- sig { overridable.returns(Parlour::Options) }
17
- def options; end
18
- end
19
-
20
- class Parlour::Options
21
- sig { params(break_params: Integer, tab_size: Integer, sort_namespaces: T::Boolean).void }
22
- def initialize(break_params:, tab_size:, sort_namespaces:); end
23
-
24
- sig { returns(Integer) }
25
- def break_params; end
26
-
27
- sig { params(level: Integer, str: String).returns(String) }
28
- def indented(level, str); end
29
-
30
- sig { returns(T::Boolean) }
31
- def sort_namespaces; end
32
-
33
- sig { returns(Integer) }
34
- def tab_size; end
35
- end
36
-
37
- class Parlour::RbiGenerator < ::Parlour::Generator
38
- def initialize(**hash); end
39
-
40
- sig { overridable.params(strictness: String).returns(String) }
41
- def rbi(strictness = T.unsafe(nil)); end
42
-
43
- sig { overridable.returns(Parlour::RbiGenerator::Namespace) }
44
- def root; end
45
- end
46
-
47
- class Parlour::RbiGenerator::Arbitrary < ::Parlour::RbiGenerator::RbiObject
48
- sig { params(generator: Parlour::Generator, code: String, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::Arbitrary).void)).void }
49
- def initialize(generator, code: T.unsafe(nil), &block); end
50
-
51
- sig { params(other: Object).returns(T::Boolean) }
52
- def ==(other); end
53
-
54
- sig { returns(String) }
55
- def code; end
56
-
57
- def code=(_arg0); end
58
-
59
- sig { override.returns(String) }
60
- def describe; end
61
-
62
- sig { override.void }
63
- def generalize_from_rbi!; end
64
-
65
- sig { override.params(indent_level: Integer, options: Parlour::Options).returns(T::Array[String]) }
66
- def generate_rbi(indent_level, options); end
67
-
68
- sig { override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).void }
69
- def merge_into_self(others); end
70
-
71
- sig { override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).returns(T::Boolean) }
72
- def mergeable?(others); end
73
- end
74
-
75
- class Parlour::RbiGenerator::Attribute < ::Parlour::RbiGenerator::Method
76
- sig { params(generator: Parlour::Generator, name: String, kind: Symbol, type: T.any(Parlour::Types::Type, String), class_attribute: T::Boolean, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::Attribute).void)).void }
77
- def initialize(generator, name, kind, type, class_attribute: T.unsafe(nil), &block); end
78
-
79
- sig { override.params(other: Object).returns(T::Boolean) }
80
- def ==(other); end
81
-
82
- sig { returns(T::Boolean) }
83
- def class_attribute; end
84
-
85
- sig { override.void }
86
- def generalize_from_rbi!; end
87
-
88
- sig { returns(Symbol) }
89
- def kind; end
90
-
91
- sig { returns(T.any(Parlour::Types::Type, String)) }
92
- def type; end
93
-
94
- private
95
-
96
- sig { override.params(indent_level: Integer, options: Parlour::Options).returns(T::Array[String]) }
97
- def generate_definition(indent_level, options); end
98
- end
99
-
100
- class Parlour::RbiGenerator::ClassNamespace < ::Parlour::RbiGenerator::Namespace
101
- sig { params(generator: Parlour::Generator, name: String, final: T::Boolean, sealed: T::Boolean, superclass: T.nilable(String), abstract: T::Boolean, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::ClassNamespace).void)).void }
102
- def initialize(generator, name, final, sealed, superclass, abstract, &block); end
103
-
104
- sig { returns(T::Boolean) }
105
- def abstract; end
106
-
107
- sig { override.returns(String) }
108
- def describe; end
109
-
110
- sig { override.void }
111
- def generalize_from_rbi!; end
112
-
113
- sig { override.params(indent_level: Integer, options: Parlour::Options).returns(T::Array[String]) }
114
- def generate_rbi(indent_level, options); end
115
-
116
- sig { override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).void }
117
- def merge_into_self(others); end
118
-
119
- sig { override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).returns(T::Boolean) }
120
- def mergeable?(others); end
121
-
122
- sig { returns(T.nilable(String)) }
123
- def superclass; end
124
- end
125
-
126
- class Parlour::RbiGenerator::Constant < ::Parlour::RbiGenerator::RbiObject
127
- sig { params(generator: Parlour::Generator, name: String, value: T.any(Parlour::Types::Type, String), eigen_constant: T::Boolean, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::Constant).void)).void }
128
- def initialize(generator, name: T.unsafe(nil), value: T.unsafe(nil), eigen_constant: T.unsafe(nil), &block); end
129
-
130
- sig { params(other: Object).returns(T::Boolean) }
131
- def ==(other); end
132
-
133
- sig { override.returns(String) }
134
- def describe; end
135
-
136
- def eigen_constant; end
137
-
138
- sig { override.void }
139
- def generalize_from_rbi!; end
140
-
141
- sig { override.params(indent_level: Integer, options: Parlour::Options).returns(T::Array[String]) }
142
- def generate_rbi(indent_level, options); end
143
-
144
- sig { override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).void }
145
- def merge_into_self(others); end
146
-
147
- sig { override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).returns(T::Boolean) }
148
- def mergeable?(others); end
149
-
150
- sig { returns(T.any(Parlour::Types::Type, String)) }
151
- def value; end
152
- end
153
-
154
- class Parlour::RbiGenerator::EnumClassNamespace < ::Parlour::RbiGenerator::ClassNamespace
155
- sig { params(generator: Parlour::Generator, name: String, final: T::Boolean, sealed: T::Boolean, enums: T::Array[T.any(String, [String, String])], abstract: T::Boolean, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::EnumClassNamespace).void)).void }
156
- def initialize(generator, name, final, sealed, enums, abstract, &block); end
157
-
158
- sig { returns(T::Array[T.any(String, [String, String])]) }
159
- def enums; end
160
-
161
- sig { override.void }
162
- def generalize_from_rbi!; end
163
-
164
- sig { override.params(indent_level: Integer, options: Parlour::Options).returns(T::Array[String]) }
165
- def generate_body(indent_level, options); end
166
-
167
- sig { override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).void }
168
- def merge_into_self(others); end
169
-
170
- sig { override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).returns(T::Boolean) }
171
- def mergeable?(others); end
172
- end
173
-
174
- class Parlour::RbiGenerator::Extend < ::Parlour::RbiGenerator::RbiObject
175
- sig { params(generator: Parlour::Generator, name: String, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::Extend).void)).void }
176
- def initialize(generator, name: T.unsafe(nil), &block); end
177
-
178
- sig { params(other: Object).returns(T::Boolean) }
179
- def ==(other); end
180
-
181
- sig { override.returns(String) }
182
- def describe; end
183
-
184
- sig { override.void }
185
- def generalize_from_rbi!; end
186
-
187
- sig { override.params(indent_level: Integer, options: Parlour::Options).returns(T::Array[String]) }
188
- def generate_rbi(indent_level, options); end
189
-
190
- sig { override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).void }
191
- def merge_into_self(others); end
192
-
193
- sig { override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).returns(T::Boolean) }
194
- def mergeable?(others); end
195
- end
196
-
197
- class Parlour::RbiGenerator::Include < ::Parlour::RbiGenerator::RbiObject
198
- sig { params(generator: Parlour::Generator, name: String, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::Include).void)).void }
199
- def initialize(generator, name: T.unsafe(nil), &block); end
200
-
201
- sig { params(other: Object).returns(T::Boolean) }
202
- def ==(other); end
203
-
204
- sig { override.returns(String) }
205
- def describe; end
206
-
207
- sig { override.void }
208
- def generalize_from_rbi!; end
209
-
210
- sig { override.params(indent_level: Integer, options: Parlour::Options).returns(T::Array[String]) }
211
- def generate_rbi(indent_level, options); end
212
-
213
- sig { override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).void }
214
- def merge_into_self(others); end
215
-
216
- sig { override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).returns(T::Boolean) }
217
- def mergeable?(others); end
218
- end
219
-
220
- class Parlour::RbiGenerator::Method < ::Parlour::RbiGenerator::RbiObject
221
- sig { params(generator: Parlour::Generator, name: String, parameters: T::Array[Parlour::RbiGenerator::Parameter], return_type: T.nilable(T.any(Parlour::Types::Type, String)), abstract: T::Boolean, implementation: T::Boolean, override: T::Boolean, overridable: T::Boolean, class_method: T::Boolean, final: T::Boolean, type_parameters: T.nilable(T::Array[Symbol]), block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::Method).void)).void }
222
- def initialize(generator, name, parameters, return_type = T.unsafe(nil), abstract: T.unsafe(nil), implementation: T.unsafe(nil), override: T.unsafe(nil), overridable: T.unsafe(nil), class_method: T.unsafe(nil), final: T.unsafe(nil), type_parameters: T.unsafe(nil), &block); end
223
-
224
- sig { overridable.params(other: Object).returns(T::Boolean) }
225
- def ==(other); end
226
-
227
- sig { returns(T::Boolean) }
228
- def abstract; end
229
-
230
- sig { returns(T::Boolean) }
231
- def class_method; end
232
-
233
- sig { override.returns(String) }
234
- def describe; end
235
-
236
- sig { returns(T::Boolean) }
237
- def final; end
238
-
239
- sig { override.void }
240
- def generalize_from_rbi!; end
241
-
242
- sig { override.params(indent_level: Integer, options: Parlour::Options).returns(T::Array[String]) }
243
- def generate_rbi(indent_level, options); end
244
-
245
- sig { returns(T::Boolean) }
246
- def implementation; end
247
-
248
- sig { override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).void }
249
- def merge_into_self(others); end
250
-
251
- sig { override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).returns(T::Boolean) }
252
- def mergeable?(others); end
253
-
254
- sig { returns(T::Boolean) }
255
- def overridable; end
256
-
257
- sig { returns(T::Boolean) }
258
- def override; end
259
-
260
- sig { returns(T::Array[Parlour::RbiGenerator::Parameter]) }
261
- def parameters; end
262
-
263
- sig { returns(T.nilable(T.any(Parlour::Types::Type, String))) }
264
- def return_type; end
265
-
266
- sig { returns(T::Array[Symbol]) }
267
- def type_parameters; end
268
-
269
- private
270
-
271
- sig { overridable.params(indent_level: Integer, options: Parlour::Options).returns(T::Array[String]) }
272
- def generate_definition(indent_level, options); end
273
-
274
- sig { returns(String) }
275
- def qualifiers; end
276
- end
277
-
278
- class Parlour::RbiGenerator::ModuleNamespace < ::Parlour::RbiGenerator::Namespace
279
- sig { params(generator: Parlour::Generator, name: String, final: T::Boolean, sealed: T::Boolean, interface: T::Boolean, abstract: T::Boolean, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::ClassNamespace).void)).void }
280
- def initialize(generator, name, final, sealed, interface, abstract, &block); end
281
-
282
- sig { returns(T::Boolean) }
283
- def abstract; end
284
-
285
- sig { override.returns(String) }
286
- def describe; end
287
-
288
- sig { override.void }
289
- def generalize_from_rbi!; end
290
-
291
- sig { override.params(indent_level: Integer, options: Parlour::Options).returns(T::Array[String]) }
292
- def generate_rbi(indent_level, options); end
293
-
294
- sig { returns(T::Boolean) }
295
- def interface; end
296
-
297
- sig { override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).void }
298
- def merge_into_self(others); end
299
-
300
- sig { override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).returns(T::Boolean) }
301
- def mergeable?(others); end
302
- end
303
-
304
- class Parlour::RbiGenerator::Namespace < ::Parlour::RbiGenerator::RbiObject
305
- sig { params(generator: Parlour::Generator, name: T.nilable(String), final: T::Boolean, sealed: T::Boolean, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::Namespace).void)).void }
306
- def initialize(generator, name = T.unsafe(nil), final = T.unsafe(nil), sealed = T.unsafe(nil), &block); end
307
-
308
- sig { params(comment: T.any(String, T::Array[String])).void }
309
- def add_comment_to_next_child(comment); end
310
-
311
- sig { returns(T::Array[Parlour::RbiGenerator::TypeAlias]) }
312
- def aliases; end
313
-
314
- sig { returns(T::Array[Parlour::RbiGenerator::RbiObject]) }
315
- def children; end
316
-
317
- sig { returns(T::Array[Parlour::RbiGenerator::Constant]) }
318
- def constants; end
319
-
320
- def create_arbitrary(code:, &block); end
321
- def create_attr(*args, &blk); end
322
-
323
- sig { params(name: String, type: T.any(Parlour::Types::Type, String), class_attribute: T::Boolean, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::Attribute).void)).returns(Parlour::RbiGenerator::Attribute) }
324
- def create_attr_accessor(name, type:, class_attribute: T.unsafe(nil), &block); end
325
-
326
- sig { params(name: String, type: T.any(Parlour::Types::Type, String), class_attribute: T::Boolean, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::Attribute).void)).returns(Parlour::RbiGenerator::Attribute) }
327
- def create_attr_reader(name, type:, class_attribute: T.unsafe(nil), &block); end
328
-
329
- sig { params(name: String, type: T.any(Parlour::Types::Type, String), class_attribute: T::Boolean, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::Attribute).void)).returns(Parlour::RbiGenerator::Attribute) }
330
- def create_attr_writer(name, type:, class_attribute: T.unsafe(nil), &block); end
331
-
332
- sig { params(name: String, kind: Symbol, type: T.any(Parlour::Types::Type, String), class_attribute: T::Boolean, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::Attribute).void)).returns(Parlour::RbiGenerator::Attribute) }
333
- def create_attribute(name, kind:, type:, class_attribute: T.unsafe(nil), &block); end
334
-
335
- sig { params(name: String, final: T::Boolean, sealed: T::Boolean, superclass: T.nilable(String), abstract: T::Boolean, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::ClassNamespace).void)).returns(Parlour::RbiGenerator::ClassNamespace) }
336
- def create_class(name, final: T.unsafe(nil), sealed: T.unsafe(nil), superclass: T.unsafe(nil), abstract: T.unsafe(nil), &block); end
337
-
338
- sig { params(name: String, value: String, eigen_constant: T::Boolean, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::Constant).void)).returns(Parlour::RbiGenerator::Constant) }
339
- def create_constant(name, value:, eigen_constant: T.unsafe(nil), &block); end
340
-
341
- sig { params(name: String, final: T::Boolean, sealed: T::Boolean, enums: T.nilable(T::Array[T.any(String, [String, String])]), abstract: T::Boolean, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::EnumClassNamespace).void)).returns(Parlour::RbiGenerator::EnumClassNamespace) }
342
- def create_enum_class(name, final: T.unsafe(nil), sealed: T.unsafe(nil), enums: T.unsafe(nil), abstract: T.unsafe(nil), &block); end
343
-
344
- sig { params(name: String, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::Extend).void)).returns(Parlour::RbiGenerator::Extend) }
345
- def create_extend(name, &block); end
346
-
347
- sig { params(extendables: T::Array[String]).returns(T::Array[Parlour::RbiGenerator::Extend]) }
348
- def create_extends(extendables); end
349
-
350
- sig { params(name: String, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::Include).void)).returns(Parlour::RbiGenerator::Include) }
351
- def create_include(name, &block); end
352
-
353
- sig { params(includables: T::Array[String]).returns(T::Array[Parlour::RbiGenerator::Include]) }
354
- def create_includes(includables); end
355
-
356
- sig { params(name: String, parameters: T.nilable(T::Array[Parlour::RbiGenerator::Parameter]), return_type: T.nilable(T.any(Parlour::Types::Type, String)), returns: T.nilable(T.any(Parlour::Types::Type, String)), abstract: T::Boolean, implementation: T::Boolean, override: T::Boolean, overridable: T::Boolean, class_method: T::Boolean, final: T::Boolean, type_parameters: T.nilable(T::Array[Symbol]), block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::Method).void)).returns(Parlour::RbiGenerator::Method) }
357
- def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), returns: T.unsafe(nil), abstract: T.unsafe(nil), implementation: T.unsafe(nil), override: T.unsafe(nil), overridable: T.unsafe(nil), class_method: T.unsafe(nil), final: T.unsafe(nil), type_parameters: T.unsafe(nil), &block); end
358
-
359
- sig { params(name: String, final: T::Boolean, sealed: T::Boolean, interface: T::Boolean, abstract: T::Boolean, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::ClassNamespace).void)).returns(Parlour::RbiGenerator::ModuleNamespace) }
360
- def create_module(name, final: T.unsafe(nil), sealed: T.unsafe(nil), interface: T.unsafe(nil), abstract: T.unsafe(nil), &block); end
361
-
362
- sig { params(name: String, final: T::Boolean, sealed: T::Boolean, props: T.nilable(T::Array[Parlour::RbiGenerator::StructProp]), abstract: T::Boolean, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::StructClassNamespace).void)).returns(Parlour::RbiGenerator::StructClassNamespace) }
363
- def create_struct_class(name, final: T.unsafe(nil), sealed: T.unsafe(nil), props: T.unsafe(nil), abstract: T.unsafe(nil), &block); end
364
-
365
- sig { params(name: String, type: T.any(Parlour::Types::Type, String), block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::TypeAlias).void)).returns(Parlour::RbiGenerator::TypeAlias) }
366
- def create_type_alias(name, type:, &block); end
367
-
368
- sig { override.overridable.returns(String) }
369
- def describe; end
370
-
371
- sig { returns(T::Array[Parlour::RbiGenerator::Extend]) }
372
- def extends; end
373
-
374
- sig { returns(T::Boolean) }
375
- def final; end
376
-
377
- sig { override.void }
378
- def generalize_from_rbi!; end
379
-
380
- sig { override.overridable.params(indent_level: Integer, options: Parlour::Options).returns(T::Array[String]) }
381
- def generate_rbi(indent_level, options); end
382
-
383
- sig { returns(T::Array[Parlour::RbiGenerator::Include]) }
384
- def includes; end
385
-
386
- sig { override.overridable.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).void }
387
- def merge_into_self(others); end
388
-
389
- sig { override.overridable.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).returns(T::Boolean) }
390
- def mergeable?(others); end
391
-
392
- sig { params(constant: Module, block: T.proc.params(x: Parlour::RbiGenerator::Namespace).void).void }
393
- def path(constant, &block); end
394
-
395
- sig { returns(T::Boolean) }
396
- def sealed; end
397
-
398
- def type_aliases(*args, &blk); end
399
-
400
- private
401
-
402
- sig { overridable.params(indent_level: Integer, options: Parlour::Options).returns(T::Array[String]) }
403
- def generate_body(indent_level, options); end
404
-
405
- sig { params(object: Parlour::RbiGenerator::RbiObject).void }
406
- def move_next_comments(object); end
407
- end
408
-
409
- Parlour::RbiGenerator::Options = Parlour::Options
410
-
411
- class Parlour::RbiGenerator::Parameter
412
- sig { params(name: String, type: T.nilable(T.any(Parlour::Types::Type, String)), default: T.nilable(String)).void }
413
- def initialize(name, type: T.unsafe(nil), default: T.unsafe(nil)); end
414
-
415
- sig { params(other: Object).returns(T::Boolean) }
416
- def ==(other); end
417
-
418
- sig { returns(T.nilable(String)) }
419
- def default; end
420
-
421
- sig { void }
422
- def generalize_from_rbi!; end
423
-
424
- sig { returns(Symbol) }
425
- def kind; end
426
-
427
- sig { returns(String) }
428
- def name; end
429
-
430
- sig { returns(String) }
431
- def name_without_kind; end
432
-
433
- sig { returns(String) }
434
- def to_def_param; end
435
-
436
- sig { returns(String) }
437
- def to_sig_param; end
438
-
439
- sig { returns(T.any(Parlour::Types::Type, String)) }
440
- def type; end
441
- end
442
-
443
- Parlour::RbiGenerator::Parameter::PREFIXES = T.let(T.unsafe(nil), Hash)
444
-
445
- class Parlour::RbiGenerator::RbiObject < ::Parlour::TypedObject
446
- abstract!
447
-
448
- sig { params(generator: Parlour::Generator, name: String).void }
449
- def initialize(generator, name); end
450
-
451
- sig { override.overridable.returns(String) }
452
- def describe; end
453
-
454
- sig { abstract.void }
455
- def generalize_from_rbi!; end
456
-
457
- sig { abstract.params(indent_level: Integer, options: Parlour::Options).returns(T::Array[String]) }
458
- def generate_rbi(indent_level, options); end
459
-
460
- sig { returns(Parlour::Generator) }
461
- def generator; end
462
-
463
- sig { abstract.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).void }
464
- def merge_into_self(others); end
465
-
466
- sig { abstract.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).returns(T::Boolean) }
467
- def mergeable?(others); end
468
- end
469
-
470
- class Parlour::RbiGenerator::StructClassNamespace < ::Parlour::RbiGenerator::ClassNamespace
471
- sig { params(generator: Parlour::Generator, name: String, final: T::Boolean, sealed: T::Boolean, props: T::Array[Parlour::RbiGenerator::StructProp], abstract: T::Boolean, block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::StructClassNamespace).void)).void }
472
- def initialize(generator, name, final, sealed, props, abstract, &block); end
473
-
474
- sig { override.void }
475
- def generalize_from_rbi!; end
476
-
477
- sig { override.params(indent_level: Integer, options: Parlour::Options).returns(T::Array[String]) }
478
- def generate_body(indent_level, options); end
479
-
480
- sig { override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).void }
481
- def merge_into_self(others); end
482
-
483
- sig { override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).returns(T::Boolean) }
484
- def mergeable?(others); end
485
-
486
- sig { returns(T::Array[Parlour::RbiGenerator::StructProp]) }
487
- def props; end
488
- end
489
-
490
- class Parlour::RbiGenerator::StructProp
491
- sig { params(name: String, type: T.any(Parlour::Types::Type, String), optional: T.nilable(T.any(Symbol, T::Boolean)), enum: T.nilable(String), dont_store: T.nilable(T::Boolean), foreign: T.nilable(String), default: T.nilable(String), factory: T.nilable(String), immutable: T.nilable(T::Boolean), array: T.nilable(String), override: T.nilable(T::Boolean), redaction: T.nilable(String)).void }
492
- def initialize(name, type, optional: T.unsafe(nil), enum: T.unsafe(nil), dont_store: T.unsafe(nil), foreign: T.unsafe(nil), default: T.unsafe(nil), factory: T.unsafe(nil), immutable: T.unsafe(nil), array: T.unsafe(nil), override: T.unsafe(nil), redaction: T.unsafe(nil)); end
493
-
494
- sig { params(other: Object).returns(T::Boolean) }
495
- def ==(other); end
496
-
497
- sig { returns(T.nilable(String)) }
498
- def array; end
499
-
500
- sig { returns(T.nilable(String)) }
501
- def default; end
502
-
503
- sig { returns(T.nilable(T::Boolean)) }
504
- def dont_store; end
505
-
506
- sig { returns(T.nilable(String)) }
507
- def enum; end
508
-
509
- sig { returns(T.nilable(String)) }
510
- def factory; end
511
-
512
- sig { returns(T.nilable(String)) }
513
- def foreign; end
514
-
515
- sig { void }
516
- def generalize_from_rbi!; end
517
-
518
- sig { returns(T.nilable(T::Boolean)) }
519
- def immutable; end
520
-
521
- sig { returns(String) }
522
- def name; end
523
-
524
- sig { returns(T.nilable(T.any(Symbol, T::Boolean))) }
525
- def optional; end
526
-
527
- sig { returns(T.nilable(T::Boolean)) }
528
- def override; end
529
-
530
- sig { returns(T.nilable(String)) }
531
- def redaction; end
532
-
533
- sig { returns(String) }
534
- def to_prop_call; end
535
-
536
- sig { returns(T.any(Parlour::Types::Type, String)) }
537
- def type; end
538
- end
539
-
540
- Parlour::RbiGenerator::StructProp::EXTRA_PROPERTIES = T.let(T.unsafe(nil), Array)
541
-
542
- class Parlour::RbiGenerator::TypeAlias < ::Parlour::RbiGenerator::RbiObject
543
- sig { params(generator: Parlour::Generator, name: String, type: T.any(Parlour::Types::Type, String), block: T.nilable(T.proc.params(x: Parlour::RbiGenerator::TypeAlias).void)).void }
544
- def initialize(generator, name:, type:, &block); end
545
-
546
- sig { params(other: Object).returns(T::Boolean) }
547
- def ==(other); end
548
-
549
- sig { override.returns(String) }
550
- def describe; end
551
-
552
- sig { override.void }
553
- def generalize_from_rbi!; end
554
-
555
- sig { override.params(indent_level: Integer, options: Parlour::Options).returns(T::Array[String]) }
556
- def generate_rbi(indent_level, options); end
557
-
558
- sig { override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).void }
559
- def merge_into_self(others); end
560
-
561
- sig { override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).returns(T::Boolean) }
562
- def mergeable?(others); end
563
-
564
- sig { returns(T.any(Parlour::Types::Type, String)) }
565
- def type; end
566
- end
567
-
568
- class Parlour::TypedObject
569
- abstract!
570
-
571
- sig { params(name: String).void }
572
- def initialize(name); end
573
-
574
- sig { params(comment: T.any(String, T::Array[String])).void }
575
- def add_comment(comment); end
576
-
577
- def add_comments(*args, &blk); end
578
-
579
- sig { returns(T::Array[String]) }
580
- def comments; end
581
-
582
- sig { abstract.returns(String) }
583
- def describe; end
584
-
585
- sig { returns(T.nilable(Parlour::Plugin)) }
586
- def generated_by; end
587
-
588
- sig { returns(String) }
589
- def name; end
590
-
591
- protected
592
-
593
- sig { params(indent_level: Integer, options: Parlour::Options).returns(T::Array[String]) }
594
- def generate_comments(indent_level, options); end
595
- end
596
-
597
- class String
598
- include ::Comparable
599
- include ::JSON::Ext::Generator::GeneratorMethods::String
600
- include ::Colorize::InstanceMethods
601
- extend ::JSON::Ext::Generator::GeneratorMethods::String::Extend
602
- extend ::Colorize::ClassMethods
603
-
604
- sig { returns(String) }
605
- def underscore; end
606
- end
607
-
608
- String::BLANK_RE = T.let(T.unsafe(nil), Regexp)
609
- String::ENCODED_BLANKS = T.let(T.unsafe(nil), Concurrent::Map)
610
-
611
- module T::Generic::TypeStoragePatch
612
- def [](*types); end
613
- def type_member(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil)); end
614
- def type_template(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil)); end
615
- end
616
-
617
- module T::Types::Simple::GenericNamePatch
618
- def name; end
619
- end
620
-
621
- module T::Types::Simple::NamePatch
622
- def name; end
623
- end
624
-
625
- module Tapioca
626
- class << self
627
- def silence_warnings(&blk); end
628
- end
629
- end
630
-
631
- module Tapioca::Cli; end
632
-
633
- class Tapioca::Cli::Main < ::Thor
634
- include ::Thor::Actions
635
- extend ::Thor::Actions::ClassMethods
636
-
637
- def __print_version; end
638
- def dsl(*constants); end
639
- def generate(*gems); end
640
- def init; end
641
- def require; end
642
- def sync; end
643
- def todo; end
644
-
645
- private
646
-
647
- def create_config; end
648
- def create_post_require; end
649
- def generate_binstub; end
650
- def generator; end
651
-
652
- class << self
653
- def exit_on_failure?; end
654
- end
655
- end
656
-
657
- module Tapioca::Compilers; end
658
- module Tapioca::Compilers::Dsl; end
659
-
660
- class Tapioca::Compilers::Dsl::Base
661
- abstract!
662
-
663
- sig { void }
664
- def initialize; end
665
-
666
- sig { abstract.type_parameters(:T).params(root: Parlour::RbiGenerator::Namespace, constant: T.type_parameter(:T)).void }
667
- def decorate(root, constant); end
668
-
669
- sig { abstract.returns(T::Enumerable[Module]) }
670
- def gather_constants; end
671
-
672
- sig { params(constant: Module).returns(T::Boolean) }
673
- def handles?(constant); end
674
-
675
- sig { returns(T::Set[Module]) }
676
- def processable_constants; end
677
-
678
- private
679
-
680
- sig { params(method_def: T.any(Method, UnboundMethod)).returns(T::Array[Parlour::RbiGenerator::Parameter]) }
681
- def compile_method_parameters_to_parlour(method_def); end
682
-
683
- sig { params(method_def: T.any(Method, UnboundMethod)).returns(T.nilable(String)) }
684
- def compile_method_return_type_to_parlour(method_def); end
685
-
686
- sig { params(namespace: Parlour::RbiGenerator::Namespace, name: String, options: T::Hash[T.untyped, T.untyped]).void }
687
- def create_method(namespace, name, options = T.unsafe(nil)); end
688
-
689
- sig { params(namespace: Parlour::RbiGenerator::Namespace, method_def: T.any(Method, UnboundMethod), class_method: T::Boolean).void }
690
- def create_method_from_def(namespace, method_def, class_method: T.unsafe(nil)); end
691
-
692
- sig { params(method_def: T.any(Method, UnboundMethod), signature: T.untyped).returns(T::Array[String]) }
693
- def parameters_types_from_signature(method_def, signature); end
694
-
695
- sig { params(name: String).returns(T::Boolean) }
696
- def valid_method_name?(name); end
697
- end
698
-
699
- Tapioca::Compilers::Dsl::Base::SPECIAL_METHOD_NAMES = T.let(T.unsafe(nil), Array)
700
-
701
- class Tapioca::Compilers::DslCompiler
702
- sig { params(requested_constants: T::Array[Module], requested_generators: T::Array[String], error_handler: T.nilable(T.proc.params(error: String).void)).void }
703
- def initialize(requested_constants:, requested_generators: T.unsafe(nil), error_handler: T.unsafe(nil)); end
704
-
705
- sig { returns(T.proc.params(error: String).void) }
706
- def error_handler; end
707
-
708
- sig { returns(T::Enumerable[Tapioca::Compilers::Dsl::Base]) }
709
- def generators; end
710
-
711
- sig { returns(T::Array[Module]) }
712
- def requested_constants; end
713
-
714
- sig { params(blk: T.proc.params(constant: Module, rbi: String).void).void }
715
- def run(&blk); end
716
-
717
- private
718
-
719
- sig { params(requested_constants: T::Array[Module]).returns(T::Set[Module]) }
720
- def gather_constants(requested_constants); end
721
-
722
- sig { params(requested_generators: T::Array[String]).returns(T::Enumerable[Tapioca::Compilers::Dsl::Base]) }
723
- def gather_generators(requested_generators); end
724
-
725
- sig { params(requested_generators: T::Array[String]).returns(T.proc.params(klass: Class).returns(T::Boolean)) }
726
- def generator_filter(requested_generators); end
727
-
728
- sig { params(constant: Module).returns(T.nilable(String)) }
729
- def rbi_for_constant(constant); end
730
-
731
- sig { params(error: String).returns(T.noreturn) }
732
- def report_error(error); end
733
-
734
- sig { params(parlour: Parlour::RbiGenerator).void }
735
- def resolve_conflicts(parlour); end
736
- end
737
-
738
- class Tapioca::Compilers::RequiresCompiler
739
- sig { params(sorbet_path: String).void }
740
- def initialize(sorbet_path); end
741
-
742
- sig { returns(String) }
743
- def compile; end
744
-
745
- private
746
-
747
- sig { params(config: Spoom::Sorbet::Config).returns(T::Array[String]) }
748
- def collect_files(config); end
749
-
750
- sig { params(file_path: String).returns(T::Enumerable[String]) }
751
- def collect_requires(file_path); end
752
-
753
- sig { params(config: Spoom::Sorbet::Config, file_path: Pathname).returns(T::Boolean) }
754
- def file_ignored_by_sorbet?(config, file_path); end
755
-
756
- sig { params(files: T::Enumerable[String], name: String).returns(T::Boolean) }
757
- def name_in_project?(files, name); end
758
-
759
- sig { params(path: Pathname).returns(T::Array[String]) }
760
- def path_parts(path); end
761
- end
762
-
763
- module Tapioca::Compilers::Sorbet
764
- class << self
765
- sig { params(args: String).returns(String) }
766
- def run(*args); end
767
-
768
- sig { returns(String) }
769
- def sorbet_path; end
770
- end
771
- end
772
-
773
- Tapioca::Compilers::Sorbet::EXE_PATH_ENV_VAR = T.let(T.unsafe(nil), String)
774
- Tapioca::Compilers::Sorbet::SORBET = T.let(T.unsafe(nil), Pathname)
775
- module Tapioca::Compilers::SymbolTable; end
776
-
777
- class Tapioca::Compilers::SymbolTable::SymbolGenerator
778
- sig { params(gem: Tapioca::Gemfile::Gem, indent: Integer).void }
779
- def initialize(gem, indent = T.unsafe(nil)); end
780
-
781
- def gem; end
782
-
783
- sig { returns(String) }
784
- def generate; end
785
-
786
- def indent; end
787
-
788
- private
789
-
790
- sig { params(name: String).void }
791
- def add_to_alias_namespace(name); end
792
-
793
- def add_to_symbol_queue(name); end
794
-
795
- sig { params(name: String).returns(T::Boolean) }
796
- def alias_namespaced?(name); end
797
-
798
- sig { params(constant: Module).returns(T::Array[Module]) }
799
- def ancestors_of(constant); end
800
-
801
- sig { params(constant: Module, other: BasicObject).returns(T::Boolean) }
802
- def are_equal?(constant, other); end
803
-
804
- sig { params(constant: BasicObject).returns(Class) }
805
- def class_of(constant); end
806
-
807
- sig { params(tree: Tapioca::RBI::Tree, name: T.nilable(String), constant: BasicObject).void }
808
- def compile(tree, name, constant); end
809
-
810
- sig { params(tree: Tapioca::RBI::Tree, name: String, constant: Module).void }
811
- def compile_alias(tree, name, constant); end
812
-
813
- sig { params(tree: Tapioca::RBI::Tree, name: String, constant: Module).void }
814
- def compile_body(tree, name, constant); end
815
-
816
- sig { params(tree: Tapioca::RBI::Tree, name: String, constant: BasicObject).void }
817
- def compile_constant(tree, name, constant); end
818
-
819
- sig { params(tree: Tapioca::RBI::Tree, module_name: String, mod: Module, for_visibility: T::Array[Symbol]).void }
820
- def compile_directly_owned_methods(tree, module_name, mod, for_visibility = T.unsafe(nil)); end
821
-
822
- sig { params(tree: Tapioca::RBI::Tree, constant: Module).void }
823
- def compile_enums(tree, constant); end
824
-
825
- sig { params(tree: Tapioca::RBI::Tree, symbol_name: String, constant: Module, method: T.nilable(UnboundMethod), visibility: Tapioca::RBI::Visibility).void }
826
- def compile_method(tree, symbol_name, constant, method, visibility = T.unsafe(nil)); end
827
-
828
- sig { params(tree: Tapioca::RBI::Tree, name: String, constant: Module).void }
829
- def compile_methods(tree, name, constant); end
830
-
831
- sig { params(tree: Tapioca::RBI::Tree, constant: Module).void }
832
- def compile_mixes_in_class_methods(tree, constant); end
833
-
834
- sig { params(tree: Tapioca::RBI::Tree, constant: Module).void }
835
- def compile_mixins(tree, constant); end
836
-
837
- sig { params(tree: Tapioca::RBI::Tree, name: String, constant: Module).void }
838
- def compile_module(tree, name, constant); end
839
-
840
- sig { params(tree: Tapioca::RBI::Tree, constant: Module).void }
841
- def compile_module_helpers(tree, constant); end
842
-
843
- sig { params(tree: Tapioca::RBI::Tree, name: String, value: BasicObject).void }
844
- def compile_object(tree, name, value); end
845
-
846
- sig { params(tree: Tapioca::RBI::Tree, constant: Module).void }
847
- def compile_props(tree, constant); end
848
-
849
- sig { params(signature: T.untyped, parameters: T::Array[[Symbol, String]]).returns(Tapioca::RBI::Sig) }
850
- def compile_signature(signature, parameters); end
851
-
852
- sig { params(tree: Tapioca::RBI::Tree, name: String, constant: Module).void }
853
- def compile_subconstants(tree, name, constant); end
854
-
855
- sig { params(constant: Class).returns(T.nilable(String)) }
856
- def compile_superclass(constant); end
857
-
858
- sig { params(tree: Tapioca::RBI::Tree, constant: Module).void }
859
- def compile_type_variable_declarations(tree, constant); end
860
-
861
- sig { params(tree: Tapioca::RBI::Tree, constant: Module).void }
862
- def compile_type_variables(tree, constant); end
863
-
864
- sig { params(constant: Module).returns(T::Array[Symbol]) }
865
- def constants_of(constant); end
866
-
867
- sig { params(constant: Module, strict: T::Boolean).returns(T::Boolean) }
868
- def defined_in_gem?(constant, strict: T.unsafe(nil)); end
869
-
870
- sig { params(symbols: T::Set[String]).returns(T::Set[String]) }
871
- def engine_symbols(symbols); end
872
-
873
- sig { params(tree: Tapioca::RBI::Tree, symbol: String).void }
874
- def generate_from_symbol(tree, symbol); end
875
-
876
- sig { params(constant: T.all(Module, T::Generic)).returns(String) }
877
- def generic_name_of(constant); end
878
-
879
- sig { params(constant: Module).returns(T::Array[String]) }
880
- def get_file_candidates(constant); end
881
-
882
- sig { params(constant: Module).returns(T::Array[Module]) }
883
- def inherited_ancestors_of(constant); end
884
-
885
- def initialize_method_for(constant); end
886
-
887
- sig { params(constant: Module).returns(T::Array[Module]) }
888
- def interesting_ancestors_of(constant); end
889
-
890
- sig { params(name: String).void }
891
- def mark_seen(name); end
892
-
893
- sig { params(method: UnboundMethod).returns(T::Boolean) }
894
- def method_in_gem?(method); end
895
-
896
- sig { params(mod: Module).returns(T::Hash[Symbol, T::Array[Symbol]]) }
897
- def method_names_by_visibility(mod); end
898
-
899
- sig { params(constant: Module).returns(T.nilable(String)) }
900
- def name_of(constant); end
901
-
902
- sig { params(constant: Module).returns(T.nilable(String)) }
903
- def name_of_proxy_target(constant); end
904
-
905
- sig { params(object: BasicObject).returns(Integer) }
906
- def object_id_of(object); end
907
-
908
- sig { params(constant: Module).returns(T.nilable(String)) }
909
- def qualified_name_of(constant); end
910
-
911
- sig { params(constant: Module).returns(T.nilable(String)) }
912
- def raw_name_of(constant); end
913
-
914
- sig { params(symbol: String, inherit: T::Boolean, namespace: Module).returns(BasicObject) }
915
- def resolve_constant(symbol, inherit: T.unsafe(nil), namespace: T.unsafe(nil)); end
916
-
917
- sig { params(sig_string: String).returns(String) }
918
- def sanitize_signature_types(sig_string); end
919
-
920
- sig { params(name: String).returns(T::Boolean) }
921
- def seen?(name); end
922
-
923
- sig { params(method: T.any(Method, UnboundMethod)).returns(T.untyped) }
924
- def signature_of(method); end
925
-
926
- sig { params(constant: Module).returns(Class) }
927
- def singleton_class_of(constant); end
928
-
929
- sig { params(constant: Module, method_name: String).returns(T::Boolean) }
930
- def struct_method?(constant, method_name); end
931
-
932
- sig { params(constant: Class).returns(T.nilable(Class)) }
933
- def superclass_of(constant); end
934
-
935
- sig { params(symbol_name: String).returns(T::Boolean) }
936
- def symbol_ignored?(symbol_name); end
937
-
938
- sig { returns(T::Set[String]) }
939
- def symbols; end
940
-
941
- sig { params(constant: T::Types::Base).returns(String) }
942
- def type_of(constant); end
943
-
944
- sig { params(name: String).returns(T::Boolean) }
945
- def valid_method_name?(name); end
946
- end
947
-
948
- Tapioca::Compilers::SymbolTable::SymbolGenerator::IGNORED_SYMBOLS = T.let(T.unsafe(nil), Array)
949
- Tapioca::Compilers::SymbolTable::SymbolGenerator::SPECIAL_METHOD_NAMES = T.let(T.unsafe(nil), Array)
950
- Tapioca::Compilers::SymbolTable::SymbolGenerator::TYPE_PARAMETER_MATCHER = T.let(T.unsafe(nil), Regexp)
951
-
952
- module Tapioca::Compilers::SymbolTable::SymbolLoader
953
- class << self
954
- def ignore_symbol?(symbol); end
955
-
956
- sig { params(paths: T::Array[Pathname]).returns(T::Set[String]) }
957
- def list_from_paths(paths); end
958
-
959
- private
960
-
961
- def ignored_symbols; end
962
-
963
- sig { params(paths: T::Array[String]).returns(T::Set[String]) }
964
- def load_symbols(paths); end
965
-
966
- def symbol_table_json_from(input, table_type: T.unsafe(nil)); end
967
- end
968
- end
969
-
970
- class Tapioca::Compilers::SymbolTable::SymbolLoader::SymbolTableParser
971
- class << self
972
- def parse(object, parents = T.unsafe(nil)); end
973
- end
974
- end
975
-
976
- class Tapioca::Compilers::SymbolTableCompiler
977
- sig { params(gem: Tapioca::Gemfile::Gem, indent: Integer).returns(String) }
978
- def compile(gem, indent = T.unsafe(nil)); end
979
- end
980
-
981
- class Tapioca::Compilers::TodosCompiler
982
- sig { returns(String) }
983
- def compile; end
984
-
985
- private
986
-
987
- sig { returns(String) }
988
- def list_todos; end
989
- end
990
-
991
- class Tapioca::Config < ::T::Struct
992
- const :exclude, T::Array[String]
993
- const :generators, T::Array[String]
994
- const :outdir, String
995
- const :postrequire, String
996
- const :prerequire, T.nilable(String)
997
- const :todos_path, String
998
- const :typed_overrides, T::Hash[String, String]
999
-
1000
- sig { returns(Pathname) }
1001
- def outpath; end
1002
-
1003
- class << self
1004
- def inherited(s); end
1005
- end
1006
- end
1007
-
1008
- Tapioca::Config::DEFAULT_COMMAND = T.let(T.unsafe(nil), String)
1009
- Tapioca::Config::DEFAULT_DSLDIR = T.let(T.unsafe(nil), String)
1010
- Tapioca::Config::DEFAULT_GEMDIR = T.let(T.unsafe(nil), String)
1011
- Tapioca::Config::DEFAULT_OVERRIDES = T.let(T.unsafe(nil), Hash)
1012
- Tapioca::Config::DEFAULT_POSTREQUIRE = T.let(T.unsafe(nil), String)
1013
- Tapioca::Config::DEFAULT_RBIDIR = T.let(T.unsafe(nil), String)
1014
- Tapioca::Config::DEFAULT_TODOSPATH = T.let(T.unsafe(nil), String)
1015
- Tapioca::Config::SORBET_CONFIG = T.let(T.unsafe(nil), String)
1016
- Tapioca::Config::SORBET_PATH = T.let(T.unsafe(nil), String)
1017
- Tapioca::Config::TAPIOCA_CONFIG = T.let(T.unsafe(nil), String)
1018
- Tapioca::Config::TAPIOCA_PATH = T.let(T.unsafe(nil), String)
1019
-
1020
- class Tapioca::ConfigBuilder
1021
- class << self
1022
- sig { params(command: Symbol, options: T::Hash[String, T.untyped]).returns(Tapioca::Config) }
1023
- def from_options(command, options); end
1024
-
1025
- private
1026
-
1027
- sig { returns(T::Hash[String, T.untyped]) }
1028
- def config_options; end
1029
-
1030
- sig { params(command: Symbol).returns(T::Hash[String, T.untyped]) }
1031
- def default_options(command); end
1032
-
1033
- sig { params(options: T::Hash[String, T.untyped]).returns(T::Hash[String, T.untyped]) }
1034
- def merge_options(*options); end
1035
- end
1036
- end
1037
-
1038
- Tapioca::ConfigBuilder::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
1039
-
1040
- module Tapioca::ConstantLocator
1041
- private
1042
-
1043
- def files_for(klass); end
1044
-
1045
- class << self
1046
- def files_for(klass); end
1047
- end
1048
- end
1049
-
1050
- Tapioca::ConstantLocator::NAME = T.let(T.unsafe(nil), UnboundMethod)
1051
- class Tapioca::Error < ::StandardError; end
1052
-
1053
- class Tapioca::Gemfile
1054
- sig { void }
1055
- def initialize; end
1056
-
1057
- sig { returns(Bundler::Definition) }
1058
- def definition; end
1059
-
1060
- sig { returns(T::Array[Tapioca::Gemfile::Gem]) }
1061
- def dependencies; end
1062
-
1063
- sig { params(gem_name: String).returns(T.nilable(Tapioca::Gemfile::Gem)) }
1064
- def gem(gem_name); end
1065
-
1066
- sig { returns(T::Array[String]) }
1067
- def missing_specs; end
1068
-
1069
- sig { void }
1070
- def require; end
1071
-
1072
- private
1073
-
1074
- sig { returns(String) }
1075
- def dir; end
1076
-
1077
- sig { returns(File) }
1078
- def gemfile; end
1079
-
1080
- sig { returns(T::Array[Symbol]) }
1081
- def groups; end
1082
-
1083
- sig { returns([T::Array[Tapioca::Gemfile::Gem], T::Array[String]]) }
1084
- def load_dependencies; end
1085
-
1086
- def lockfile; end
1087
-
1088
- sig { returns(Bundler::Runtime) }
1089
- def runtime; end
1090
- end
1091
-
1092
- class Tapioca::Gemfile::Gem
1093
- sig { params(spec: T.any(Gem::Specification, T.all(Bundler::RemoteSpecification, Bundler::StubSpecification))).void }
1094
- def initialize(spec); end
1095
-
1096
- sig { params(path: String).returns(T::Boolean) }
1097
- def contains_path?(path); end
1098
-
1099
- sig { returns(T::Array[Pathname]) }
1100
- def files; end
1101
-
1102
- sig { returns(String) }
1103
- def full_gem_path; end
1104
-
1105
- sig { params(gemfile_dir: String).returns(T::Boolean) }
1106
- def ignore?(gemfile_dir); end
1107
-
1108
- sig { returns(String) }
1109
- def name; end
1110
-
1111
- sig { returns(String) }
1112
- def rbi_file_name; end
1113
-
1114
- def version; end
1115
-
1116
- private
1117
-
1118
- sig { returns(T::Boolean) }
1119
- def default_gem?; end
1120
-
1121
- sig { returns(T::Boolean) }
1122
- def gem_ignored?; end
1123
-
1124
- sig { params(gemfile_dir: String).returns(T::Boolean) }
1125
- def gem_in_app_dir?(gemfile_dir); end
1126
-
1127
- sig { returns(T::Boolean) }
1128
- def gem_in_bundle_path?; end
1129
-
1130
- sig { params(path: String).returns(T::Boolean) }
1131
- def has_parent_gemspec?(path); end
1132
-
1133
- sig { returns(Pathname) }
1134
- def ruby_lib_dir; end
1135
-
1136
- sig { params(path: T.any(Pathname, String)).returns(String) }
1137
- def to_realpath(path); end
1138
-
1139
- sig { returns(String) }
1140
- def version_string; end
1141
- end
1142
-
1143
- Tapioca::Gemfile::Gem::IGNORED_GEMS = T.let(T.unsafe(nil), Array)
1144
- Tapioca::Gemfile::Spec = T.type_alias { T.any(Gem::Specification, T.all(Bundler::RemoteSpecification, Bundler::StubSpecification)) }
1145
-
1146
- class Tapioca::Generator < ::Thor::Shell::Color
1147
- sig { params(config: Tapioca::Config).void }
1148
- def initialize(config); end
1149
-
1150
- sig { params(requested_constants: T::Array[String], should_verify: T::Boolean, quiet: T::Boolean).void }
1151
- def build_dsl(requested_constants, should_verify: T.unsafe(nil), quiet: T.unsafe(nil)); end
1152
-
1153
- sig { params(gem_names: T::Array[String]).void }
1154
- def build_gem_rbis(gem_names); end
1155
-
1156
- sig { void }
1157
- def build_requires; end
1158
-
1159
- sig { void }
1160
- def build_todos; end
1161
-
1162
- sig { returns(Tapioca::Config) }
1163
- def config; end
1164
-
1165
- sig { void }
1166
- def sync_rbis_with_gemfile; end
1167
-
1168
- private
1169
-
1170
- sig { params(filename: Pathname).void }
1171
- def add(filename); end
1172
-
1173
- sig { returns(T::Array[String]) }
1174
- def added_rbis; end
1175
-
1176
- sig { params(cause: Symbol, files: T::Array[String]).returns(String) }
1177
- def build_error_for_files(cause, files); end
1178
-
1179
- sig { returns(Tapioca::Gemfile) }
1180
- def bundle; end
1181
-
1182
- sig { params(constant_name: String, contents: String, outpath: Pathname, quiet: T::Boolean).returns(T.nilable(Pathname)) }
1183
- def compile_dsl_rbi(constant_name, contents, outpath: T.unsafe(nil), quiet: T.unsafe(nil)); end
1184
-
1185
- sig { params(gem: Tapioca::Gemfile::Gem).void }
1186
- def compile_gem_rbi(gem); end
1187
-
1188
- sig { returns(Tapioca::Compilers::SymbolTableCompiler) }
1189
- def compiler; end
1190
-
1191
- sig { params(constant_names: T::Array[String]).returns(T::Array[Module]) }
1192
- def constantize(constant_names); end
1193
-
1194
- sig { params(constant_name: String).returns(Pathname) }
1195
- def dsl_rbi_filename(constant_name); end
1196
-
1197
- sig { params(gem_name: String).returns(Pathname) }
1198
- def existing_rbi(gem_name); end
1199
-
1200
- sig { params(requested_constants: T::Array[String], path: Pathname).returns(T::Set[Pathname]) }
1201
- def existing_rbi_filenames(requested_constants, path: T.unsafe(nil)); end
1202
-
1203
- sig { returns(T::Hash[String, String]) }
1204
- def existing_rbis; end
1205
-
1206
- sig { params(gem_name: String).returns(Pathname) }
1207
- def expected_rbi(gem_name); end
1208
-
1209
- sig { returns(T::Hash[String, String]) }
1210
- def expected_rbis; end
1211
-
1212
- sig { params(file: String, error: LoadError).void }
1213
- def explain_failed_require(file, error); end
1214
-
1215
- sig { params(gem_name: String).returns(T::Boolean) }
1216
- def gem_rbi_exists?(gem_name); end
1217
-
1218
- sig { params(gem_name: String, version: String).returns(Pathname) }
1219
- def gem_rbi_filename(gem_name, version); end
1220
-
1221
- sig { params(gem_names: T::Array[String]).returns(T::Array[Tapioca::Gemfile::Gem]) }
1222
- def gems_to_generate(gem_names); end
1223
-
1224
- sig { params(eager_load: T::Boolean).void }
1225
- def load_application(eager_load:); end
1226
-
1227
- sig { void }
1228
- def load_dsl_generators; end
1229
-
1230
- sig { returns(Tapioca::Loader) }
1231
- def loader; end
1232
-
1233
- sig { params(old_filename: Pathname, new_filename: Pathname).void }
1234
- def move(old_filename, new_filename); end
1235
-
1236
- sig { void }
1237
- def perform_additions; end
1238
-
1239
- sig { params(dir: Pathname).void }
1240
- def perform_dsl_verification(dir); end
1241
-
1242
- sig { void }
1243
- def perform_removals; end
1244
-
1245
- sig { params(files: T::Set[Pathname]).void }
1246
- def purge_stale_dsl_rbi_files(files); end
1247
-
1248
- sig { params(path: Pathname).returns(T::Array[Pathname]) }
1249
- def rbi_files_in(path); end
1250
-
1251
- sig { params(command: String, reason: T.nilable(String), strictness: T.nilable(String)).returns(String) }
1252
- def rbi_header(command, reason: T.unsafe(nil), strictness: T.unsafe(nil)); end
1253
-
1254
- sig { params(filename: Pathname).void }
1255
- def remove(filename); end
1256
-
1257
- sig { returns(T::Array[String]) }
1258
- def removed_rbis; end
1259
-
1260
- sig { void }
1261
- def require_gem_file; end
1262
-
1263
- sig { params(message: String, color: T.any(Symbol, T::Array[Symbol])).void }
1264
- def say_error(message = T.unsafe(nil), *color); end
1265
-
1266
- sig { params(tmp_dir: Pathname).returns(T::Hash[String, Symbol]) }
1267
- def verify_dsl_rbi(tmp_dir:); end
1268
- end
1269
-
1270
- Tapioca::Generator::EMPTY_RBI_COMMENT = T.let(T.unsafe(nil), String)
1271
-
1272
- module Tapioca::GenericTypeRegistry
1273
- class << self
1274
- sig { params(constant: Module).returns(T.nilable(T::Hash[Integer, String])) }
1275
- def lookup_type_variables(constant); end
1276
-
1277
- sig { params(constant: T.untyped, types: T.untyped).returns(Module) }
1278
- def register_type(constant, types); end
1279
-
1280
- sig { params(constant: T.untyped, type_member: T::Types::TypeVariable, fixed: T.untyped, lower: T.untyped, upper: T.untyped).void }
1281
- def register_type_member(constant, type_member, fixed, lower, upper); end
1282
-
1283
- sig { params(constant: T.untyped, type_template: T::Types::TypeVariable, fixed: T.untyped, lower: T.untyped, upper: T.untyped).void }
1284
- def register_type_template(constant, type_template, fixed, lower, upper); end
1285
-
1286
- private
1287
-
1288
- sig { params(constant: Module, name: String).returns(Module) }
1289
- def create_generic_type(constant, name); end
1290
-
1291
- sig { params(constant: Class).returns(Class) }
1292
- def create_safe_subclass(constant); end
1293
-
1294
- sig { params(constant: Module).returns(T::Hash[Integer, String]) }
1295
- def lookup_or_initialize_type_variables(constant); end
1296
-
1297
- sig { params(constant: Module).returns(T.nilable(String)) }
1298
- def name_of(constant); end
1299
-
1300
- sig { params(object: BasicObject).returns(Integer) }
1301
- def object_id_of(object); end
1302
-
1303
- sig { params(constant: T.untyped, type_variable_type: T.enum([:type_member, :type_template]), type_variable: T::Types::TypeVariable, fixed: T.untyped, lower: T.untyped, upper: T.untyped).void }
1304
- def register_type_variable(constant, type_variable_type, type_variable, fixed, lower, upper); end
1305
-
1306
- sig { params(type_variable_type: Symbol, variance: Symbol, fixed: T.untyped, lower: T.untyped, upper: T.untyped).returns(String) }
1307
- def serialize_type_variable(type_variable_type, variance, fixed, lower, upper); end
1308
- end
1309
- end
1310
-
1311
- class Tapioca::Loader
1312
- sig { params(gemfile: Tapioca::Gemfile).void }
1313
- def initialize(gemfile); end
1314
-
1315
- sig { params(initialize_file: T.nilable(String), require_file: T.nilable(String)).void }
1316
- def load_bundle(initialize_file, require_file); end
1317
-
1318
- sig { params(environment_load: T::Boolean, eager_load: T::Boolean).void }
1319
- def load_rails(environment_load: T.unsafe(nil), eager_load: T.unsafe(nil)); end
1320
-
1321
- private
1322
-
1323
- sig { void }
1324
- def eager_load_rails_app; end
1325
-
1326
- sig { returns(Tapioca::Gemfile) }
1327
- def gemfile; end
1328
-
1329
- sig { void }
1330
- def load_rails_engines; end
1331
-
1332
- sig { void }
1333
- def load_rake; end
1334
-
1335
- sig { returns(T::Array[T.untyped]) }
1336
- def rails_engines; end
1337
-
1338
- sig { void }
1339
- def require_bundle; end
1340
-
1341
- sig { params(file: T.nilable(String)).void }
1342
- def require_helper(file); end
1343
-
1344
- sig { params(path: String).void }
1345
- def safe_require(path); end
1346
-
1347
- sig { void }
1348
- def silence_deprecations; end
1349
- end
1350
-
1351
- module Tapioca::RBI; end
1352
-
1353
- class Tapioca::RBI::BlockParam < ::Tapioca::RBI::Param
1354
- sig { override.params(v: Tapioca::RBI::Printer).void }
1355
- def accept_printer(v); end
1356
- end
1357
-
1358
- class Tapioca::RBI::Class < ::Tapioca::RBI::Scope
1359
- sig { params(name: String, superclass_name: T.nilable(String)).void }
1360
- def initialize(name, superclass_name: T.unsafe(nil)); end
1361
-
1362
- sig { returns(String) }
1363
- def name; end
1364
-
1365
- def name=(_arg0); end
1366
-
1367
- sig { returns(T.nilable(String)) }
1368
- def superclass_name; end
1369
-
1370
- def superclass_name=(_arg0); end
1371
- end
1372
-
1373
- class Tapioca::RBI::Const < ::Tapioca::RBI::Node
1374
- sig { params(name: String, value: String).void }
1375
- def initialize(name, value); end
1376
-
1377
- sig { override.params(v: Tapioca::RBI::Printer).void }
1378
- def accept_printer(v); end
1379
-
1380
- sig { returns(String) }
1381
- def name; end
1382
-
1383
- def value; end
1384
- end
1385
-
1386
- class Tapioca::RBI::Extend < ::Tapioca::RBI::Mixin; end
1387
-
1388
- class Tapioca::RBI::Group < ::Tapioca::RBI::Tree
1389
- sig { params(kind: Tapioca::RBI::Group::Kind).void }
1390
- def initialize(kind); end
1391
-
1392
- sig { override.params(v: Tapioca::RBI::Printer).void }
1393
- def accept_printer(v); end
1394
-
1395
- sig { returns(Tapioca::RBI::Group::Kind) }
1396
- def kind; end
1397
- end
1398
-
1399
- class Tapioca::RBI::Group::Kind < ::T::Enum
1400
- enums do
1401
- Mixins = new
1402
- Helpers = new
1403
- TypeMembers = new
1404
- MixesInClassMethods = new
1405
- TStructFields = new
1406
- TEnums = new
1407
- Inits = new
1408
- Methods = new
1409
- Consts = new
1410
- end
1411
- end
1412
-
1413
- class Tapioca::RBI::Helper < ::Tapioca::RBI::Node
1414
- sig { params(name: String).void }
1415
- def initialize(name); end
1416
-
1417
- sig { override.params(v: Tapioca::RBI::Printer).void }
1418
- def accept_printer(v); end
1419
-
1420
- sig { returns(String) }
1421
- def name; end
1422
- end
1423
-
1424
- class Tapioca::RBI::Include < ::Tapioca::RBI::Mixin; end
1425
-
1426
- class Tapioca::RBI::KwOptParam < ::Tapioca::RBI::OptParam
1427
- sig { override.params(v: Tapioca::RBI::Printer).void }
1428
- def accept_printer(v); end
1429
- end
1430
-
1431
- class Tapioca::RBI::KwParam < ::Tapioca::RBI::Param
1432
- sig { override.params(v: Tapioca::RBI::Printer).void }
1433
- def accept_printer(v); end
1434
- end
1435
-
1436
- class Tapioca::RBI::KwRestParam < ::Tapioca::RBI::Param
1437
- sig { override.params(v: Tapioca::RBI::Printer).void }
1438
- def accept_printer(v); end
1439
- end
1440
-
1441
- class Tapioca::RBI::Method < ::Tapioca::RBI::Node
1442
- sig { params(name: String, params: T::Array[Tapioca::RBI::Param], is_singleton: T::Boolean, visibility: Tapioca::RBI::Visibility, sigs: T::Array[Tapioca::RBI::Sig]).void }
1443
- def initialize(name, params: T.unsafe(nil), is_singleton: T.unsafe(nil), visibility: T.unsafe(nil), sigs: T.unsafe(nil)); end
1444
-
1445
- sig { params(param: Tapioca::RBI::Param).void }
1446
- def <<(param); end
1447
-
1448
- sig { override.params(v: Tapioca::RBI::Printer).void }
1449
- def accept_printer(v); end
1450
-
1451
- sig { returns(T::Boolean) }
1452
- def is_singleton; end
1453
-
1454
- def is_singleton=(_arg0); end
1455
-
1456
- sig { returns(String) }
1457
- def name; end
1458
-
1459
- def name=(_arg0); end
1460
-
1461
- sig { override.returns(T::Boolean) }
1462
- def oneline?; end
1463
-
1464
- sig { returns(T::Array[Tapioca::RBI::Param]) }
1465
- def params; end
1466
-
1467
- sig { returns(T::Array[Tapioca::RBI::Sig]) }
1468
- def sigs; end
1469
-
1470
- def sigs=(_arg0); end
1471
-
1472
- sig { returns(Tapioca::RBI::Visibility) }
1473
- def visibility; end
1474
-
1475
- def visibility=(_arg0); end
1476
- end
1477
-
1478
- class Tapioca::RBI::MixesInClassMethods < ::Tapioca::RBI::Mixin; end
1479
-
1480
- class Tapioca::RBI::Mixin < ::Tapioca::RBI::Node
1481
- abstract!
1482
-
1483
- sig { params(name: String).void }
1484
- def initialize(name); end
1485
-
1486
- sig { override.params(v: Tapioca::RBI::Printer).void }
1487
- def accept_printer(v); end
1488
-
1489
- sig { returns(String) }
1490
- def name; end
1491
- end
1492
-
1493
- class Tapioca::RBI::Module < ::Tapioca::RBI::Scope
1494
- sig { params(name: String).void }
1495
- def initialize(name); end
1496
-
1497
- sig { returns(String) }
1498
- def name; end
1499
-
1500
- def name=(_arg0); end
1501
- end
1502
-
1503
- class Tapioca::RBI::Node
1504
- abstract!
1505
-
1506
- sig { void }
1507
- def initialize; end
1508
-
1509
- sig { abstract.params(v: Tapioca::RBI::Printer).void }
1510
- def accept_printer(v); end
1511
-
1512
- sig { void }
1513
- def detach; end
1514
-
1515
- sig { returns(Tapioca::RBI::Group::Kind) }
1516
- def group_kind; end
1517
-
1518
- sig { returns(T::Boolean) }
1519
- def oneline?; end
1520
-
1521
- sig { returns(T.nilable(Tapioca::RBI::Tree)) }
1522
- def parent_tree; end
1523
-
1524
- def parent_tree=(_arg0); end
1525
-
1526
- sig { params(out: T.any(IO, StringIO), indent: Integer).void }
1527
- def print(out: T.unsafe(nil), indent: T.unsafe(nil)); end
1528
-
1529
- sig { params(indent: Integer).returns(String) }
1530
- def string(indent: T.unsafe(nil)); end
1531
- end
1532
-
1533
- class Tapioca::RBI::OptParam < ::Tapioca::RBI::Param
1534
- sig { params(name: String, value: String).void }
1535
- def initialize(name, value); end
1536
-
1537
- sig { override.params(v: Tapioca::RBI::Printer).void }
1538
- def accept_printer(v); end
1539
-
1540
- sig { returns(String) }
1541
- def value; end
1542
- end
1543
-
1544
- class Tapioca::RBI::Param < ::Tapioca::RBI::Node
1545
- sig { params(name: String).void }
1546
- def initialize(name); end
1547
-
1548
- sig { override.params(v: Tapioca::RBI::Printer).void }
1549
- def accept_printer(v); end
1550
-
1551
- sig { returns(String) }
1552
- def name; end
1553
- end
1554
-
1555
- class Tapioca::RBI::Printer < ::Tapioca::RBI::Visitor
1556
- sig { params(out: T.any(IO, StringIO), indent: Integer).void }
1557
- def initialize(out: T.unsafe(nil), indent: T.unsafe(nil)); end
1558
-
1559
- sig { void }
1560
- def dedent; end
1561
-
1562
- sig { returns(T::Boolean) }
1563
- def in_visibility_group; end
1564
-
1565
- def in_visibility_group=(_arg0); end
1566
-
1567
- sig { void }
1568
- def indent; end
1569
-
1570
- sig { returns(T.nilable(Tapioca::RBI::Node)) }
1571
- def previous_node; end
1572
-
1573
- sig { params(string: String).void }
1574
- def print(string); end
1575
-
1576
- sig { params(string: String).void }
1577
- def printl(string); end
1578
-
1579
- sig { params(string: T.nilable(String)).void }
1580
- def printn(string = T.unsafe(nil)); end
1581
-
1582
- sig { params(string: T.nilable(String)).void }
1583
- def printt(string = T.unsafe(nil)); end
1584
-
1585
- sig { override.params(node: T.nilable(Tapioca::RBI::Node)).void }
1586
- def visit(node); end
1587
-
1588
- sig { override.params(nodes: T::Array[Tapioca::RBI::Node]).void }
1589
- def visit_all(nodes); end
1590
- end
1591
-
1592
- class Tapioca::RBI::RestParam < ::Tapioca::RBI::Param
1593
- sig { override.params(v: Tapioca::RBI::Printer).void }
1594
- def accept_printer(v); end
1595
- end
1596
-
1597
- module Tapioca::RBI::Rewriters; end
1598
-
1599
- class Tapioca::RBI::Rewriters::GroupNodes < ::Tapioca::RBI::Visitor
1600
- sig { override.params(node: T.nilable(Tapioca::RBI::Node)).void }
1601
- def visit(node); end
1602
- end
1603
-
1604
- class Tapioca::RBI::Rewriters::NestNonPublicMethods < ::Tapioca::RBI::Visitor
1605
- sig { override.params(node: T.nilable(Tapioca::RBI::Node)).void }
1606
- def visit(node); end
1607
- end
1608
-
1609
- class Tapioca::RBI::Rewriters::NestSingletonMethods < ::Tapioca::RBI::Visitor
1610
- sig { override.params(node: T.nilable(Tapioca::RBI::Node)).void }
1611
- def visit(node); end
1612
- end
1613
-
1614
- class Tapioca::RBI::Rewriters::SortNodes < ::Tapioca::RBI::Visitor
1615
- sig { override.params(node: T.nilable(Tapioca::RBI::Node)).void }
1616
- def visit(node); end
1617
-
1618
- private
1619
-
1620
- sig { params(kind: Tapioca::RBI::Group::Kind).returns(Integer) }
1621
- def kind_rank(kind); end
1622
-
1623
- sig { params(node: Tapioca::RBI::Node).returns(T.nilable(String)) }
1624
- def node_name(node); end
1625
-
1626
- sig { params(node: Tapioca::RBI::Node).returns(Integer) }
1627
- def node_rank(node); end
1628
- end
1629
-
1630
- class Tapioca::RBI::Scope < ::Tapioca::RBI::Tree
1631
- abstract!
1632
-
1633
- def initialize(*args, &blk); end
1634
-
1635
- sig { override.params(v: Tapioca::RBI::Printer).void }
1636
- def accept_printer(v); end
1637
- end
1638
-
1639
- class Tapioca::RBI::Sig < ::Tapioca::RBI::Node
1640
- sig { params(params: T::Array[Tapioca::RBI::SigParam], return_type: T.nilable(String), is_abstract: T::Boolean, is_override: T::Boolean, is_overridable: T::Boolean, type_params: T::Array[String]).void }
1641
- def initialize(params: T.unsafe(nil), return_type: T.unsafe(nil), is_abstract: T.unsafe(nil), is_override: T.unsafe(nil), is_overridable: T.unsafe(nil), type_params: T.unsafe(nil)); end
1642
-
1643
- sig { params(param: Tapioca::RBI::SigParam).void }
1644
- def <<(param); end
1645
-
1646
- sig { override.params(v: Tapioca::RBI::Printer).void }
1647
- def accept_printer(v); end
1648
-
1649
- sig { returns(T::Boolean) }
1650
- def is_abstract; end
1651
-
1652
- def is_abstract=(_arg0); end
1653
- def is_overridable; end
1654
- def is_overridable=(_arg0); end
1655
- def is_override; end
1656
- def is_override=(_arg0); end
1657
-
1658
- sig { returns(T::Array[Tapioca::RBI::SigParam]) }
1659
- def params; end
1660
-
1661
- sig { returns(T.nilable(String)) }
1662
- def return_type; end
1663
-
1664
- def return_type=(_arg0); end
1665
-
1666
- sig { returns(T::Array[String]) }
1667
- def type_params; end
1668
- end
1669
-
1670
- class Tapioca::RBI::SigParam < ::Tapioca::RBI::Node
1671
- sig { params(name: String, type: String).void }
1672
- def initialize(name, type); end
1673
-
1674
- sig { override.params(v: Tapioca::RBI::Printer).void }
1675
- def accept_printer(v); end
1676
-
1677
- sig { returns(String) }
1678
- def name; end
1679
-
1680
- def type; end
1681
- end
1682
-
1683
- class Tapioca::RBI::SingletonClass < ::Tapioca::RBI::Scope
1684
- sig { void }
1685
- def initialize; end
1686
- end
1687
-
1688
- class Tapioca::RBI::TEnum < ::Tapioca::RBI::Class
1689
- sig { params(name: String).void }
1690
- def initialize(name); end
1691
- end
1692
-
1693
- class Tapioca::RBI::TEnumBlock < ::Tapioca::RBI::Node
1694
- sig { params(names: T::Array[String]).void }
1695
- def initialize(names = T.unsafe(nil)); end
1696
-
1697
- sig { override.params(v: Tapioca::RBI::Printer).void }
1698
- def accept_printer(v); end
1699
-
1700
- sig { returns(T::Boolean) }
1701
- def empty?; end
1702
-
1703
- sig { returns(T::Array[String]) }
1704
- def names; end
1705
- end
1706
-
1707
- class Tapioca::RBI::TStruct < ::Tapioca::RBI::Class
1708
- sig { params(name: String).void }
1709
- def initialize(name); end
1710
- end
1711
-
1712
- class Tapioca::RBI::TStructConst < ::Tapioca::RBI::TStructField; end
1713
-
1714
- class Tapioca::RBI::TStructField < ::Tapioca::RBI::Node
1715
- abstract!
1716
-
1717
- sig { params(name: String, type: String, default: T.nilable(String)).void }
1718
- def initialize(name, type, default: T.unsafe(nil)); end
1719
-
1720
- sig { override.params(v: Tapioca::RBI::Printer).void }
1721
- def accept_printer(v); end
1722
-
1723
- sig { returns(T.nilable(String)) }
1724
- def default; end
1725
-
1726
- def default=(_arg0); end
1727
-
1728
- sig { returns(String) }
1729
- def name; end
1730
-
1731
- def name=(_arg0); end
1732
- def type; end
1733
- def type=(_arg0); end
1734
- end
1735
-
1736
- class Tapioca::RBI::TStructProp < ::Tapioca::RBI::TStructField; end
1737
-
1738
- class Tapioca::RBI::Tree < ::Tapioca::RBI::Node
1739
- sig { void }
1740
- def initialize; end
1741
-
1742
- sig { params(node: Tapioca::RBI::Node).void }
1743
- def <<(node); end
1744
-
1745
- sig { override.params(v: Tapioca::RBI::Printer).void }
1746
- def accept_printer(v); end
1747
-
1748
- sig { returns(T::Boolean) }
1749
- def empty?; end
1750
-
1751
- sig { void }
1752
- def group_nodes!; end
1753
-
1754
- sig { void }
1755
- def nest_non_public_methods!; end
1756
-
1757
- sig { void }
1758
- def nest_singleton_methods!; end
1759
-
1760
- sig { returns(T::Array[Tapioca::RBI::Node]) }
1761
- def nodes; end
1762
-
1763
- sig { override.returns(T::Boolean) }
1764
- def oneline?; end
1765
-
1766
- sig { void }
1767
- def sort_nodes!; end
1768
- end
1769
-
1770
- class Tapioca::RBI::TypeMember < ::Tapioca::RBI::Node
1771
- sig { params(name: String, value: String).void }
1772
- def initialize(name, value); end
1773
-
1774
- sig { override.params(v: Tapioca::RBI::Printer).void }
1775
- def accept_printer(v); end
1776
-
1777
- sig { returns(String) }
1778
- def name; end
1779
-
1780
- def value; end
1781
- end
1782
-
1783
- class Tapioca::RBI::Visibility < ::Tapioca::RBI::Node
1784
- abstract!
1785
-
1786
- sig { params(visibility: Symbol).void }
1787
- def initialize(visibility); end
1788
-
1789
- sig { override.params(v: Tapioca::RBI::Printer).void }
1790
- def accept_printer(v); end
1791
-
1792
- sig { returns(T::Boolean) }
1793
- def public?; end
1794
-
1795
- sig { returns(Symbol) }
1796
- def visibility; end
1797
- end
1798
-
1799
- Tapioca::RBI::Visibility::Private = T.let(T.unsafe(nil), Tapioca::RBI::Visibility)
1800
- Tapioca::RBI::Visibility::Protected = T.let(T.unsafe(nil), Tapioca::RBI::Visibility)
1801
- Tapioca::RBI::Visibility::Public = T.let(T.unsafe(nil), Tapioca::RBI::Visibility)
1802
-
1803
- class Tapioca::RBI::VisibilityGroup < ::Tapioca::RBI::Tree
1804
- sig { params(visibility: Tapioca::RBI::Visibility).void }
1805
- def initialize(visibility); end
1806
-
1807
- sig { override.params(v: Tapioca::RBI::Printer).void }
1808
- def accept_printer(v); end
1809
-
1810
- sig { returns(Tapioca::RBI::Visibility) }
1811
- def visibility; end
1812
- end
1813
-
1814
- class Tapioca::RBI::Visitor
1815
- abstract!
1816
-
1817
- def initialize(*args, &blk); end
1818
-
1819
- sig { abstract.params(node: T.nilable(Tapioca::RBI::Node)).void }
1820
- def visit(node); end
1821
-
1822
- sig { params(nodes: T::Array[Tapioca::RBI::Node]).void }
1823
- def visit_all(nodes); end
1824
- end
1825
-
1826
- Tapioca::VERSION = T.let(T.unsafe(nil), String)