e621stream 0.0.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 (77) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +35 -0
  4. data/lib/e621stream/client/options.rb +20 -0
  5. data/lib/e621stream/client.rb +211 -0
  6. data/lib/e621stream/close_codes.rb +23 -0
  7. data/lib/e621stream/event.rb +24 -0
  8. data/lib/e621stream/events.rb +29 -0
  9. data/lib/e621stream/stream_error.rb +18 -0
  10. data/lib/e621stream/version.rb +5 -0
  11. data/lib/e621stream.rb +18 -0
  12. data/sorbet/config +6 -0
  13. data/sorbet/rbi/annotations/.gitattributes +1 -0
  14. data/sorbet/rbi/annotations/minitest.rbi +120 -0
  15. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  16. data/sorbet/rbi/gems/.gitattributes +1 -0
  17. data/sorbet/rbi/gems/ast@2.4.3.rbi +550 -0
  18. data/sorbet/rbi/gems/async-http@0.105.0.rbi +1649 -0
  19. data/sorbet/rbi/gems/async-pool@0.12.0.rbi +219 -0
  20. data/sorbet/rbi/gems/async-websocket@0.30.2.rbi +271 -0
  21. data/sorbet/rbi/gems/async@2.46.0.rbi +2193 -0
  22. data/sorbet/rbi/gems/benchmark@0.5.0.rbi +495 -0
  23. data/sorbet/rbi/gems/console@1.38.0.rbi +1552 -0
  24. data/sorbet/rbi/gems/erb@6.0.7.rbi +1581 -0
  25. data/sorbet/rbi/gems/erubi@1.13.1.rbi +153 -0
  26. data/sorbet/rbi/gems/fiber-annotation@0.2.0.rbi +62 -0
  27. data/sorbet/rbi/gems/fiber-local@1.1.0.rbi +36 -0
  28. data/sorbet/rbi/gems/fiber-storage@1.0.1.rbi +43 -0
  29. data/sorbet/rbi/gems/io-console@0.9.5.rbi +9 -0
  30. data/sorbet/rbi/gems/io-endpoint@0.19.0.rbi +1079 -0
  31. data/sorbet/rbi/gems/io-event@1.22.3.rbi +971 -0
  32. data/sorbet/rbi/gems/io-stream@0.14.0.rbi +805 -0
  33. data/sorbet/rbi/gems/json@3.1.0.rbi +1929 -0
  34. data/sorbet/rbi/gems/language_server-protocol@3.17.0.6.rbi +9 -0
  35. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +189 -0
  36. data/sorbet/rbi/gems/logger@1.7.0.rbi +896 -0
  37. data/sorbet/rbi/gems/minitest@5.27.0.rbi +1499 -0
  38. data/sorbet/rbi/gems/netrc@0.11.0.rbi +147 -0
  39. data/sorbet/rbi/gems/openssl@4.0.2.rbi +4366 -0
  40. data/sorbet/rbi/gems/parallel@2.3.0.rbi +332 -0
  41. data/sorbet/rbi/gems/parser@3.3.13.0.rbi +5146 -0
  42. data/sorbet/rbi/gems/pp@0.6.4.rbi +373 -0
  43. data/sorbet/rbi/gems/prettyprint@0.2.1.rbi +476 -0
  44. data/sorbet/rbi/gems/prism@1.9.0.rbi +42213 -0
  45. data/sorbet/rbi/gems/protocol-hpack@1.5.1.rbi +418 -0
  46. data/sorbet/rbi/gems/protocol-http1@0.41.1.rbi +894 -0
  47. data/sorbet/rbi/gems/protocol-http2@0.29.2.rbi +2277 -0
  48. data/sorbet/rbi/gems/protocol-http@0.72.1.rbi +3801 -0
  49. data/sorbet/rbi/gems/protocol-rack@0.23.0.rbi +9 -0
  50. data/sorbet/rbi/gems/protocol-url@0.19.0.rbi +9 -0
  51. data/sorbet/rbi/gems/protocol-websocket@0.21.3.rbi +1087 -0
  52. data/sorbet/rbi/gems/racc@1.8.1.rbi +169 -0
  53. data/sorbet/rbi/gems/rack@3.2.8.rbi +9 -0
  54. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +362 -0
  55. data/sorbet/rbi/gems/rake@13.4.2.rbi +3127 -0
  56. data/sorbet/rbi/gems/rbi@0.5.0.rbi +5875 -0
  57. data/sorbet/rbi/gems/rbs@4.2.0.rbi +7133 -0
  58. data/sorbet/rbi/gems/rdoc@8.1.0.rbi +9 -0
  59. data/sorbet/rbi/gems/regexp_parser@2.13.1.rbi +3500 -0
  60. data/sorbet/rbi/gems/reline@0.7.0.rbi +2449 -0
  61. data/sorbet/rbi/gems/require-hooks@0.5.1.rbi +152 -0
  62. data/sorbet/rbi/gems/rexml@3.4.4.rbi +4905 -0
  63. data/sorbet/rbi/gems/rubocop-ast@1.51.0.rbi +7230 -0
  64. data/sorbet/rbi/gems/rubocop-rake@0.7.1.rbi +314 -0
  65. data/sorbet/rbi/gems/rubocop@1.92.2.rbi +69094 -0
  66. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +988 -0
  67. data/sorbet/rbi/gems/rubydex@0.4.4.rbi +1620 -0
  68. data/sorbet/rbi/gems/spoom@1.8.13.rbi +7380 -0
  69. data/sorbet/rbi/gems/tapioca@0.20.0.rbi +3752 -0
  70. data/sorbet/rbi/gems/thor@1.5.0.rbi +3870 -0
  71. data/sorbet/rbi/gems/tsort@0.2.0.rbi +389 -0
  72. data/sorbet/rbi/gems/unicode-display_width@3.3.0.rbi +130 -0
  73. data/sorbet/rbi/gems/unicode-emoji@4.3.0.rbi +254 -0
  74. data/sorbet/rbi/gems/zeitwerk@2.8.3.rbi +1178 -0
  75. data/sorbet/tapioca/config.yml +13 -0
  76. data/sorbet/tapioca/require.rb +4 -0
  77. metadata +175 -0
@@ -0,0 +1,476 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `prettyprint` gem.
5
+ # Please instead update this file by running `bin/tapioca gem prettyprint`.
6
+
7
+
8
+ # This class implements a pretty printing algorithm. It finds line breaks and
9
+ # nice indentations for grouped structure.
10
+ #
11
+ # By default, the class assumes that primitive elements are strings and each
12
+ # byte in the strings have single column in width. But it can be used for
13
+ # other situations by giving suitable arguments for some methods:
14
+ # * newline object and space generation block for PrettyPrint.new
15
+ # * optional width argument for PrettyPrint#text
16
+ # * PrettyPrint#breakable
17
+ #
18
+ # There are several candidate uses:
19
+ # * text formatting using proportional fonts
20
+ # * multibyte characters which has columns different to number of bytes
21
+ # * non-string formatting
22
+ #
23
+ # == Bugs
24
+ # * Box based formatting?
25
+ # * Other (better) model/algorithm?
26
+ #
27
+ # Report any bugs at http://bugs.ruby-lang.org
28
+ #
29
+ # == References
30
+ # Christian Lindig, Strictly Pretty, March 2000,
31
+ # https://lindig.github.io/papers/strictly-pretty-2000.pdf
32
+ #
33
+ # Philip Wadler, A prettier printer, March 1998,
34
+ # https://homepages.inf.ed.ac.uk/wadler/topics/language-design.html#prettier
35
+ #
36
+ # == Author
37
+ # Tanaka Akira <akr@fsij.org>
38
+ class PrettyPrint
39
+ # Creates a buffer for pretty printing.
40
+ #
41
+ # +output+ is an output target. If it is not specified, '' is assumed. It
42
+ # should have a << method which accepts the first argument +obj+ of
43
+ # PrettyPrint#text, the first argument +sep+ of PrettyPrint#breakable, the
44
+ # first argument +newline+ of PrettyPrint.new, and the result of a given
45
+ # block for PrettyPrint.new.
46
+ #
47
+ # +maxwidth+ specifies maximum line length. If it is not specified, 79 is
48
+ # assumed. However actual outputs may overflow +maxwidth+ if long
49
+ # non-breakable texts are provided.
50
+ #
51
+ # +newline+ is used for line breaks. "\n" is used if it is not specified.
52
+ #
53
+ # The block is used to generate spaces. {|width| ' ' * width} is used if it
54
+ # is not given.
55
+ #
56
+ # pkg:gem/prettyprint#lib/prettyprint.rb:85
57
+ def initialize(output = T.unsafe(nil), maxwidth = T.unsafe(nil), newline = T.unsafe(nil), &genspace); end
58
+
59
+ # Breaks the buffer into lines that are shorter than #maxwidth
60
+ #
61
+ # pkg:gem/prettyprint#lib/prettyprint.rb:163
62
+ def break_outmost_groups; end
63
+
64
+ # This says "you can break a line here if necessary", and a +width+\-column
65
+ # text +sep+ is inserted if a line is not broken at the point.
66
+ #
67
+ # If +sep+ is not specified, " " is used.
68
+ #
69
+ # If +width+ is not specified, +sep.length+ is used. You will have to
70
+ # specify this when +sep+ is a multibyte character, for example.
71
+ #
72
+ # pkg:gem/prettyprint#lib/prettyprint.rb:227
73
+ def breakable(sep = T.unsafe(nil), width = T.unsafe(nil)); end
74
+
75
+ # Returns the group most recently added to the stack.
76
+ #
77
+ # Contrived example:
78
+ # out = ""
79
+ # => ""
80
+ # q = PrettyPrint.new(out)
81
+ # => #<PrettyPrint:0x82f85c0 @output="", @maxwidth=79, @newline="\n", @genspace=#<Proc:0x82f8368@/home/vbatts/.rvm/rubies/ruby-head/lib/ruby/2.0.0/prettyprint.rb:82 (lambda)>, @output_width=0, @buffer_width=0, @buffer=[], @group_stack=[#<PrettyPrint::Group:0x82f8138 @depth=0, @breakables=[], @break=false>], @group_queue=#<PrettyPrint::GroupQueue:0x82fb7c0 @queue=[[#<PrettyPrint::Group:0x82f8138 @depth=0, @breakables=[], @break=false>]]>, @indent=0>
82
+ # q.group {
83
+ # q.text q.current_group.inspect
84
+ # q.text q.newline
85
+ # q.group(q.current_group.depth + 1) {
86
+ # q.text q.current_group.inspect
87
+ # q.text q.newline
88
+ # q.group(q.current_group.depth + 1) {
89
+ # q.text q.current_group.inspect
90
+ # q.text q.newline
91
+ # q.group(q.current_group.depth + 1) {
92
+ # q.text q.current_group.inspect
93
+ # q.text q.newline
94
+ # }
95
+ # }
96
+ # }
97
+ # }
98
+ # => 284
99
+ # puts out
100
+ # #<PrettyPrint::Group:0x8354758 @depth=1, @breakables=[], @break=false>
101
+ # #<PrettyPrint::Group:0x8354550 @depth=2, @breakables=[], @break=false>
102
+ # #<PrettyPrint::Group:0x83541cc @depth=3, @breakables=[], @break=false>
103
+ # #<PrettyPrint::Group:0x8347e54 @depth=4, @breakables=[], @break=false>
104
+ #
105
+ # pkg:gem/prettyprint#lib/prettyprint.rb:158
106
+ def current_group; end
107
+
108
+ # This is similar to #breakable except
109
+ # the decision to break or not is determined individually.
110
+ #
111
+ # Two #fill_breakable under a group may cause 4 results:
112
+ # (break,break), (break,non-break), (non-break,break), (non-break,non-break).
113
+ # This is different to #breakable because two #breakable under a group
114
+ # may cause 2 results:
115
+ # (break,break), (non-break,non-break).
116
+ #
117
+ # The text +sep+ is inserted if a line is not broken at this point.
118
+ #
119
+ # If +sep+ is not specified, " " is used.
120
+ #
121
+ # If +width+ is not specified, +sep.length+ is used. You will have to
122
+ # specify this when +sep+ is a multibyte character, for example.
123
+ #
124
+ # pkg:gem/prettyprint#lib/prettyprint.rb:215
125
+ def fill_breakable(sep = T.unsafe(nil), width = T.unsafe(nil)); end
126
+
127
+ # outputs buffered data.
128
+ #
129
+ # pkg:gem/prettyprint#lib/prettyprint.rb:291
130
+ def flush; end
131
+
132
+ # A lambda or Proc, that takes one argument, of an Integer, and returns
133
+ # the corresponding number of spaces.
134
+ #
135
+ # By default this is:
136
+ # lambda {|n| ' ' * n}
137
+ #
138
+ # pkg:gem/prettyprint#lib/prettyprint.rb:121
139
+ def genspace; end
140
+
141
+ # Groups line break hints added in the block. The line break hints are all
142
+ # to be used or not.
143
+ #
144
+ # If +indent+ is specified, the method call is regarded as nested by
145
+ # nest(indent) { ... }.
146
+ #
147
+ # If +open_obj+ is specified, <tt>text open_obj, open_width</tt> is called
148
+ # before grouping. If +close_obj+ is specified, <tt>text close_obj,
149
+ # close_width</tt> is called after grouping.
150
+ #
151
+ # pkg:gem/prettyprint#lib/prettyprint.rb:252
152
+ def group(indent = T.unsafe(nil), open_obj = T.unsafe(nil), close_obj = T.unsafe(nil), open_width = T.unsafe(nil), close_width = T.unsafe(nil)); end
153
+
154
+ # The PrettyPrint::GroupQueue of groups in stack to be pretty printed
155
+ #
156
+ # pkg:gem/prettyprint#lib/prettyprint.rb:127
157
+ def group_queue; end
158
+
159
+ # Takes a block and queues a new group that is indented 1 level further.
160
+ #
161
+ # pkg:gem/prettyprint#lib/prettyprint.rb:263
162
+ def group_sub; end
163
+
164
+ # The number of spaces to be indented
165
+ #
166
+ # pkg:gem/prettyprint#lib/prettyprint.rb:124
167
+ def indent; end
168
+
169
+ # The maximum width of a line, before it is separated in to a newline
170
+ #
171
+ # This defaults to 79, and should be an Integer
172
+ #
173
+ # pkg:gem/prettyprint#lib/prettyprint.rb:109
174
+ def maxwidth; end
175
+
176
+ # Increases left margin after newline with +indent+ for line breaks added in
177
+ # the block.
178
+ #
179
+ # pkg:gem/prettyprint#lib/prettyprint.rb:280
180
+ def nest(indent); end
181
+
182
+ # The value that is appended to +output+ to add a new line.
183
+ #
184
+ # This defaults to "\n", and should be String
185
+ #
186
+ # pkg:gem/prettyprint#lib/prettyprint.rb:114
187
+ def newline; end
188
+
189
+ # The output object.
190
+ #
191
+ # This defaults to '', and should accept the << method
192
+ #
193
+ # pkg:gem/prettyprint#lib/prettyprint.rb:104
194
+ def output; end
195
+
196
+ # This adds +obj+ as a text of +width+ columns in width.
197
+ #
198
+ # If +width+ is not specified, obj.length is used.
199
+ #
200
+ # pkg:gem/prettyprint#lib/prettyprint.rb:183
201
+ def text(obj, width = T.unsafe(nil)); end
202
+
203
+ class << self
204
+ # This is a convenience method which is same as follows:
205
+ #
206
+ # begin
207
+ # q = PrettyPrint.new(output, maxwidth, newline, &genspace)
208
+ # ...
209
+ # q.flush
210
+ # output
211
+ # end
212
+ #
213
+ # pkg:gem/prettyprint#lib/prettyprint.rb:48
214
+ def format(output = T.unsafe(nil), maxwidth = T.unsafe(nil), newline = T.unsafe(nil), genspace = T.unsafe(nil)); end
215
+
216
+ # This is similar to PrettyPrint::format but the result has no breaks.
217
+ #
218
+ # +maxwidth+, +newline+ and +genspace+ are ignored.
219
+ #
220
+ # The invocation of +breakable+ in the block doesn't break a line and is
221
+ # treated as just an invocation of +text+.
222
+ #
223
+ # pkg:gem/prettyprint#lib/prettyprint.rb:62
224
+ def singleline_format(output = T.unsafe(nil), maxwidth = T.unsafe(nil), newline = T.unsafe(nil), genspace = T.unsafe(nil)); end
225
+ end
226
+ end
227
+
228
+ # The Breakable class is used for breaking up object information
229
+ #
230
+ # This class is intended for internal use of the PrettyPrint buffers.
231
+ class PrettyPrint::Breakable
232
+ # Create a new Breakable object.
233
+ #
234
+ # Arguments:
235
+ # * +sep+ String of the separator
236
+ # * +width+ Integer width of the +sep+
237
+ # * +q+ parent PrettyPrint object, to base from
238
+ #
239
+ # pkg:gem/prettyprint#lib/prettyprint.rb:348
240
+ def initialize(sep, width, q); end
241
+
242
+ # The number of spaces to indent.
243
+ #
244
+ # This is inferred from +q+ within PrettyPrint, passed in ::new
245
+ #
246
+ # pkg:gem/prettyprint#lib/prettyprint.rb:368
247
+ def indent; end
248
+
249
+ # Holds the separator String
250
+ #
251
+ # The +sep+ argument from ::new
252
+ #
253
+ # pkg:gem/prettyprint#lib/prettyprint.rb:360
254
+ def obj; end
255
+
256
+ # Render the String text of the objects that have been added to this
257
+ # Breakable object.
258
+ #
259
+ # Output the text to +out+, and increment the width to +output_width+
260
+ #
261
+ # pkg:gem/prettyprint#lib/prettyprint.rb:374
262
+ def output(out, output_width); end
263
+
264
+ # The width of +obj+ / +sep+
265
+ #
266
+ # pkg:gem/prettyprint#lib/prettyprint.rb:363
267
+ def width; end
268
+ end
269
+
270
+ # The Group class is used for making indentation easier.
271
+ #
272
+ # While this class does neither the breaking into newlines nor indentation,
273
+ # it is used in a stack (as well as a queue) within PrettyPrint, to group
274
+ # objects.
275
+ #
276
+ # For information on using groups, see PrettyPrint#group
277
+ #
278
+ # This class is intended for internal use of the PrettyPrint buffers.
279
+ class PrettyPrint::Group
280
+ # Create a Group object
281
+ #
282
+ # Arguments:
283
+ # * +depth+ - this group's relation to previous groups
284
+ #
285
+ # pkg:gem/prettyprint#lib/prettyprint.rb:402
286
+ def initialize(depth); end
287
+
288
+ # Makes a break for this Group, and returns true
289
+ #
290
+ # pkg:gem/prettyprint#lib/prettyprint.rb:415
291
+ def break; end
292
+
293
+ # Boolean of whether this Group has made a break
294
+ #
295
+ # pkg:gem/prettyprint#lib/prettyprint.rb:420
296
+ def break?; end
297
+
298
+ # Array to hold the Breakable objects for this Group
299
+ #
300
+ # pkg:gem/prettyprint#lib/prettyprint.rb:412
301
+ def breakables; end
302
+
303
+ # This group's relation to previous groups
304
+ #
305
+ # pkg:gem/prettyprint#lib/prettyprint.rb:409
306
+ def depth; end
307
+
308
+ # Boolean of whether this Group has been queried for being first
309
+ #
310
+ # This is used as a predicate, and ought to be called first.
311
+ #
312
+ # pkg:gem/prettyprint#lib/prettyprint.rb:427
313
+ def first?; end
314
+ end
315
+
316
+ # The GroupQueue class is used for managing the queue of Group to be pretty
317
+ # printed.
318
+ #
319
+ # This queue groups the Group objects, based on their depth.
320
+ #
321
+ # This class is intended for internal use of the PrettyPrint buffers.
322
+ class PrettyPrint::GroupQueue
323
+ # Create a GroupQueue object
324
+ #
325
+ # Arguments:
326
+ # * +groups+ - one or more PrettyPrint::Group objects
327
+ #
328
+ # pkg:gem/prettyprint#lib/prettyprint.rb:448
329
+ def initialize(*groups); end
330
+
331
+ # Remote +group+ from this queue
332
+ #
333
+ # pkg:gem/prettyprint#lib/prettyprint.rb:480
334
+ def delete(group); end
335
+
336
+ # Returns the outer group of the queue
337
+ #
338
+ # pkg:gem/prettyprint#lib/prettyprint.rb:464
339
+ def deq; end
340
+
341
+ # Enqueue +group+
342
+ #
343
+ # This does not strictly append the group to the end of the queue,
344
+ # but instead adds it in line, base on the +group.depth+
345
+ #
346
+ # pkg:gem/prettyprint#lib/prettyprint.rb:457
347
+ def enq(group); end
348
+ end
349
+
350
+ # PrettyPrint::SingleLine is used by PrettyPrint.singleline_format
351
+ #
352
+ # It is passed to be similar to a PrettyPrint object itself, by responding to:
353
+ # * #text
354
+ # * #breakable
355
+ # * #fill_breakable
356
+ # * #nest
357
+ # * #group
358
+ # * #group_sub
359
+ # * #flush
360
+ # * #first?
361
+ #
362
+ # but instead, the output has no line breaks
363
+ class PrettyPrint::SingleLine
364
+ # Create a PrettyPrint::SingleLine object
365
+ #
366
+ # Arguments:
367
+ # * +output+ - String (or similar) to store rendered text. Needs to respond to '<<'
368
+ # * +maxwidth+ - Argument position expected to be here for compatibility.
369
+ # This argument is a noop.
370
+ # * +newline+ - Argument position expected to be here for compatibility.
371
+ # This argument is a noop.
372
+ #
373
+ # pkg:gem/prettyprint#lib/prettyprint.rb:508
374
+ def initialize(output, maxwidth = T.unsafe(nil), newline = T.unsafe(nil)); end
375
+
376
+ # Method present for compatibility, but is a noop
377
+ #
378
+ # pkg:gem/prettyprint#lib/prettyprint.rb:563
379
+ def break_outmost_groups; end
380
+
381
+ # Appends +sep+ to the text to be output. By default +sep+ is ' '
382
+ #
383
+ # +width+ argument is here for compatibility. It is a noop argument.
384
+ #
385
+ # pkg:gem/prettyprint#lib/prettyprint.rb:523
386
+ def breakable(sep = T.unsafe(nil), width = T.unsafe(nil)); end
387
+
388
+ # Appends +sep+ to the text to be output. By default +sep+ is ' '
389
+ #
390
+ # +width+ argument is here for compatibility. It is a noop argument.
391
+ #
392
+ # pkg:gem/prettyprint#lib/prettyprint.rb:530
393
+ def fill_breakable(sep = T.unsafe(nil), width = T.unsafe(nil)); end
394
+
395
+ # This is used as a predicate, and ought to be called first.
396
+ #
397
+ # pkg:gem/prettyprint#lib/prettyprint.rb:571
398
+ def first?; end
399
+
400
+ # Method present for compatibility, but is a noop
401
+ #
402
+ # pkg:gem/prettyprint#lib/prettyprint.rb:567
403
+ def flush; end
404
+
405
+ # Opens a block for grouping objects to be pretty printed.
406
+ #
407
+ # Arguments:
408
+ # * +indent+ - noop argument. Present for compatibility.
409
+ # * +open_obj+ - text appended before the &blok. Default is ''
410
+ # * +close_obj+ - text appended after the &blok. Default is ''
411
+ # * +open_width+ - noop argument. Present for compatibility.
412
+ # * +close_width+ - noop argument. Present for compatibility.
413
+ #
414
+ # pkg:gem/prettyprint#lib/prettyprint.rb:549
415
+ def group(indent = T.unsafe(nil), open_obj = T.unsafe(nil), close_obj = T.unsafe(nil), open_width = T.unsafe(nil), close_width = T.unsafe(nil)); end
416
+
417
+ # Yields to a block for compatibility.
418
+ #
419
+ # pkg:gem/prettyprint#lib/prettyprint.rb:558
420
+ def group_sub; end
421
+
422
+ # Takes +indent+ arg, but does nothing with it.
423
+ #
424
+ # Yields to a block.
425
+ #
426
+ # pkg:gem/prettyprint#lib/prettyprint.rb:537
427
+ def nest(indent); end
428
+
429
+ # Add +obj+ to the text to be output.
430
+ #
431
+ # +width+ argument is here for compatibility. It is a noop argument.
432
+ #
433
+ # pkg:gem/prettyprint#lib/prettyprint.rb:516
434
+ def text(obj, width = T.unsafe(nil)); end
435
+ end
436
+
437
+ # The Text class is the means by which to collect strings from objects.
438
+ #
439
+ # This class is intended for internal use of the PrettyPrint buffers.
440
+ class PrettyPrint::Text
441
+ # Creates a new text object.
442
+ #
443
+ # This constructor takes no arguments.
444
+ #
445
+ # The workflow is to append a PrettyPrint::Text object to the buffer, and
446
+ # being able to call the buffer.last() to reference it.
447
+ #
448
+ # As there are objects, use PrettyPrint::Text#add to include the objects
449
+ # and the width to utilized by the String version of this object.
450
+ #
451
+ # pkg:gem/prettyprint#lib/prettyprint.rb:313
452
+ def initialize; end
453
+
454
+ # Include +obj+ in the objects to be pretty printed, and increment
455
+ # this Text object's total width by +width+
456
+ #
457
+ # pkg:gem/prettyprint#lib/prettyprint.rb:331
458
+ def add(obj, width); end
459
+
460
+ # Render the String text of the objects that have been added to this Text object.
461
+ #
462
+ # Output the text to +out+, and increment the width to +output_width+
463
+ #
464
+ # pkg:gem/prettyprint#lib/prettyprint.rb:324
465
+ def output(out, output_width); end
466
+
467
+ # The total width of the objects included in this Text object.
468
+ #
469
+ # pkg:gem/prettyprint#lib/prettyprint.rb:319
470
+ def width; end
471
+ end
472
+
473
+ # The version string
474
+ #
475
+ # pkg:gem/prettyprint#lib/prettyprint.rb:37
476
+ PrettyPrint::VERSION = T.let(T.unsafe(nil), String)