twirbet 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +20 -0
  4. data/CHANGELOG.md +5 -0
  5. data/Gemfile +28 -0
  6. data/Gemfile.lock +127 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +144 -0
  9. data/Rakefile +17 -0
  10. data/examples/clientcompat/client +28 -0
  11. data/examples/clientcompat/clientcompat.proto +29 -0
  12. data/examples/clientcompat/clientcompat_pb.rb +36 -0
  13. data/examples/clientcompat/clientcompat_twirbet.rb +57 -0
  14. data/examples/ping/Gemfile +11 -0
  15. data/examples/ping/Gemfile.lock +69 -0
  16. data/examples/ping/bin/puma +27 -0
  17. data/examples/ping/bin/pumactl +27 -0
  18. data/examples/ping/bin/srb +27 -0
  19. data/examples/ping/bin/srb-rbi +27 -0
  20. data/examples/ping/bin/tapioca +27 -0
  21. data/examples/ping/client.rb +14 -0
  22. data/examples/ping/config/application.rb +13 -0
  23. data/examples/ping/config/environment.rb +6 -0
  24. data/examples/ping/config.ru +8 -0
  25. data/examples/ping/proto/ping.proto +15 -0
  26. data/examples/ping/proto/ping_pb.rb +20 -0
  27. data/examples/ping/proto/ping_twirbet.rb +47 -0
  28. data/examples/ping/sorbet/config +4 -0
  29. data/examples/ping/sorbet/rbi/dsl/google/protobuf/descriptor_proto/extension_range.rbi +34 -0
  30. data/examples/ping/sorbet/rbi/dsl/google/protobuf/descriptor_proto/reserved_range.rbi +22 -0
  31. data/examples/ping/sorbet/rbi/dsl/google/protobuf/descriptor_proto.rbi +83 -0
  32. data/examples/ping/sorbet/rbi/dsl/google/protobuf/enum_descriptor_proto/enum_reserved_range.rbi +22 -0
  33. data/examples/ping/sorbet/rbi/dsl/google/protobuf/enum_descriptor_proto.rbi +48 -0
  34. data/examples/ping/sorbet/rbi/dsl/google/protobuf/enum_options.rbi +34 -0
  35. data/examples/ping/sorbet/rbi/dsl/google/protobuf/enum_value_descriptor_proto.rbi +34 -0
  36. data/examples/ping/sorbet/rbi/dsl/google/protobuf/enum_value_options.rbi +27 -0
  37. data/examples/ping/sorbet/rbi/dsl/google/protobuf/extension_range_options.rbi +20 -0
  38. data/examples/ping/sorbet/rbi/dsl/google/protobuf/field_descriptor_proto/label.rbi +22 -0
  39. data/examples/ping/sorbet/rbi/dsl/google/protobuf/field_descriptor_proto/type.rbi +37 -0
  40. data/examples/ping/sorbet/rbi/dsl/google/protobuf/field_descriptor_proto.rbi +90 -0
  41. data/examples/ping/sorbet/rbi/dsl/google/protobuf/field_options/c_type.rbi +22 -0
  42. data/examples/ping/sorbet/rbi/dsl/google/protobuf/field_options/js_type.rbi +22 -0
  43. data/examples/ping/sorbet/rbi/dsl/google/protobuf/field_options.rbi +69 -0
  44. data/examples/ping/sorbet/rbi/dsl/google/protobuf/file_descriptor_proto.rbi +97 -0
  45. data/examples/ping/sorbet/rbi/dsl/google/protobuf/file_descriptor_set.rbi +20 -0
  46. data/examples/ping/sorbet/rbi/dsl/google/protobuf/file_options/optimize_mode.rbi +22 -0
  47. data/examples/ping/sorbet/rbi/dsl/google/protobuf/file_options.rbi +160 -0
  48. data/examples/ping/sorbet/rbi/dsl/google/protobuf/generated_code_info/annotation.rbi +41 -0
  49. data/examples/ping/sorbet/rbi/dsl/google/protobuf/generated_code_info.rbi +20 -0
  50. data/examples/ping/sorbet/rbi/dsl/google/protobuf/map.rbi +12 -0
  51. data/examples/ping/sorbet/rbi/dsl/google/protobuf/message_options.rbi +48 -0
  52. data/examples/ping/sorbet/rbi/dsl/google/protobuf/method_descriptor_proto.rbi +55 -0
  53. data/examples/ping/sorbet/rbi/dsl/google/protobuf/method_options/idempotency_level.rbi +22 -0
  54. data/examples/ping/sorbet/rbi/dsl/google/protobuf/method_options.rbi +34 -0
  55. data/examples/ping/sorbet/rbi/dsl/google/protobuf/oneof_descriptor_proto.rbi +22 -0
  56. data/examples/ping/sorbet/rbi/dsl/google/protobuf/oneof_options.rbi +20 -0
  57. data/examples/ping/sorbet/rbi/dsl/google/protobuf/repeated_field.rbi +11 -0
  58. data/examples/ping/sorbet/rbi/dsl/google/protobuf/service_descriptor_proto.rbi +34 -0
  59. data/examples/ping/sorbet/rbi/dsl/google/protobuf/service_options.rbi +27 -0
  60. data/examples/ping/sorbet/rbi/dsl/google/protobuf/source_code_info/location.rbi +48 -0
  61. data/examples/ping/sorbet/rbi/dsl/google/protobuf/source_code_info.rbi +20 -0
  62. data/examples/ping/sorbet/rbi/dsl/google/protobuf/uninterpreted_option/name_part.rbi +22 -0
  63. data/examples/ping/sorbet/rbi/dsl/google/protobuf/uninterpreted_option.rbi +62 -0
  64. data/examples/ping/sorbet/rbi/dsl/ping/ping_request.rbi +16 -0
  65. data/examples/ping/sorbet/rbi/dsl/ping/ping_response.rbi +16 -0
  66. data/examples/ping/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  67. data/examples/ping/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +8 -0
  68. data/examples/ping/sorbet/rbi/gems/google-protobuf@3.21.12.rbi +1645 -0
  69. data/examples/ping/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  70. data/examples/ping/sorbet/rbi/gems/nio4r@2.5.8.rbi +8 -0
  71. data/examples/ping/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  72. data/examples/ping/sorbet/rbi/gems/parser@3.1.3.0.rbi +5076 -0
  73. data/examples/ping/sorbet/rbi/gems/puma@6.0.0.rbi +4177 -0
  74. data/examples/ping/sorbet/rbi/gems/rack@3.0.2.rbi +5016 -0
  75. data/examples/ping/sorbet/rbi/gems/rbi@0.0.16.rbi +3008 -0
  76. data/examples/ping/sorbet/rbi/gems/spoom@1.1.15.rbi +2383 -0
  77. data/examples/ping/sorbet/rbi/gems/tapioca@0.10.3.rbi +3032 -0
  78. data/examples/ping/sorbet/rbi/gems/thor@1.2.1.rbi +3919 -0
  79. data/examples/ping/sorbet/rbi/gems/twirbet@0.1.0.rbi +528 -0
  80. data/examples/ping/sorbet/rbi/gems/unparser@0.6.5.rbi +8 -0
  81. data/examples/ping/sorbet/rbi/gems/webrick@1.7.0.rbi +2498 -0
  82. data/examples/ping/sorbet/rbi/gems/yard-sorbet@0.7.0.rbi +391 -0
  83. data/examples/ping/sorbet/rbi/gems/yard@0.9.28.rbi +17022 -0
  84. data/examples/ping/sorbet/tapioca/config.yml +13 -0
  85. data/examples/ping/sorbet/tapioca/require.rb +5 -0
  86. data/lib/twirbet/client.rb +45 -0
  87. data/lib/twirbet/dsl.rb +84 -0
  88. data/lib/twirbet/encoding.rb +52 -0
  89. data/lib/twirbet/errors.rb +375 -0
  90. data/lib/twirbet/method.rb +34 -0
  91. data/lib/twirbet/service.rb +85 -0
  92. data/lib/twirbet/transport.rb +55 -0
  93. data/lib/twirbet/transports/fake_transport.rb +32 -0
  94. data/lib/twirbet/transports/net_http_transport.rb +20 -0
  95. data/lib/twirbet/version.rb +6 -0
  96. data/lib/twirbet.rb +11 -0
  97. data/sorbet/config +5 -0
  98. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  99. data/sorbet/rbi/custom/ping.rbi +23 -0
  100. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  101. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1064 -0
  102. data/sorbet/rbi/gems/google-protobuf@3.21.12.rbi +1645 -0
  103. data/sorbet/rbi/gems/json@2.6.3.rbi +1541 -0
  104. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  105. data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  106. data/sorbet/rbi/gems/parser@3.1.3.0.rbi +6878 -0
  107. data/sorbet/rbi/gems/rack@3.0.2.rbi +5163 -0
  108. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +397 -0
  109. data/sorbet/rbi/gems/rake@13.0.6.rbi +2946 -0
  110. data/sorbet/rbi/gems/rbi@0.0.16.rbi +3008 -0
  111. data/sorbet/rbi/gems/regexp_parser@2.6.1.rbi +3126 -0
  112. data/sorbet/rbi/gems/rexml@3.2.5.rbi +4660 -0
  113. data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +10492 -0
  114. data/sorbet/rbi/gems/rspec-expectations@3.12.1.rbi +7817 -0
  115. data/sorbet/rbi/gems/rspec-mocks@3.12.1.rbi +4994 -0
  116. data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +1477 -0
  117. data/sorbet/rbi/gems/rspec@3.12.0.rbi +10 -0
  118. data/sorbet/rbi/gems/rubocop-ast@1.24.0.rbi +6790 -0
  119. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +354 -0
  120. data/sorbet/rbi/gems/rubocop-rspec@2.16.0.rbi +7650 -0
  121. data/sorbet/rbi/gems/rubocop-shopify@2.10.1.rbi +8 -0
  122. data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +1014 -0
  123. data/sorbet/rbi/gems/rubocop@1.40.0.rbi +51560 -0
  124. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1212 -0
  125. data/sorbet/rbi/gems/spoom@1.1.15.rbi +2383 -0
  126. data/sorbet/rbi/gems/tapioca@0.10.3.rbi +3032 -0
  127. data/sorbet/rbi/gems/thor@1.2.1.rbi +3950 -0
  128. data/sorbet/rbi/gems/unicode-display_width@2.3.0.rbi +46 -0
  129. data/sorbet/rbi/gems/unparser@0.6.5.rbi +4265 -0
  130. data/sorbet/rbi/gems/webrick@1.7.0.rbi +2498 -0
  131. data/sorbet/rbi/gems/yard-sorbet@0.7.0.rbi +391 -0
  132. data/sorbet/rbi/gems/yard@0.9.28.rbi +17033 -0
  133. data/sorbet/tapioca/config.yml +13 -0
  134. data/sorbet/tapioca/require.rb +4 -0
  135. data/twirbet.gemspec +36 -0
  136. metadata +223 -0
@@ -0,0 +1,397 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `rainbow` gem.
5
+ # Please instead update this file by running `bin/tapioca gem rainbow`.
6
+
7
+ # source://yard/0.9.28/lib/yard.rb#61
8
+ ::RUBY18 = T.let(T.unsafe(nil), FalseClass)
9
+
10
+ # source://yard/0.9.28/lib/yard.rb#62
11
+ ::RUBY19 = T.let(T.unsafe(nil), TrueClass)
12
+
13
+ class Object < ::BasicObject
14
+ include ::Kernel
15
+ include ::PP::ObjectMixin
16
+
17
+ private
18
+
19
+ # source://rainbow//lib/rainbow/global.rb#23
20
+ def Rainbow(string); end
21
+ end
22
+
23
+ module Rainbow
24
+ class << self
25
+ # source://rainbow//lib/rainbow/global.rb#10
26
+ def enabled; end
27
+
28
+ # source://rainbow//lib/rainbow/global.rb#14
29
+ def enabled=(value); end
30
+
31
+ # source://rainbow//lib/rainbow/global.rb#6
32
+ def global; end
33
+
34
+ # source://rainbow//lib/rainbow.rb#6
35
+ def new; end
36
+
37
+ # source://rainbow//lib/rainbow/global.rb#18
38
+ def uncolor(string); end
39
+ end
40
+ end
41
+
42
+ class Rainbow::Color
43
+ # Returns the value of attribute ground.
44
+ #
45
+ # source://rainbow//lib/rainbow/color.rb#5
46
+ def ground; end
47
+
48
+ class << self
49
+ # source://rainbow//lib/rainbow/color.rb#7
50
+ def build(ground, values); end
51
+
52
+ # source://rainbow//lib/rainbow/color.rb#40
53
+ def parse_hex_color(hex); end
54
+ end
55
+ end
56
+
57
+ class Rainbow::Color::Indexed < ::Rainbow::Color
58
+ # @return [Indexed] a new instance of Indexed
59
+ #
60
+ # source://rainbow//lib/rainbow/color.rb#57
61
+ def initialize(ground, num); end
62
+
63
+ # source://rainbow//lib/rainbow/color.rb#62
64
+ def codes; end
65
+
66
+ # Returns the value of attribute num.
67
+ #
68
+ # source://rainbow//lib/rainbow/color.rb#55
69
+ def num; end
70
+ end
71
+
72
+ class Rainbow::Color::Named < ::Rainbow::Color::Indexed
73
+ # @return [Named] a new instance of Named
74
+ #
75
+ # source://rainbow//lib/rainbow/color.rb#90
76
+ def initialize(ground, name); end
77
+
78
+ class << self
79
+ # source://rainbow//lib/rainbow/color.rb#82
80
+ def color_names; end
81
+
82
+ # source://rainbow//lib/rainbow/color.rb#86
83
+ def valid_names; end
84
+ end
85
+ end
86
+
87
+ # source://rainbow//lib/rainbow/color.rb#70
88
+ Rainbow::Color::Named::NAMES = T.let(T.unsafe(nil), Hash)
89
+
90
+ class Rainbow::Color::RGB < ::Rainbow::Color::Indexed
91
+ # @return [RGB] a new instance of RGB
92
+ #
93
+ # source://rainbow//lib/rainbow/color.rb#107
94
+ def initialize(ground, *values); end
95
+
96
+ # Returns the value of attribute b.
97
+ #
98
+ # source://rainbow//lib/rainbow/color.rb#101
99
+ def b; end
100
+
101
+ # source://rainbow//lib/rainbow/color.rb#116
102
+ def codes; end
103
+
104
+ # Returns the value of attribute g.
105
+ #
106
+ # source://rainbow//lib/rainbow/color.rb#101
107
+ def g; end
108
+
109
+ # Returns the value of attribute r.
110
+ #
111
+ # source://rainbow//lib/rainbow/color.rb#101
112
+ def r; end
113
+
114
+ private
115
+
116
+ # source://rainbow//lib/rainbow/color.rb#122
117
+ def code_from_rgb; end
118
+
119
+ class << self
120
+ # source://rainbow//lib/rainbow/color.rb#103
121
+ def to_ansi_domain(value); end
122
+ end
123
+ end
124
+
125
+ class Rainbow::Color::X11Named < ::Rainbow::Color::RGB
126
+ include ::Rainbow::X11ColorNames
127
+
128
+ # @return [X11Named] a new instance of X11Named
129
+ #
130
+ # source://rainbow//lib/rainbow/color.rb#140
131
+ def initialize(ground, name); end
132
+
133
+ class << self
134
+ # source://rainbow//lib/rainbow/color.rb#132
135
+ def color_names; end
136
+
137
+ # source://rainbow//lib/rainbow/color.rb#136
138
+ def valid_names; end
139
+ end
140
+ end
141
+
142
+ class Rainbow::NullPresenter < ::String
143
+ # source://rainbow//lib/rainbow/null_presenter.rb#9
144
+ def background(*_values); end
145
+
146
+ # source://rainbow//lib/rainbow/null_presenter.rb#9
147
+ def bg(*_values); end
148
+
149
+ # source://rainbow//lib/rainbow/null_presenter.rb#49
150
+ def black; end
151
+
152
+ # source://rainbow//lib/rainbow/null_presenter.rb#33
153
+ def blink; end
154
+
155
+ # source://rainbow//lib/rainbow/null_presenter.rb#65
156
+ def blue; end
157
+
158
+ # source://rainbow//lib/rainbow/null_presenter.rb#17
159
+ def bold; end
160
+
161
+ # source://rainbow//lib/rainbow/null_presenter.rb#17
162
+ def bright; end
163
+
164
+ # source://rainbow//lib/rainbow/null_presenter.rb#5
165
+ def color(*_values); end
166
+
167
+ # source://rainbow//lib/rainbow/null_presenter.rb#45
168
+ def cross_out; end
169
+
170
+ # source://rainbow//lib/rainbow/null_presenter.rb#73
171
+ def cyan; end
172
+
173
+ # source://rainbow//lib/rainbow/null_presenter.rb#21
174
+ def dark; end
175
+
176
+ # source://rainbow//lib/rainbow/null_presenter.rb#21
177
+ def faint; end
178
+
179
+ # source://rainbow//lib/rainbow/null_presenter.rb#5
180
+ def fg(*_values); end
181
+
182
+ # source://rainbow//lib/rainbow/null_presenter.rb#5
183
+ def foreground(*_values); end
184
+
185
+ # source://rainbow//lib/rainbow/null_presenter.rb#57
186
+ def green; end
187
+
188
+ # source://rainbow//lib/rainbow/null_presenter.rb#41
189
+ def hide; end
190
+
191
+ # source://rainbow//lib/rainbow/null_presenter.rb#37
192
+ def inverse; end
193
+
194
+ # source://rainbow//lib/rainbow/null_presenter.rb#25
195
+ def italic; end
196
+
197
+ # source://rainbow//lib/rainbow/null_presenter.rb#69
198
+ def magenta; end
199
+
200
+ # source://rainbow//lib/rainbow/null_presenter.rb#81
201
+ def method_missing(method_name, *args); end
202
+
203
+ # source://rainbow//lib/rainbow/null_presenter.rb#53
204
+ def red; end
205
+
206
+ # source://rainbow//lib/rainbow/null_presenter.rb#13
207
+ def reset; end
208
+
209
+ # source://rainbow//lib/rainbow/null_presenter.rb#45
210
+ def strike; end
211
+
212
+ # source://rainbow//lib/rainbow/null_presenter.rb#29
213
+ def underline; end
214
+
215
+ # source://rainbow//lib/rainbow/null_presenter.rb#77
216
+ def white; end
217
+
218
+ # source://rainbow//lib/rainbow/null_presenter.rb#61
219
+ def yellow; end
220
+
221
+ private
222
+
223
+ # @return [Boolean]
224
+ #
225
+ # source://rainbow//lib/rainbow/null_presenter.rb#89
226
+ def respond_to_missing?(method_name, *args); end
227
+ end
228
+
229
+ class Rainbow::Presenter < ::String
230
+ # Sets background color of this text.
231
+ #
232
+ # source://rainbow//lib/rainbow/presenter.rb#30
233
+ def background(*values); end
234
+
235
+ # Sets background color of this text.
236
+ #
237
+ # source://rainbow//lib/rainbow/presenter.rb#30
238
+ def bg(*values); end
239
+
240
+ # source://rainbow//lib/rainbow/presenter.rb#92
241
+ def black; end
242
+
243
+ # Turns on blinking attribute for this text (not well supported by terminal
244
+ # emulators).
245
+ #
246
+ # source://rainbow//lib/rainbow/presenter.rb#72
247
+ def blink; end
248
+
249
+ # source://rainbow//lib/rainbow/presenter.rb#108
250
+ def blue; end
251
+
252
+ # Turns on bright/bold for this text.
253
+ #
254
+ # source://rainbow//lib/rainbow/presenter.rb#45
255
+ def bold; end
256
+
257
+ # Turns on bright/bold for this text.
258
+ #
259
+ # source://rainbow//lib/rainbow/presenter.rb#45
260
+ def bright; end
261
+
262
+ # Sets color of this text.
263
+ #
264
+ # source://rainbow//lib/rainbow/presenter.rb#22
265
+ def color(*values); end
266
+
267
+ # source://rainbow//lib/rainbow/presenter.rb#86
268
+ def cross_out; end
269
+
270
+ # source://rainbow//lib/rainbow/presenter.rb#116
271
+ def cyan; end
272
+
273
+ # Turns on faint/dark for this text (not well supported by terminal
274
+ # emulators).
275
+ #
276
+ # source://rainbow//lib/rainbow/presenter.rb#53
277
+ def dark; end
278
+
279
+ # Turns on faint/dark for this text (not well supported by terminal
280
+ # emulators).
281
+ #
282
+ # source://rainbow//lib/rainbow/presenter.rb#53
283
+ def faint; end
284
+
285
+ # Sets color of this text.
286
+ #
287
+ # source://rainbow//lib/rainbow/presenter.rb#22
288
+ def fg(*values); end
289
+
290
+ # Sets color of this text.
291
+ #
292
+ # source://rainbow//lib/rainbow/presenter.rb#22
293
+ def foreground(*values); end
294
+
295
+ # source://rainbow//lib/rainbow/presenter.rb#100
296
+ def green; end
297
+
298
+ # Hides this text (set its color to the same as background).
299
+ #
300
+ # source://rainbow//lib/rainbow/presenter.rb#82
301
+ def hide; end
302
+
303
+ # Inverses current foreground/background colors.
304
+ #
305
+ # source://rainbow//lib/rainbow/presenter.rb#77
306
+ def inverse; end
307
+
308
+ # Turns on italic style for this text (not well supported by terminal
309
+ # emulators).
310
+ #
311
+ # source://rainbow//lib/rainbow/presenter.rb#61
312
+ def italic; end
313
+
314
+ # source://rainbow//lib/rainbow/presenter.rb#112
315
+ def magenta; end
316
+
317
+ # We take care of X11 color method call here.
318
+ # Such as #aqua, #ghostwhite.
319
+ #
320
+ # source://rainbow//lib/rainbow/presenter.rb#126
321
+ def method_missing(method_name, *args); end
322
+
323
+ # source://rainbow//lib/rainbow/presenter.rb#96
324
+ def red; end
325
+
326
+ # Resets terminal to default colors/backgrounds.
327
+ #
328
+ # It shouldn't be needed to use this method because all methods
329
+ # append terminal reset code to end of string.
330
+ #
331
+ # source://rainbow//lib/rainbow/presenter.rb#40
332
+ def reset; end
333
+
334
+ # source://rainbow//lib/rainbow/presenter.rb#86
335
+ def strike; end
336
+
337
+ # Turns on underline decoration for this text.
338
+ #
339
+ # source://rainbow//lib/rainbow/presenter.rb#66
340
+ def underline; end
341
+
342
+ # source://rainbow//lib/rainbow/presenter.rb#120
343
+ def white; end
344
+
345
+ # source://rainbow//lib/rainbow/presenter.rb#104
346
+ def yellow; end
347
+
348
+ private
349
+
350
+ # @return [Boolean]
351
+ #
352
+ # source://rainbow//lib/rainbow/presenter.rb#134
353
+ def respond_to_missing?(method_name, *args); end
354
+
355
+ # source://rainbow//lib/rainbow/presenter.rb#140
356
+ def wrap_with_sgr(codes); end
357
+ end
358
+
359
+ # source://rainbow//lib/rainbow/presenter.rb#9
360
+ Rainbow::Presenter::TERM_EFFECTS = T.let(T.unsafe(nil), Hash)
361
+
362
+ class Rainbow::StringUtils
363
+ class << self
364
+ # source://rainbow//lib/rainbow/string_utils.rb#17
365
+ def uncolor(string); end
366
+
367
+ # source://rainbow//lib/rainbow/string_utils.rb#5
368
+ def wrap_with_sgr(string, codes); end
369
+ end
370
+ end
371
+
372
+ class Rainbow::Wrapper
373
+ # @return [Wrapper] a new instance of Wrapper
374
+ #
375
+ # source://rainbow//lib/rainbow/wrapper.rb#10
376
+ def initialize(enabled = T.unsafe(nil)); end
377
+
378
+ # Returns the value of attribute enabled.
379
+ #
380
+ # source://rainbow//lib/rainbow/wrapper.rb#8
381
+ def enabled; end
382
+
383
+ # Sets the attribute enabled
384
+ #
385
+ # @param value the value to set the attribute enabled to.
386
+ #
387
+ # source://rainbow//lib/rainbow/wrapper.rb#8
388
+ def enabled=(_arg0); end
389
+
390
+ # source://rainbow//lib/rainbow/wrapper.rb#14
391
+ def wrap(string); end
392
+ end
393
+
394
+ module Rainbow::X11ColorNames; end
395
+
396
+ # source://rainbow//lib/rainbow/x11_color_names.rb#5
397
+ Rainbow::X11ColorNames::NAMES = T.let(T.unsafe(nil), Hash)