privat_bank_business_api 0.2.1

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 (102) hide show
  1. checksums.yaml +7 -0
  2. data/.devcontainer/Dockerfile +17 -0
  3. data/.devcontainer/devcontainer.json +33 -0
  4. data/.devcontainer/post-create.sh +8 -0
  5. data/.rspec +3 -0
  6. data/.rubocop.yml +9 -0
  7. data/.vscode/settings.json +6 -0
  8. data/CHANGELOG.md +12 -0
  9. data/CODE_OF_CONDUCT.md +132 -0
  10. data/LICENSE.txt +21 -0
  11. data/README.md +123 -0
  12. data/Rakefile +12 -0
  13. data/lib/pb_api/base_transformer.rb +19 -0
  14. data/lib/pb_api/client.rb +41 -0
  15. data/lib/pb_api/models/balance.rb +79 -0
  16. data/lib/pb_api/models/base_struct.rb +30 -0
  17. data/lib/pb_api/models/transaction.rb +114 -0
  18. data/lib/pb_api/pagination_helper.rb +73 -0
  19. data/lib/pb_api/resource.rb +97 -0
  20. data/lib/pb_api/resources/balance_resource.rb +40 -0
  21. data/lib/pb_api/resources/transaction_resource.rb +105 -0
  22. data/lib/pb_api/transformers/balance_transformer.rb +35 -0
  23. data/lib/pb_api/transformers/transaction_transformer.rb +46 -0
  24. data/lib/pb_api/types.rb +8 -0
  25. data/lib/pb_api/version.rb +5 -0
  26. data/lib/pb_api.rb +34 -0
  27. data/sig/privat_bank_buisness_api.rbs +4 -0
  28. data/sorbet/config +4 -0
  29. data/sorbet/rbi/annotations/.gitattributes +1 -0
  30. data/sorbet/rbi/annotations/faraday.rbi +17 -0
  31. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  32. data/sorbet/rbi/gems/.gitattributes +1 -0
  33. data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
  34. data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
  35. data/sorbet/rbi/gems/bigdecimal@3.1.9.rbi +9 -0
  36. data/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi +9 -0
  37. data/sorbet/rbi/gems/date@3.4.1.rbi +75 -0
  38. data/sorbet/rbi/gems/diff-lcs@1.6.0.rbi +1134 -0
  39. data/sorbet/rbi/gems/dry-core@1.1.0.rbi +9 -0
  40. data/sorbet/rbi/gems/dry-inflector@1.2.0.rbi +9 -0
  41. data/sorbet/rbi/gems/dry-logic@1.6.0.rbi +9 -0
  42. data/sorbet/rbi/gems/dry-struct@1.7.1.rbi +925 -0
  43. data/sorbet/rbi/gems/dry-transformer@1.0.1.rbi +1512 -0
  44. data/sorbet/rbi/gems/dry-types@1.8.2.rbi +9 -0
  45. data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
  46. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +9 -0
  47. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +9 -0
  48. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +9 -0
  49. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +9 -0
  50. data/sorbet/rbi/gems/faraday-multipart@1.1.0.rbi +9 -0
  51. data/sorbet/rbi/gems/faraday-net_http@1.0.2.rbi +9 -0
  52. data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +9 -0
  53. data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +9 -0
  54. data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +9 -0
  55. data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +9 -0
  56. data/sorbet/rbi/gems/faraday@1.10.4.rbi +9 -0
  57. data/sorbet/rbi/gems/faraday_middleware@1.2.1.rbi +9 -0
  58. data/sorbet/rbi/gems/i18n@1.14.7.rbi +2208 -0
  59. data/sorbet/rbi/gems/ice_nine@0.11.2.rbi +9 -0
  60. data/sorbet/rbi/gems/io-console@0.8.0.rbi +9 -0
  61. data/sorbet/rbi/gems/json@2.10.1.rbi +2120 -0
  62. data/sorbet/rbi/gems/language_server-protocol@3.17.0.4.rbi +9 -0
  63. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +86 -0
  64. data/sorbet/rbi/gems/logger@1.6.6.rbi +940 -0
  65. data/sorbet/rbi/gems/money@6.19.0.rbi +2260 -0
  66. data/sorbet/rbi/gems/multipart-post@2.4.1.rbi +9 -0
  67. data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
  68. data/sorbet/rbi/gems/parallel@1.26.3.rbi +291 -0
  69. data/sorbet/rbi/gems/parser@3.3.7.1.rbi +5525 -0
  70. data/sorbet/rbi/gems/pp@0.6.2.rbi +368 -0
  71. data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +477 -0
  72. data/sorbet/rbi/gems/prism@1.3.0.rbi +41403 -0
  73. data/sorbet/rbi/gems/psych@5.2.3.rbi +2435 -0
  74. data/sorbet/rbi/gems/racc@1.8.1.rbi +164 -0
  75. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  76. data/sorbet/rbi/gems/rake@13.2.1.rbi +3028 -0
  77. data/sorbet/rbi/gems/rbi@0.2.4.rbi +4542 -0
  78. data/sorbet/rbi/gems/rdoc@6.12.0.rbi +12758 -0
  79. data/sorbet/rbi/gems/regexp_parser@2.10.0.rbi +3795 -0
  80. data/sorbet/rbi/gems/reline@0.6.0.rbi +2451 -0
  81. data/sorbet/rbi/gems/rspec-core@3.13.3.rbi +10986 -0
  82. data/sorbet/rbi/gems/rspec-expectations@3.13.3.rbi +8183 -0
  83. data/sorbet/rbi/gems/rspec-mocks@3.13.2.rbi +5341 -0
  84. data/sorbet/rbi/gems/rspec-support@3.13.2.rbi +1630 -0
  85. data/sorbet/rbi/gems/rspec@3.13.0.rbi +83 -0
  86. data/sorbet/rbi/gems/rubocop-ast@1.38.0.rbi +7654 -0
  87. data/sorbet/rbi/gems/rubocop@1.72.2.rbi +61026 -0
  88. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  89. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +9 -0
  90. data/sorbet/rbi/gems/spoom@1.5.4.rbi +5026 -0
  91. data/sorbet/rbi/gems/stringio@3.1.5.rbi +9 -0
  92. data/sorbet/rbi/gems/tapioca@0.16.11.rbi +3656 -0
  93. data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
  94. data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
  95. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
  96. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
  97. data/sorbet/rbi/gems/yard@0.9.37.rbi +18379 -0
  98. data/sorbet/rbi/gems/zeitwerk@2.7.2.rbi +9 -0
  99. data/sorbet/rbi/todo.rbi +17 -0
  100. data/sorbet/tapioca/config.yml +13 -0
  101. data/sorbet/tapioca/require.rb +8 -0
  102. metadata +231 -0
@@ -0,0 +1,477 @@
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
+ # @return [PrettyPrint] a new instance of PrettyPrint
57
+ #
58
+ # source://prettyprint//lib/prettyprint.rb#84
59
+ def initialize(output = T.unsafe(nil), maxwidth = T.unsafe(nil), newline = T.unsafe(nil), &genspace); end
60
+
61
+ # Breaks the buffer into lines that are shorter than #maxwidth
62
+ #
63
+ # source://prettyprint//lib/prettyprint.rb#162
64
+ def break_outmost_groups; end
65
+
66
+ # This says "you can break a line here if necessary", and a +width+\-column
67
+ # text +sep+ is inserted if a line is not broken at the point.
68
+ #
69
+ # If +sep+ is not specified, " " is used.
70
+ #
71
+ # If +width+ is not specified, +sep.length+ is used. You will have to
72
+ # specify this when +sep+ is a multibyte character, for example.
73
+ #
74
+ # source://prettyprint//lib/prettyprint.rb#226
75
+ def breakable(sep = T.unsafe(nil), width = T.unsafe(nil)); end
76
+
77
+ # Returns the group most recently added to the stack.
78
+ #
79
+ # Contrived example:
80
+ # out = ""
81
+ # => ""
82
+ # q = PrettyPrint.new(out)
83
+ # => #<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>
84
+ # q.group {
85
+ # q.text q.current_group.inspect
86
+ # q.text q.newline
87
+ # q.group(q.current_group.depth + 1) {
88
+ # q.text q.current_group.inspect
89
+ # q.text q.newline
90
+ # q.group(q.current_group.depth + 1) {
91
+ # q.text q.current_group.inspect
92
+ # q.text q.newline
93
+ # q.group(q.current_group.depth + 1) {
94
+ # q.text q.current_group.inspect
95
+ # q.text q.newline
96
+ # }
97
+ # }
98
+ # }
99
+ # }
100
+ # => 284
101
+ # puts out
102
+ # #<PrettyPrint::Group:0x8354758 @depth=1, @breakables=[], @break=false>
103
+ # #<PrettyPrint::Group:0x8354550 @depth=2, @breakables=[], @break=false>
104
+ # #<PrettyPrint::Group:0x83541cc @depth=3, @breakables=[], @break=false>
105
+ # #<PrettyPrint::Group:0x8347e54 @depth=4, @breakables=[], @break=false>
106
+ #
107
+ # source://prettyprint//lib/prettyprint.rb#157
108
+ def current_group; end
109
+
110
+ # This is similar to #breakable except
111
+ # the decision to break or not is determined individually.
112
+ #
113
+ # Two #fill_breakable under a group may cause 4 results:
114
+ # (break,break), (break,non-break), (non-break,break), (non-break,non-break).
115
+ # This is different to #breakable because two #breakable under a group
116
+ # may cause 2 results:
117
+ # (break,break), (non-break,non-break).
118
+ #
119
+ # The text +sep+ is inserted if a line is not broken at this point.
120
+ #
121
+ # If +sep+ is not specified, " " is used.
122
+ #
123
+ # If +width+ is not specified, +sep.length+ is used. You will have to
124
+ # specify this when +sep+ is a multibyte character, for example.
125
+ #
126
+ # source://prettyprint//lib/prettyprint.rb#214
127
+ def fill_breakable(sep = T.unsafe(nil), width = T.unsafe(nil)); end
128
+
129
+ # outputs buffered data.
130
+ #
131
+ # source://prettyprint//lib/prettyprint.rb#290
132
+ def flush; end
133
+
134
+ # A lambda or Proc, that takes one argument, of an Integer, and returns
135
+ # the corresponding number of spaces.
136
+ #
137
+ # By default this is:
138
+ # lambda {|n| ' ' * n}
139
+ #
140
+ # source://prettyprint//lib/prettyprint.rb#120
141
+ def genspace; end
142
+
143
+ # Groups line break hints added in the block. The line break hints are all
144
+ # to be used or not.
145
+ #
146
+ # If +indent+ is specified, the method call is regarded as nested by
147
+ # nest(indent) { ... }.
148
+ #
149
+ # If +open_obj+ is specified, <tt>text open_obj, open_width</tt> is called
150
+ # before grouping. If +close_obj+ is specified, <tt>text close_obj,
151
+ # close_width</tt> is called after grouping.
152
+ #
153
+ # source://prettyprint//lib/prettyprint.rb#251
154
+ 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
155
+
156
+ # The PrettyPrint::GroupQueue of groups in stack to be pretty printed
157
+ #
158
+ # source://prettyprint//lib/prettyprint.rb#126
159
+ def group_queue; end
160
+
161
+ # Takes a block and queues a new group that is indented 1 level further.
162
+ #
163
+ # source://prettyprint//lib/prettyprint.rb#262
164
+ def group_sub; end
165
+
166
+ # The number of spaces to be indented
167
+ #
168
+ # source://prettyprint//lib/prettyprint.rb#123
169
+ def indent; end
170
+
171
+ # The maximum width of a line, before it is separated in to a newline
172
+ #
173
+ # This defaults to 79, and should be an Integer
174
+ #
175
+ # source://prettyprint//lib/prettyprint.rb#108
176
+ def maxwidth; end
177
+
178
+ # Increases left margin after newline with +indent+ for line breaks added in
179
+ # the block.
180
+ #
181
+ # source://prettyprint//lib/prettyprint.rb#279
182
+ def nest(indent); end
183
+
184
+ # The value that is appended to +output+ to add a new line.
185
+ #
186
+ # This defaults to "\n", and should be String
187
+ #
188
+ # source://prettyprint//lib/prettyprint.rb#113
189
+ def newline; end
190
+
191
+ # The output object.
192
+ #
193
+ # This defaults to '', and should accept the << method
194
+ #
195
+ # source://prettyprint//lib/prettyprint.rb#103
196
+ def output; end
197
+
198
+ # This adds +obj+ as a text of +width+ columns in width.
199
+ #
200
+ # If +width+ is not specified, obj.length is used.
201
+ #
202
+ # source://prettyprint//lib/prettyprint.rb#182
203
+ def text(obj, width = T.unsafe(nil)); end
204
+
205
+ class << self
206
+ # This is a convenience method which is same as follows:
207
+ #
208
+ # begin
209
+ # q = PrettyPrint.new(output, maxwidth, newline, &genspace)
210
+ # ...
211
+ # q.flush
212
+ # output
213
+ # end
214
+ #
215
+ # @yield [q]
216
+ #
217
+ # source://prettyprint//lib/prettyprint.rb#47
218
+ def format(output = T.unsafe(nil), maxwidth = T.unsafe(nil), newline = T.unsafe(nil), genspace = T.unsafe(nil)); end
219
+
220
+ # This is similar to PrettyPrint::format but the result has no breaks.
221
+ #
222
+ # +maxwidth+, +newline+ and +genspace+ are ignored.
223
+ #
224
+ # The invocation of +breakable+ in the block doesn't break a line and is
225
+ # treated as just an invocation of +text+.
226
+ #
227
+ # @yield [q]
228
+ #
229
+ # source://prettyprint//lib/prettyprint.rb#61
230
+ def singleline_format(output = T.unsafe(nil), maxwidth = T.unsafe(nil), newline = T.unsafe(nil), genspace = T.unsafe(nil)); end
231
+ end
232
+ end
233
+
234
+ # The Breakable class is used for breaking up object information
235
+ #
236
+ # This class is intended for internal use of the PrettyPrint buffers.
237
+ class PrettyPrint::Breakable
238
+ # Create a new Breakable object.
239
+ #
240
+ # Arguments:
241
+ # * +sep+ String of the separator
242
+ # * +width+ Integer width of the +sep+
243
+ # * +q+ parent PrettyPrint object, to base from
244
+ #
245
+ # @return [Breakable] a new instance of Breakable
246
+ #
247
+ # source://prettyprint//lib/prettyprint.rb#347
248
+ def initialize(sep, width, q); end
249
+
250
+ # The number of spaces to indent.
251
+ #
252
+ # This is inferred from +q+ within PrettyPrint, passed in ::new
253
+ #
254
+ # source://prettyprint//lib/prettyprint.rb#367
255
+ def indent; end
256
+
257
+ # Holds the separator String
258
+ #
259
+ # The +sep+ argument from ::new
260
+ #
261
+ # source://prettyprint//lib/prettyprint.rb#359
262
+ def obj; end
263
+
264
+ # Render the String text of the objects that have been added to this
265
+ # Breakable object.
266
+ #
267
+ # Output the text to +out+, and increment the width to +output_width+
268
+ #
269
+ # source://prettyprint//lib/prettyprint.rb#373
270
+ def output(out, output_width); end
271
+
272
+ # The width of +obj+ / +sep+
273
+ #
274
+ # source://prettyprint//lib/prettyprint.rb#362
275
+ def width; end
276
+ end
277
+
278
+ # The Group class is used for making indentation easier.
279
+ #
280
+ # While this class does neither the breaking into newlines nor indentation,
281
+ # it is used in a stack (as well as a queue) within PrettyPrint, to group
282
+ # objects.
283
+ #
284
+ # For information on using groups, see PrettyPrint#group
285
+ #
286
+ # This class is intended for internal use of the PrettyPrint buffers.
287
+ class PrettyPrint::Group
288
+ # Create a Group object
289
+ #
290
+ # Arguments:
291
+ # * +depth+ - this group's relation to previous groups
292
+ #
293
+ # @return [Group] a new instance of Group
294
+ #
295
+ # source://prettyprint//lib/prettyprint.rb#401
296
+ def initialize(depth); end
297
+
298
+ # Makes a break for this Group, and returns true
299
+ #
300
+ # source://prettyprint//lib/prettyprint.rb#414
301
+ def break; end
302
+
303
+ # Boolean of whether this Group has made a break
304
+ #
305
+ # @return [Boolean]
306
+ #
307
+ # source://prettyprint//lib/prettyprint.rb#419
308
+ def break?; end
309
+
310
+ # Array to hold the Breakable objects for this Group
311
+ #
312
+ # source://prettyprint//lib/prettyprint.rb#411
313
+ def breakables; end
314
+
315
+ # This group's relation to previous groups
316
+ #
317
+ # source://prettyprint//lib/prettyprint.rb#408
318
+ def depth; end
319
+
320
+ # Boolean of whether this Group has been queried for being first
321
+ #
322
+ # This is used as a predicate, and ought to be called first.
323
+ #
324
+ # @return [Boolean]
325
+ #
326
+ # source://prettyprint//lib/prettyprint.rb#426
327
+ def first?; end
328
+ end
329
+
330
+ # The GroupQueue class is used for managing the queue of Group to be pretty
331
+ # printed.
332
+ #
333
+ # This queue groups the Group objects, based on their depth.
334
+ #
335
+ # This class is intended for internal use of the PrettyPrint buffers.
336
+ class PrettyPrint::GroupQueue
337
+ # Create a GroupQueue object
338
+ #
339
+ # Arguments:
340
+ # * +groups+ - one or more PrettyPrint::Group objects
341
+ #
342
+ # @return [GroupQueue] a new instance of GroupQueue
343
+ #
344
+ # source://prettyprint//lib/prettyprint.rb#447
345
+ def initialize(*groups); end
346
+
347
+ # Remote +group+ from this queue
348
+ #
349
+ # source://prettyprint//lib/prettyprint.rb#479
350
+ def delete(group); end
351
+
352
+ # Returns the outer group of the queue
353
+ #
354
+ # source://prettyprint//lib/prettyprint.rb#463
355
+ def deq; end
356
+
357
+ # Enqueue +group+
358
+ #
359
+ # This does not strictly append the group to the end of the queue,
360
+ # but instead adds it in line, base on the +group.depth+
361
+ #
362
+ # source://prettyprint//lib/prettyprint.rb#456
363
+ def enq(group); end
364
+ end
365
+
366
+ # PrettyPrint::SingleLine is used by PrettyPrint.singleline_format
367
+ #
368
+ # It is passed to be similar to a PrettyPrint object itself, by responding to:
369
+ # * #text
370
+ # * #breakable
371
+ # * #nest
372
+ # * #group
373
+ # * #flush
374
+ # * #first?
375
+ #
376
+ # but instead, the output has no line breaks
377
+ class PrettyPrint::SingleLine
378
+ # Create a PrettyPrint::SingleLine object
379
+ #
380
+ # Arguments:
381
+ # * +output+ - String (or similar) to store rendered text. Needs to respond to '<<'
382
+ # * +maxwidth+ - Argument position expected to be here for compatibility.
383
+ # This argument is a noop.
384
+ # * +newline+ - Argument position expected to be here for compatibility.
385
+ # This argument is a noop.
386
+ #
387
+ # @return [SingleLine] a new instance of SingleLine
388
+ #
389
+ # source://prettyprint//lib/prettyprint.rb#505
390
+ def initialize(output, maxwidth = T.unsafe(nil), newline = T.unsafe(nil)); end
391
+
392
+ # Appends +sep+ to the text to be output. By default +sep+ is ' '
393
+ #
394
+ # +width+ argument is here for compatibility. It is a noop argument.
395
+ #
396
+ # source://prettyprint//lib/prettyprint.rb#520
397
+ def breakable(sep = T.unsafe(nil), width = T.unsafe(nil)); end
398
+
399
+ # This is used as a predicate, and ought to be called first.
400
+ #
401
+ # @return [Boolean]
402
+ #
403
+ # source://prettyprint//lib/prettyprint.rb#552
404
+ def first?; end
405
+
406
+ # Method present for compatibility, but is a noop
407
+ #
408
+ # source://prettyprint//lib/prettyprint.rb#548
409
+ def flush; end
410
+
411
+ # Opens a block for grouping objects to be pretty printed.
412
+ #
413
+ # Arguments:
414
+ # * +indent+ - noop argument. Present for compatibility.
415
+ # * +open_obj+ - text appended before the &blok. Default is ''
416
+ # * +close_obj+ - text appended after the &blok. Default is ''
417
+ # * +open_width+ - noop argument. Present for compatibility.
418
+ # * +close_width+ - noop argument. Present for compatibility.
419
+ #
420
+ # source://prettyprint//lib/prettyprint.rb#539
421
+ 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
422
+
423
+ # Takes +indent+ arg, but does nothing with it.
424
+ #
425
+ # Yields to a block.
426
+ #
427
+ # source://prettyprint//lib/prettyprint.rb#527
428
+ def nest(indent); end
429
+
430
+ # Add +obj+ to the text to be output.
431
+ #
432
+ # +width+ argument is here for compatibility. It is a noop argument.
433
+ #
434
+ # source://prettyprint//lib/prettyprint.rb#513
435
+ def text(obj, width = T.unsafe(nil)); end
436
+ end
437
+
438
+ # The Text class is the means by which to collect strings from objects.
439
+ #
440
+ # This class is intended for internal use of the PrettyPrint buffers.
441
+ class PrettyPrint::Text
442
+ # Creates a new text object.
443
+ #
444
+ # This constructor takes no arguments.
445
+ #
446
+ # The workflow is to append a PrettyPrint::Text object to the buffer, and
447
+ # being able to call the buffer.last() to reference it.
448
+ #
449
+ # As there are objects, use PrettyPrint::Text#add to include the objects
450
+ # and the width to utilized by the String version of this object.
451
+ #
452
+ # @return [Text] a new instance of Text
453
+ #
454
+ # source://prettyprint//lib/prettyprint.rb#312
455
+ def initialize; end
456
+
457
+ # Include +obj+ in the objects to be pretty printed, and increment
458
+ # this Text object's total width by +width+
459
+ #
460
+ # source://prettyprint//lib/prettyprint.rb#330
461
+ def add(obj, width); end
462
+
463
+ # Render the String text of the objects that have been added to this Text object.
464
+ #
465
+ # Output the text to +out+, and increment the width to +output_width+
466
+ #
467
+ # source://prettyprint//lib/prettyprint.rb#323
468
+ def output(out, output_width); end
469
+
470
+ # The total width of the objects included in this Text object.
471
+ #
472
+ # source://prettyprint//lib/prettyprint.rb#318
473
+ def width; end
474
+ end
475
+
476
+ # source://prettyprint//lib/prettyprint.rb#36
477
+ PrettyPrint::VERSION = T.let(T.unsafe(nil), String)