playoffs 1.0.0

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