sorbet-schema 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. checksums.yaml +7 -0
  2. data/.ruby-version +1 -0
  3. data/.standard.yml +6 -0
  4. data/.tool-versions +1 -0
  5. data/CHANGELOG.md +24 -0
  6. data/CODE_OF_CONDUCT.md +84 -0
  7. data/Gemfile +25 -0
  8. data/Gemfile.lock +147 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +43 -0
  11. data/Rakefile +22 -0
  12. data/lib/sorbet-schema/hash_transformer.rb +22 -0
  13. data/lib/sorbet-schema/struct_ext.rb +37 -0
  14. data/lib/sorbet-schema/version.rb +5 -0
  15. data/lib/sorbet-schema.rb +27 -0
  16. data/lib/typed/coercion/coercer.rb +18 -0
  17. data/lib/typed/coercion/coercion_error.rb +7 -0
  18. data/lib/typed/coercion/coercion_not_supported_error.rb +7 -0
  19. data/lib/typed/coercion/float_coercer.rb +21 -0
  20. data/lib/typed/coercion/integer_coercer.rb +21 -0
  21. data/lib/typed/coercion/string_coercer.rb +19 -0
  22. data/lib/typed/coercion/struct_coercer.rb +26 -0
  23. data/lib/typed/coercion.rb +26 -0
  24. data/lib/typed/deserialize_error.rb +6 -0
  25. data/lib/typed/field.rb +28 -0
  26. data/lib/typed/hash_serializer.rb +21 -0
  27. data/lib/typed/json_serializer.rb +28 -0
  28. data/lib/typed/parse_error.rb +12 -0
  29. data/lib/typed/schema.rb +10 -0
  30. data/lib/typed/serializer.rb +61 -0
  31. data/lib/typed/validations/field_type_validator.rb +24 -0
  32. data/lib/typed/validations/field_validator.rb +15 -0
  33. data/lib/typed/validations/multiple_validation_error.rb +16 -0
  34. data/lib/typed/validations/required_field_error.rb +14 -0
  35. data/lib/typed/validations/type_mismatch_error.rb +14 -0
  36. data/lib/typed/validations/validated_value.rb +12 -0
  37. data/lib/typed/validations/validation_error.rb +8 -0
  38. data/lib/typed/validations/validation_results.rb +29 -0
  39. data/lib/typed/validations.rb +8 -0
  40. data/sorbet/config +5 -0
  41. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  42. data/sorbet/rbi/gems/.gitattributes +1 -0
  43. data/sorbet/rbi/gems/ansi@1.5.0.rbi +687 -0
  44. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  45. data/sorbet/rbi/gems/builder@3.2.4.rbi +504 -0
  46. data/sorbet/rbi/gems/erubi@1.12.0.rbi +145 -0
  47. data/sorbet/rbi/gems/io-console@0.7.2.rbi +8 -0
  48. data/sorbet/rbi/gems/json@2.7.1.rbi +1553 -0
  49. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
  50. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +239 -0
  51. data/sorbet/rbi/gems/minitest-focus@1.4.0.rbi +91 -0
  52. data/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi +1010 -0
  53. data/sorbet/rbi/gems/minitest@5.22.2.rbi +2233 -0
  54. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  55. data/sorbet/rbi/gems/parallel@1.24.0.rbi +280 -0
  56. data/sorbet/rbi/gems/parser@3.3.0.5.rbi +5472 -0
  57. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
  58. data/sorbet/rbi/gems/prism@0.24.0.rbi +31040 -0
  59. data/sorbet/rbi/gems/psych@5.1.2.rbi +1731 -0
  60. data/sorbet/rbi/gems/racc@1.7.3.rbi +157 -0
  61. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
  62. data/sorbet/rbi/gems/rake@13.1.0.rbi +3027 -0
  63. data/sorbet/rbi/gems/rbi@0.1.9.rbi +3006 -0
  64. data/sorbet/rbi/gems/regexp_parser@2.9.0.rbi +3771 -0
  65. data/sorbet/rbi/gems/reline@0.4.3.rbi +8 -0
  66. data/sorbet/rbi/gems/rexml@3.2.6.rbi +4781 -0
  67. data/sorbet/rbi/gems/rubocop-ast@1.31.1.rbi +7014 -0
  68. data/sorbet/rbi/gems/rubocop-performance@1.20.2.rbi +8 -0
  69. data/sorbet/rbi/gems/rubocop-sorbet@0.7.7.rbi +8 -0
  70. data/sorbet/rbi/gems/rubocop@1.61.0.rbi +57499 -0
  71. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
  72. data/sorbet/rbi/gems/sorbet-result@1.1.0.rbi +519 -0
  73. data/sorbet/rbi/gems/sorbet-struct-comparable@1.3.0.rbi +34 -0
  74. data/sorbet/rbi/gems/spoom@1.2.4.rbi +3777 -0
  75. data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +8 -0
  76. data/sorbet/rbi/gems/standard-performance@1.3.1.rbi +80 -0
  77. data/sorbet/rbi/gems/standard-sorbet@0.0.2.rbi +52 -0
  78. data/sorbet/rbi/gems/standard@1.34.0.rbi +850 -0
  79. data/sorbet/rbi/gems/stringio@3.1.0.rbi +8 -0
  80. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +23133 -0
  81. data/sorbet/rbi/gems/tapioca@0.12.0.rbi +3499 -0
  82. data/sorbet/rbi/gems/thor@1.3.1.rbi +4351 -0
  83. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +65 -0
  84. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
  85. data/sorbet/rbi/gems/yard@0.9.36.rbi +18220 -0
  86. data/sorbet/rbi/gems/zeitwerk@2.6.13.rbi +1003 -0
  87. data/sorbet/tapioca/config.yml +4 -0
  88. data/sorbet/tapioca/require.rb +12 -0
  89. metadata +191 -0
@@ -0,0 +1,687 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `ansi` gem.
5
+ # Please instead update this file by running `bin/tapioca gem ansi`.
6
+
7
+ # ANSI namespace module contains all the ANSI related classes.
8
+ #
9
+ # source://ansi//lib/ansi/code.rb#1
10
+ module ANSI
11
+ extend ::ANSI::Constants
12
+ extend ::ANSI::Code
13
+ end
14
+
15
+ # Table of codes used throughout the system.
16
+ #
17
+ # @see http://en.wikipedia.org/wiki/ANSI_escape_code
18
+ #
19
+ # source://ansi//lib/ansi/chart.rb#6
20
+ ANSI::CHART = T.let(T.unsafe(nil), Hash)
21
+
22
+ # ANSI Codes
23
+ #
24
+ # Ansi::Code module makes it very easy to use ANSI codes.
25
+ # These are especially nice for beautifying shell output.
26
+ #
27
+ # Ansi::Code.red + "Hello" + Ansi::Code.blue + "World"
28
+ # => "\e[31mHello\e[34mWorld"
29
+ #
30
+ # Ansi::Code.red{ "Hello" } + Ansi::Code.blue{ "World" }
31
+ # => "\e[31mHello\e[0m\e[34mWorld\e[0m"
32
+ #
33
+ # IMPORTANT! Do not mixin Ansi::Code, instead use {ANSI::Mixin}.
34
+ #
35
+ # See {ANSI::CHART} for list of all supported codes.
36
+ #
37
+ # source://ansi//lib/ansi/code.rb#37
38
+ module ANSI::Code
39
+ include ::ANSI::Constants
40
+ extend ::ANSI::Constants
41
+ extend ::ANSI::Code
42
+
43
+ # Return ANSI code given a list of symbolic names.
44
+ #
45
+ # source://ansi//lib/ansi/code.rb#60
46
+ def [](*codes); end
47
+
48
+ # Apply ANSI codes to a first argument or block value.
49
+ #
50
+ # @example
51
+ # ansi("Valentine", :red, :on_white)
52
+ # @example
53
+ # ansi(:red, :on_white){ "Valentine" }
54
+ # @return [String] String wrapped ANSI code.
55
+ #
56
+ # source://ansi//lib/ansi/code.rb#176
57
+ def ansi(*codes); end
58
+
59
+ # Move cursor left a specified number of spaces.
60
+ #
61
+ # source://ansi//lib/ansi/code.rb#149
62
+ def back(spaces = T.unsafe(nil)); end
63
+
64
+ # source://ansi//lib/ansi/code.rb#70
65
+ def black_on_black(string = T.unsafe(nil)); end
66
+
67
+ # source://ansi//lib/ansi/code.rb#70
68
+ def black_on_blue(string = T.unsafe(nil)); end
69
+
70
+ # source://ansi//lib/ansi/code.rb#70
71
+ def black_on_cyan(string = T.unsafe(nil)); end
72
+
73
+ # source://ansi//lib/ansi/code.rb#70
74
+ def black_on_green(string = T.unsafe(nil)); end
75
+
76
+ # source://ansi//lib/ansi/code.rb#70
77
+ def black_on_magenta(string = T.unsafe(nil)); end
78
+
79
+ # source://ansi//lib/ansi/code.rb#70
80
+ def black_on_red(string = T.unsafe(nil)); end
81
+
82
+ # source://ansi//lib/ansi/code.rb#70
83
+ def black_on_white(string = T.unsafe(nil)); end
84
+
85
+ # source://ansi//lib/ansi/code.rb#70
86
+ def black_on_yellow(string = T.unsafe(nil)); end
87
+
88
+ # source://ansi//lib/ansi/code.rb#70
89
+ def blue_on_black(string = T.unsafe(nil)); end
90
+
91
+ # source://ansi//lib/ansi/code.rb#70
92
+ def blue_on_blue(string = T.unsafe(nil)); end
93
+
94
+ # source://ansi//lib/ansi/code.rb#70
95
+ def blue_on_cyan(string = T.unsafe(nil)); end
96
+
97
+ # source://ansi//lib/ansi/code.rb#70
98
+ def blue_on_green(string = T.unsafe(nil)); end
99
+
100
+ # source://ansi//lib/ansi/code.rb#70
101
+ def blue_on_magenta(string = T.unsafe(nil)); end
102
+
103
+ # source://ansi//lib/ansi/code.rb#70
104
+ def blue_on_red(string = T.unsafe(nil)); end
105
+
106
+ # source://ansi//lib/ansi/code.rb#70
107
+ def blue_on_white(string = T.unsafe(nil)); end
108
+
109
+ # source://ansi//lib/ansi/code.rb#70
110
+ def blue_on_yellow(string = T.unsafe(nil)); end
111
+
112
+ # Look-up code from chart, or if Integer simply pass through.
113
+ # Also resolves :random and :on_random.
114
+ #
115
+ # @param codes [Array<Symbol,Integer]
116
+ # Symbols or integers to convert to ANSI code.] odes [Array<Symbol,Integer]
117
+ # Symbols or integers to convert to ANSI code.
118
+ # @return [String] ANSI code
119
+ #
120
+ # source://ansi//lib/ansi/code.rb#241
121
+ def code(*codes); end
122
+
123
+ # Apply ANSI codes to a first argument or block value.
124
+ # Alternate term for #ansi.
125
+ #
126
+ # @deprecated May change in future definition.
127
+ # @example
128
+ # ansi("Valentine", :red, :on_white)
129
+ # @example
130
+ # ansi(:red, :on_white){ "Valentine" }
131
+ # @return [String] String wrapped ANSI code.
132
+ #
133
+ # source://ansi//lib/ansi/code.rb#176
134
+ def color(*codes); end
135
+
136
+ # source://ansi//lib/ansi/code.rb#70
137
+ def cyan_on_black(string = T.unsafe(nil)); end
138
+
139
+ # source://ansi//lib/ansi/code.rb#70
140
+ def cyan_on_blue(string = T.unsafe(nil)); end
141
+
142
+ # source://ansi//lib/ansi/code.rb#70
143
+ def cyan_on_cyan(string = T.unsafe(nil)); end
144
+
145
+ # source://ansi//lib/ansi/code.rb#70
146
+ def cyan_on_green(string = T.unsafe(nil)); end
147
+
148
+ # source://ansi//lib/ansi/code.rb#70
149
+ def cyan_on_magenta(string = T.unsafe(nil)); end
150
+
151
+ # source://ansi//lib/ansi/code.rb#70
152
+ def cyan_on_red(string = T.unsafe(nil)); end
153
+
154
+ # source://ansi//lib/ansi/code.rb#70
155
+ def cyan_on_white(string = T.unsafe(nil)); end
156
+
157
+ # source://ansi//lib/ansi/code.rb#70
158
+ def cyan_on_yellow(string = T.unsafe(nil)); end
159
+
160
+ # Like +move+ but returns to original position after
161
+ # yielding the block.
162
+ #
163
+ # source://ansi//lib/ansi/code.rb#120
164
+ def display(line, column = T.unsafe(nil)); end
165
+
166
+ # Move cursor down a specified number of spaces.
167
+ #
168
+ # source://ansi//lib/ansi/code.rb#144
169
+ def down(spaces = T.unsafe(nil)); end
170
+
171
+ # Move cursor right a specified number of spaces.
172
+ #
173
+ # source://ansi//lib/ansi/code.rb#155
174
+ def forward(spaces = T.unsafe(nil)); end
175
+
176
+ # source://ansi//lib/ansi/code.rb#70
177
+ def green_on_black(string = T.unsafe(nil)); end
178
+
179
+ # source://ansi//lib/ansi/code.rb#70
180
+ def green_on_blue(string = T.unsafe(nil)); end
181
+
182
+ # source://ansi//lib/ansi/code.rb#70
183
+ def green_on_cyan(string = T.unsafe(nil)); end
184
+
185
+ # source://ansi//lib/ansi/code.rb#70
186
+ def green_on_green(string = T.unsafe(nil)); end
187
+
188
+ # source://ansi//lib/ansi/code.rb#70
189
+ def green_on_magenta(string = T.unsafe(nil)); end
190
+
191
+ # source://ansi//lib/ansi/code.rb#70
192
+ def green_on_red(string = T.unsafe(nil)); end
193
+
194
+ # source://ansi//lib/ansi/code.rb#70
195
+ def green_on_white(string = T.unsafe(nil)); end
196
+
197
+ # source://ansi//lib/ansi/code.rb#70
198
+ def green_on_yellow(string = T.unsafe(nil)); end
199
+
200
+ # Creates an xterm-256 color code from a CSS-style color string.
201
+ #
202
+ # @param string [String] Hex string in CSS style, .e.g. `#5FA0C2`.
203
+ # @param background [Boolean] Use `true` for background color, otherwise foreground color.
204
+ #
205
+ # source://ansi//lib/ansi/code.rb#325
206
+ def hex_code(string, background = T.unsafe(nil)); end
207
+
208
+ # Move cursor left a specified number of spaces.
209
+ #
210
+ # source://ansi//lib/ansi/code.rb#149
211
+ def left(spaces = T.unsafe(nil)); end
212
+
213
+ # source://ansi//lib/ansi/code.rb#70
214
+ def magenta_on_black(string = T.unsafe(nil)); end
215
+
216
+ # source://ansi//lib/ansi/code.rb#70
217
+ def magenta_on_blue(string = T.unsafe(nil)); end
218
+
219
+ # source://ansi//lib/ansi/code.rb#70
220
+ def magenta_on_cyan(string = T.unsafe(nil)); end
221
+
222
+ # source://ansi//lib/ansi/code.rb#70
223
+ def magenta_on_green(string = T.unsafe(nil)); end
224
+
225
+ # source://ansi//lib/ansi/code.rb#70
226
+ def magenta_on_magenta(string = T.unsafe(nil)); end
227
+
228
+ # source://ansi//lib/ansi/code.rb#70
229
+ def magenta_on_red(string = T.unsafe(nil)); end
230
+
231
+ # source://ansi//lib/ansi/code.rb#70
232
+ def magenta_on_white(string = T.unsafe(nil)); end
233
+
234
+ # source://ansi//lib/ansi/code.rb#70
235
+ def magenta_on_yellow(string = T.unsafe(nil)); end
236
+
237
+ # Use method missing to dispatch ANSI code methods.
238
+ #
239
+ # source://ansi//lib/ansi/code.rb#89
240
+ def method_missing(code, *args, &blk); end
241
+
242
+ # Move cursor to line and column.
243
+ #
244
+ # source://ansi//lib/ansi/code.rb#134
245
+ def move(line, column = T.unsafe(nil)); end
246
+
247
+ # Provides a random primary ANSI color.
248
+ #
249
+ # @param background [Boolean] Use `true` for background color, otherwise foreground color.
250
+ # @return [Integer] ANSI color number
251
+ #
252
+ # source://ansi//lib/ansi/code.rb#274
253
+ def random(background = T.unsafe(nil)); end
254
+
255
+ # source://ansi//lib/ansi/code.rb#70
256
+ def red_on_black(string = T.unsafe(nil)); end
257
+
258
+ # source://ansi//lib/ansi/code.rb#70
259
+ def red_on_blue(string = T.unsafe(nil)); end
260
+
261
+ # source://ansi//lib/ansi/code.rb#70
262
+ def red_on_cyan(string = T.unsafe(nil)); end
263
+
264
+ # source://ansi//lib/ansi/code.rb#70
265
+ def red_on_green(string = T.unsafe(nil)); end
266
+
267
+ # source://ansi//lib/ansi/code.rb#70
268
+ def red_on_magenta(string = T.unsafe(nil)); end
269
+
270
+ # source://ansi//lib/ansi/code.rb#70
271
+ def red_on_red(string = T.unsafe(nil)); end
272
+
273
+ # source://ansi//lib/ansi/code.rb#70
274
+ def red_on_white(string = T.unsafe(nil)); end
275
+
276
+ # source://ansi//lib/ansi/code.rb#70
277
+ def red_on_yellow(string = T.unsafe(nil)); end
278
+
279
+ # Creates an XTerm 256 color escape code from RGB value(s). The
280
+ # RGB value can be three arguments red, green and blue respectively
281
+ # each from 0 to 255, or the RGB value can be a single CSS-style
282
+ # hex string.
283
+ #
284
+ # @param background [Boolean] Use `true` for background color, otherwise foreground color.
285
+ #
286
+ # source://ansi//lib/ansi/code.rb#286
287
+ def rgb(*args); end
288
+
289
+ # Given red, green and blue values between 0 and 255, this method
290
+ # returns the closest XTerm 256 color value.
291
+ #
292
+ # @raise [ArgumentError]
293
+ #
294
+ # source://ansi//lib/ansi/code.rb#335
295
+ def rgb_256(r, g, b); end
296
+
297
+ # Creates an xterm-256 color from rgb value.
298
+ #
299
+ # @param background [Boolean] Use `true` for background color, otherwise foreground color.
300
+ #
301
+ # source://ansi//lib/ansi/code.rb#313
302
+ def rgb_code(red, green, blue, background = T.unsafe(nil)); end
303
+
304
+ # Move cursor right a specified number of spaces.
305
+ #
306
+ # source://ansi//lib/ansi/code.rb#155
307
+ def right(spaces = T.unsafe(nil)); end
308
+
309
+ # Apply ANSI codes to a first argument or block value.
310
+ # Alias for #ansi method.
311
+ #
312
+ # @deprecated Here for backward compatibility.
313
+ # @example
314
+ # ansi("Valentine", :red, :on_white)
315
+ # @example
316
+ # ansi(:red, :on_white){ "Valentine" }
317
+ # @return [String] String wrapped ANSI code.
318
+ #
319
+ # source://ansi//lib/ansi/code.rb#176
320
+ def style(*codes); end
321
+
322
+ # Remove ANSI codes from string or block value.
323
+ #
324
+ # @param string [String] String from which to remove ANSI codes.
325
+ # @return [String] String wrapped ANSI code.
326
+ #
327
+ # source://ansi//lib/ansi/code.rb#201
328
+ def unansi(string = T.unsafe(nil)); end
329
+
330
+ # Remove ANSI codes from string or block value.
331
+ # Alias for unansi.
332
+ #
333
+ # @deprecated May change in future definition.
334
+ # @param string [String] String from which to remove ANSI codes.
335
+ # @return [String] String wrapped ANSI code.
336
+ #
337
+ # source://ansi//lib/ansi/code.rb#201
338
+ def uncolor(string = T.unsafe(nil)); end
339
+
340
+ # Remove ANSI codes from string or block value.
341
+ # Alias for #unansi method.
342
+ #
343
+ # @deprecated Here for backwards compatibility.
344
+ # @param string [String] String from which to remove ANSI codes.
345
+ # @return [String] String wrapped ANSI code.
346
+ #
347
+ # source://ansi//lib/ansi/code.rb#201
348
+ def unstyle(string = T.unsafe(nil)); end
349
+
350
+ # Move cursor up a specified number of spaces.
351
+ #
352
+ # source://ansi//lib/ansi/code.rb#139
353
+ def up(spaces = T.unsafe(nil)); end
354
+
355
+ # source://ansi//lib/ansi/code.rb#70
356
+ def white_on_black(string = T.unsafe(nil)); end
357
+
358
+ # source://ansi//lib/ansi/code.rb#70
359
+ def white_on_blue(string = T.unsafe(nil)); end
360
+
361
+ # source://ansi//lib/ansi/code.rb#70
362
+ def white_on_cyan(string = T.unsafe(nil)); end
363
+
364
+ # source://ansi//lib/ansi/code.rb#70
365
+ def white_on_green(string = T.unsafe(nil)); end
366
+
367
+ # source://ansi//lib/ansi/code.rb#70
368
+ def white_on_magenta(string = T.unsafe(nil)); end
369
+
370
+ # source://ansi//lib/ansi/code.rb#70
371
+ def white_on_red(string = T.unsafe(nil)); end
372
+
373
+ # source://ansi//lib/ansi/code.rb#70
374
+ def white_on_white(string = T.unsafe(nil)); end
375
+
376
+ # source://ansi//lib/ansi/code.rb#70
377
+ def white_on_yellow(string = T.unsafe(nil)); end
378
+
379
+ # source://ansi//lib/ansi/code.rb#70
380
+ def yellow_on_black(string = T.unsafe(nil)); end
381
+
382
+ # source://ansi//lib/ansi/code.rb#70
383
+ def yellow_on_blue(string = T.unsafe(nil)); end
384
+
385
+ # source://ansi//lib/ansi/code.rb#70
386
+ def yellow_on_cyan(string = T.unsafe(nil)); end
387
+
388
+ # source://ansi//lib/ansi/code.rb#70
389
+ def yellow_on_green(string = T.unsafe(nil)); end
390
+
391
+ # source://ansi//lib/ansi/code.rb#70
392
+ def yellow_on_magenta(string = T.unsafe(nil)); end
393
+
394
+ # source://ansi//lib/ansi/code.rb#70
395
+ def yellow_on_red(string = T.unsafe(nil)); end
396
+
397
+ # source://ansi//lib/ansi/code.rb#70
398
+ def yellow_on_white(string = T.unsafe(nil)); end
399
+
400
+ # source://ansi//lib/ansi/code.rb#70
401
+ def yellow_on_yellow(string = T.unsafe(nil)); end
402
+
403
+ class << self
404
+ # List of primary colors.
405
+ #
406
+ # source://ansi//lib/ansi/code.rb#55
407
+ def colors; end
408
+
409
+ # List of primary styles.
410
+ #
411
+ # source://ansi//lib/ansi/code.rb#50
412
+ def styles; end
413
+ end
414
+ end
415
+
416
+ # ANSI clear code.
417
+ #
418
+ # source://ansi//lib/ansi/code.rb#47
419
+ ANSI::Code::ENDCODE = T.let(T.unsafe(nil), String)
420
+
421
+ # Regexp for matching most ANSI codes.
422
+ #
423
+ # source://ansi//lib/ansi/code.rb#44
424
+ ANSI::Code::PATTERN = T.let(T.unsafe(nil), Regexp)
425
+
426
+ # Converts {CHART} and {SPECIAL_CHART} entries into constants.
427
+ # So for example, the CHART entry for :red becomes:
428
+ #
429
+ # ANSI::Constants::RED #=> "\e[31m"
430
+ #
431
+ # The ANSI Constants are include into ANSI::Code and can be included
432
+ # any where will they would be of use.
433
+ #
434
+ # source://ansi//lib/ansi/constants.rb#13
435
+ module ANSI::Constants; end
436
+
437
+ # source://ansi//lib/ansi/constants.rb#16
438
+ ANSI::Constants::BLACK = T.let(T.unsafe(nil), String)
439
+
440
+ # source://ansi//lib/ansi/constants.rb#16
441
+ ANSI::Constants::BLINK = T.let(T.unsafe(nil), String)
442
+
443
+ # source://ansi//lib/ansi/constants.rb#16
444
+ ANSI::Constants::BLINK_OFF = T.let(T.unsafe(nil), String)
445
+
446
+ # source://ansi//lib/ansi/constants.rb#16
447
+ ANSI::Constants::BLUE = T.let(T.unsafe(nil), String)
448
+
449
+ # source://ansi//lib/ansi/constants.rb#16
450
+ ANSI::Constants::BOLD = T.let(T.unsafe(nil), String)
451
+
452
+ # source://ansi//lib/ansi/constants.rb#16
453
+ ANSI::Constants::BOLD_OFF = T.let(T.unsafe(nil), String)
454
+
455
+ # source://ansi//lib/ansi/constants.rb#16
456
+ ANSI::Constants::BRIGHT = T.let(T.unsafe(nil), String)
457
+
458
+ # source://ansi//lib/ansi/constants.rb#16
459
+ ANSI::Constants::BRIGHT_OFF = T.let(T.unsafe(nil), String)
460
+
461
+ # source://ansi//lib/ansi/constants.rb#16
462
+ ANSI::Constants::CLEAN = T.let(T.unsafe(nil), String)
463
+
464
+ # source://ansi//lib/ansi/constants.rb#16
465
+ ANSI::Constants::CLEAR = T.let(T.unsafe(nil), String)
466
+
467
+ # source://ansi//lib/ansi/constants.rb#20
468
+ ANSI::Constants::CLEAR_EOL = T.let(T.unsafe(nil), String)
469
+
470
+ # source://ansi//lib/ansi/constants.rb#20
471
+ ANSI::Constants::CLEAR_LEFT = T.let(T.unsafe(nil), String)
472
+
473
+ # source://ansi//lib/ansi/constants.rb#20
474
+ ANSI::Constants::CLEAR_LINE = T.let(T.unsafe(nil), String)
475
+
476
+ # source://ansi//lib/ansi/constants.rb#20
477
+ ANSI::Constants::CLEAR_RIGHT = T.let(T.unsafe(nil), String)
478
+
479
+ # source://ansi//lib/ansi/constants.rb#20
480
+ ANSI::Constants::CLEAR_SCREEN = T.let(T.unsafe(nil), String)
481
+
482
+ # source://ansi//lib/ansi/constants.rb#20
483
+ ANSI::Constants::CLR = T.let(T.unsafe(nil), String)
484
+
485
+ # source://ansi//lib/ansi/constants.rb#20
486
+ ANSI::Constants::CLS = T.let(T.unsafe(nil), String)
487
+
488
+ # source://ansi//lib/ansi/constants.rb#16
489
+ ANSI::Constants::CONCEAL = T.let(T.unsafe(nil), String)
490
+
491
+ # source://ansi//lib/ansi/constants.rb#16
492
+ ANSI::Constants::CONCEALED = T.let(T.unsafe(nil), String)
493
+
494
+ # source://ansi//lib/ansi/constants.rb#16
495
+ ANSI::Constants::CONCEAL_OFF = T.let(T.unsafe(nil), String)
496
+
497
+ # source://ansi//lib/ansi/constants.rb#16
498
+ ANSI::Constants::CROSSED_OFF = T.let(T.unsafe(nil), String)
499
+
500
+ # source://ansi//lib/ansi/constants.rb#16
501
+ ANSI::Constants::CROSSED_OUT_OFF = T.let(T.unsafe(nil), String)
502
+
503
+ # source://ansi//lib/ansi/constants.rb#20
504
+ ANSI::Constants::CURSOR_HIDE = T.let(T.unsafe(nil), String)
505
+
506
+ # source://ansi//lib/ansi/constants.rb#20
507
+ ANSI::Constants::CURSOR_SHOW = T.let(T.unsafe(nil), String)
508
+
509
+ # source://ansi//lib/ansi/constants.rb#16
510
+ ANSI::Constants::CYAN = T.let(T.unsafe(nil), String)
511
+
512
+ # source://ansi//lib/ansi/constants.rb#16
513
+ ANSI::Constants::DARK = T.let(T.unsafe(nil), String)
514
+
515
+ # source://ansi//lib/ansi/constants.rb#16
516
+ ANSI::Constants::DEFAULT_FONT = T.let(T.unsafe(nil), String)
517
+
518
+ # source://ansi//lib/ansi/constants.rb#16
519
+ ANSI::Constants::DOUBLE_UNDERLINE = T.let(T.unsafe(nil), String)
520
+
521
+ # source://ansi//lib/ansi/constants.rb#16
522
+ ANSI::Constants::ENCIRCLE = T.let(T.unsafe(nil), String)
523
+
524
+ # source://ansi//lib/ansi/constants.rb#16
525
+ ANSI::Constants::ENCIRCLE_OFF = T.let(T.unsafe(nil), String)
526
+
527
+ # source://ansi//lib/ansi/constants.rb#16
528
+ ANSI::Constants::FAINT = T.let(T.unsafe(nil), String)
529
+
530
+ # source://ansi//lib/ansi/constants.rb#16
531
+ ANSI::Constants::FONT0 = T.let(T.unsafe(nil), String)
532
+
533
+ # source://ansi//lib/ansi/constants.rb#16
534
+ ANSI::Constants::FONT1 = T.let(T.unsafe(nil), String)
535
+
536
+ # source://ansi//lib/ansi/constants.rb#16
537
+ ANSI::Constants::FONT2 = T.let(T.unsafe(nil), String)
538
+
539
+ # source://ansi//lib/ansi/constants.rb#16
540
+ ANSI::Constants::FONT3 = T.let(T.unsafe(nil), String)
541
+
542
+ # source://ansi//lib/ansi/constants.rb#16
543
+ ANSI::Constants::FONT4 = T.let(T.unsafe(nil), String)
544
+
545
+ # source://ansi//lib/ansi/constants.rb#16
546
+ ANSI::Constants::FONT5 = T.let(T.unsafe(nil), String)
547
+
548
+ # source://ansi//lib/ansi/constants.rb#16
549
+ ANSI::Constants::FONT6 = T.let(T.unsafe(nil), String)
550
+
551
+ # source://ansi//lib/ansi/constants.rb#16
552
+ ANSI::Constants::FONT7 = T.let(T.unsafe(nil), String)
553
+
554
+ # source://ansi//lib/ansi/constants.rb#16
555
+ ANSI::Constants::FONT8 = T.let(T.unsafe(nil), String)
556
+
557
+ # source://ansi//lib/ansi/constants.rb#16
558
+ ANSI::Constants::FONT9 = T.let(T.unsafe(nil), String)
559
+
560
+ # source://ansi//lib/ansi/constants.rb#16
561
+ ANSI::Constants::FONT_DEFAULT = T.let(T.unsafe(nil), String)
562
+
563
+ # source://ansi//lib/ansi/constants.rb#16
564
+ ANSI::Constants::FRAKTUR = T.let(T.unsafe(nil), String)
565
+
566
+ # source://ansi//lib/ansi/constants.rb#16
567
+ ANSI::Constants::FRAKTUR_OFF = T.let(T.unsafe(nil), String)
568
+
569
+ # source://ansi//lib/ansi/constants.rb#16
570
+ ANSI::Constants::FRAME = T.let(T.unsafe(nil), String)
571
+
572
+ # source://ansi//lib/ansi/constants.rb#16
573
+ ANSI::Constants::FRAME_OFF = T.let(T.unsafe(nil), String)
574
+
575
+ # source://ansi//lib/ansi/constants.rb#16
576
+ ANSI::Constants::GREEN = T.let(T.unsafe(nil), String)
577
+
578
+ # source://ansi//lib/ansi/constants.rb#16
579
+ ANSI::Constants::HIDE = T.let(T.unsafe(nil), String)
580
+
581
+ # source://ansi//lib/ansi/constants.rb#16
582
+ ANSI::Constants::INVERSE = T.let(T.unsafe(nil), String)
583
+
584
+ # source://ansi//lib/ansi/constants.rb#16
585
+ ANSI::Constants::INVERSE_OFF = T.let(T.unsafe(nil), String)
586
+
587
+ # source://ansi//lib/ansi/constants.rb#16
588
+ ANSI::Constants::INVERT = T.let(T.unsafe(nil), String)
589
+
590
+ # source://ansi//lib/ansi/constants.rb#16
591
+ ANSI::Constants::ITALIC = T.let(T.unsafe(nil), String)
592
+
593
+ # source://ansi//lib/ansi/constants.rb#16
594
+ ANSI::Constants::ITALIC_OFF = T.let(T.unsafe(nil), String)
595
+
596
+ # source://ansi//lib/ansi/constants.rb#16
597
+ ANSI::Constants::MAGENTA = T.let(T.unsafe(nil), String)
598
+
599
+ # source://ansi//lib/ansi/constants.rb#16
600
+ ANSI::Constants::NEGATIVE = T.let(T.unsafe(nil), String)
601
+
602
+ # source://ansi//lib/ansi/constants.rb#16
603
+ ANSI::Constants::ON_BLACK = T.let(T.unsafe(nil), String)
604
+
605
+ # source://ansi//lib/ansi/constants.rb#16
606
+ ANSI::Constants::ON_BLUE = T.let(T.unsafe(nil), String)
607
+
608
+ # source://ansi//lib/ansi/constants.rb#16
609
+ ANSI::Constants::ON_CYAN = T.let(T.unsafe(nil), String)
610
+
611
+ # source://ansi//lib/ansi/constants.rb#16
612
+ ANSI::Constants::ON_GREEN = T.let(T.unsafe(nil), String)
613
+
614
+ # source://ansi//lib/ansi/constants.rb#16
615
+ ANSI::Constants::ON_MAGENTA = T.let(T.unsafe(nil), String)
616
+
617
+ # source://ansi//lib/ansi/constants.rb#16
618
+ ANSI::Constants::ON_RED = T.let(T.unsafe(nil), String)
619
+
620
+ # source://ansi//lib/ansi/constants.rb#16
621
+ ANSI::Constants::ON_WHITE = T.let(T.unsafe(nil), String)
622
+
623
+ # source://ansi//lib/ansi/constants.rb#16
624
+ ANSI::Constants::ON_YELLOW = T.let(T.unsafe(nil), String)
625
+
626
+ # source://ansi//lib/ansi/constants.rb#16
627
+ ANSI::Constants::OVERLINE = T.let(T.unsafe(nil), String)
628
+
629
+ # source://ansi//lib/ansi/constants.rb#16
630
+ ANSI::Constants::OVERLINE_OFF = T.let(T.unsafe(nil), String)
631
+
632
+ # source://ansi//lib/ansi/constants.rb#16
633
+ ANSI::Constants::POSITIVE = T.let(T.unsafe(nil), String)
634
+
635
+ # source://ansi//lib/ansi/constants.rb#16
636
+ ANSI::Constants::RAPID = T.let(T.unsafe(nil), String)
637
+
638
+ # source://ansi//lib/ansi/constants.rb#16
639
+ ANSI::Constants::RAPID_BLINK = T.let(T.unsafe(nil), String)
640
+
641
+ # source://ansi//lib/ansi/constants.rb#16
642
+ ANSI::Constants::RED = T.let(T.unsafe(nil), String)
643
+
644
+ # source://ansi//lib/ansi/constants.rb#16
645
+ ANSI::Constants::RESET = T.let(T.unsafe(nil), String)
646
+
647
+ # source://ansi//lib/ansi/constants.rb#20
648
+ ANSI::Constants::RESTORE = T.let(T.unsafe(nil), String)
649
+
650
+ # source://ansi//lib/ansi/constants.rb#16
651
+ ANSI::Constants::REVEAL = T.let(T.unsafe(nil), String)
652
+
653
+ # source://ansi//lib/ansi/constants.rb#16
654
+ ANSI::Constants::REVERSE = T.let(T.unsafe(nil), String)
655
+
656
+ # source://ansi//lib/ansi/constants.rb#20
657
+ ANSI::Constants::SAVE = T.let(T.unsafe(nil), String)
658
+
659
+ # source://ansi//lib/ansi/constants.rb#16
660
+ ANSI::Constants::SHOW = T.let(T.unsafe(nil), String)
661
+
662
+ # source://ansi//lib/ansi/constants.rb#16
663
+ ANSI::Constants::SLOW_BLINK = T.let(T.unsafe(nil), String)
664
+
665
+ # source://ansi//lib/ansi/constants.rb#16
666
+ ANSI::Constants::STRIKE = T.let(T.unsafe(nil), String)
667
+
668
+ # source://ansi//lib/ansi/constants.rb#16
669
+ ANSI::Constants::SWAP = T.let(T.unsafe(nil), String)
670
+
671
+ # source://ansi//lib/ansi/constants.rb#16
672
+ ANSI::Constants::UNDERLINE = T.let(T.unsafe(nil), String)
673
+
674
+ # source://ansi//lib/ansi/constants.rb#16
675
+ ANSI::Constants::UNDERLINE_OFF = T.let(T.unsafe(nil), String)
676
+
677
+ # source://ansi//lib/ansi/constants.rb#16
678
+ ANSI::Constants::UNDERSCORE = T.let(T.unsafe(nil), String)
679
+
680
+ # source://ansi//lib/ansi/constants.rb#16
681
+ ANSI::Constants::WHITE = T.let(T.unsafe(nil), String)
682
+
683
+ # source://ansi//lib/ansi/constants.rb#16
684
+ ANSI::Constants::YELLOW = T.let(T.unsafe(nil), String)
685
+
686
+ # source://ansi//lib/ansi/chart.rb#86
687
+ ANSI::SPECIAL_CHART = T.let(T.unsafe(nil), Hash)