venture 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/.ruby-version +1 -0
  3. data/.standard.yml +6 -0
  4. data/.tool-versions +1 -0
  5. data/CHANGELOG.md +1 -0
  6. data/CODE_OF_CONDUCT.md +84 -0
  7. data/Gemfile +22 -0
  8. data/Gemfile.lock +132 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +39 -0
  11. data/Rakefile +22 -0
  12. data/lib/venture/response.rb +7 -0
  13. data/lib/venture.rb +28 -0
  14. data/sorbet/config +5 -0
  15. data/sorbet/rbi/gems/.gitattributes +1 -0
  16. data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
  17. data/sorbet/rbi/gems/erubi@1.13.0.rbi +150 -0
  18. data/sorbet/rbi/gems/io-console@0.7.2.rbi +9 -0
  19. data/sorbet/rbi/gems/json@2.7.2.rbi +1562 -0
  20. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
  21. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +240 -0
  22. data/sorbet/rbi/gems/minitest@5.24.1.rbi +2249 -0
  23. data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
  24. data/sorbet/rbi/gems/parallel@1.25.1.rbi +287 -0
  25. data/sorbet/rbi/gems/parser@3.3.3.0.rbi +5519 -0
  26. data/sorbet/rbi/gems/prism@0.30.0.rbi +39212 -0
  27. data/sorbet/rbi/gems/psych@5.1.2.rbi +1769 -0
  28. data/sorbet/rbi/gems/racc@1.8.0.rbi +162 -0
  29. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  30. data/sorbet/rbi/gems/rake@13.2.1.rbi +3028 -0
  31. data/sorbet/rbi/gems/rbi@0.1.13.rbi +3078 -0
  32. data/sorbet/rbi/gems/regexp_parser@2.9.2.rbi +3772 -0
  33. data/sorbet/rbi/gems/reline@0.5.9.rbi +9 -0
  34. data/sorbet/rbi/gems/rexml@3.3.1.rbi +4813 -0
  35. data/sorbet/rbi/gems/rubocop-ast@1.31.3.rbi +7012 -0
  36. data/sorbet/rbi/gems/rubocop-performance@1.21.1.rbi +9 -0
  37. data/sorbet/rbi/gems/rubocop-sorbet@0.7.8.rbi +9 -0
  38. data/sorbet/rbi/gems/rubocop@1.64.1.rbi +58099 -0
  39. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  40. data/sorbet/rbi/gems/sorbet-http@0.0.1.rbi +143 -0
  41. data/sorbet/rbi/gems/sorbet-result@1.1.0.rbi +224 -0
  42. data/sorbet/rbi/gems/spoom@1.3.2.rbi +4421 -0
  43. data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +9 -0
  44. data/sorbet/rbi/gems/standard-performance@1.4.0.rbi +9 -0
  45. data/sorbet/rbi/gems/standard-sorbet@0.0.2.rbi +53 -0
  46. data/sorbet/rbi/gems/standard@1.39.1.rbi +923 -0
  47. data/sorbet/rbi/gems/stringio@3.1.1.rbi +9 -0
  48. data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
  49. data/sorbet/rbi/gems/tapioca@0.15.0.rbi +3566 -0
  50. data/sorbet/rbi/gems/thor@1.3.1.rbi +4352 -0
  51. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +66 -0
  52. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
  53. data/sorbet/rbi/gems/yard@0.9.36.rbi +18221 -0
  54. data/sorbet/rbi/gems/zeitwerk@2.6.16.rbi +9 -0
  55. data/sorbet/tapioca/config.yml +4 -0
  56. data/sorbet/tapioca/require.rb +7 -0
  57. metadata +145 -0
@@ -0,0 +1,1769 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `psych` gem.
5
+ # Please instead update this file by running `bin/tapioca gem psych`.
6
+
7
+
8
+ # source://psych//lib/psych/core_ext.rb#2
9
+ class Object < ::BasicObject
10
+ include ::Kernel
11
+ include ::PP::ObjectMixin
12
+
13
+ # call-seq: to_yaml(options = {})
14
+ #
15
+ # Convert an object to YAML. See Psych.dump for more information on the
16
+ # available +options+.
17
+ #
18
+ # source://psych//lib/psych/core_ext.rb#12
19
+ def to_yaml(options = T.unsafe(nil)); end
20
+
21
+ class << self
22
+ # source://psych//lib/psych/core_ext.rb#3
23
+ def yaml_tag(url); end
24
+ end
25
+ end
26
+
27
+ # = Overview
28
+ #
29
+ # Psych is a YAML parser and emitter.
30
+ # Psych leverages libyaml [Home page: https://pyyaml.org/wiki/LibYAML]
31
+ # or [git repo: https://github.com/yaml/libyaml] for its YAML parsing
32
+ # and emitting capabilities. In addition to wrapping libyaml, Psych also
33
+ # knows how to serialize and de-serialize most Ruby objects to and from
34
+ # the YAML format.
35
+ #
36
+ # = I NEED TO PARSE OR EMIT YAML RIGHT NOW!
37
+ #
38
+ # # Parse some YAML
39
+ # Psych.load("--- foo") # => "foo"
40
+ #
41
+ # # Emit some YAML
42
+ # Psych.dump("foo") # => "--- foo\n...\n"
43
+ # { :a => 'b'}.to_yaml # => "---\n:a: b\n"
44
+ #
45
+ # Got more time on your hands? Keep on reading!
46
+ #
47
+ # == YAML Parsing
48
+ #
49
+ # Psych provides a range of interfaces for parsing a YAML document ranging from
50
+ # low level to high level, depending on your parsing needs. At the lowest
51
+ # level, is an event based parser. Mid level is access to the raw YAML AST,
52
+ # and at the highest level is the ability to unmarshal YAML to Ruby objects.
53
+ #
54
+ # == YAML Emitting
55
+ #
56
+ # Psych provides a range of interfaces ranging from low to high level for
57
+ # producing YAML documents. Very similar to the YAML parsing interfaces, Psych
58
+ # provides at the lowest level, an event based system, mid-level is building
59
+ # a YAML AST, and the highest level is converting a Ruby object straight to
60
+ # a YAML document.
61
+ #
62
+ # == High-level API
63
+ #
64
+ # === Parsing
65
+ #
66
+ # The high level YAML parser provided by Psych simply takes YAML as input and
67
+ # returns a Ruby data structure. For information on using the high level parser
68
+ # see Psych.load
69
+ #
70
+ # ==== Reading from a string
71
+ #
72
+ # Psych.safe_load("--- a") # => 'a'
73
+ # Psych.safe_load("---\n - a\n - b") # => ['a', 'b']
74
+ # # From a trusted string:
75
+ # Psych.load("--- !ruby/range\nbegin: 0\nend: 42\nexcl: false\n") # => 0..42
76
+ #
77
+ # ==== Reading from a file
78
+ #
79
+ # Psych.safe_load_file("data.yml", permitted_classes: [Date])
80
+ # Psych.load_file("trusted_database.yml")
81
+ #
82
+ # ==== Exception handling
83
+ #
84
+ # begin
85
+ # # The second argument changes only the exception contents
86
+ # Psych.parse("--- `", "file.txt")
87
+ # rescue Psych::SyntaxError => ex
88
+ # ex.file # => 'file.txt'
89
+ # ex.message # => "(file.txt): found character that cannot start any token"
90
+ # end
91
+ #
92
+ # === Emitting
93
+ #
94
+ # The high level emitter has the easiest interface. Psych simply takes a Ruby
95
+ # data structure and converts it to a YAML document. See Psych.dump for more
96
+ # information on dumping a Ruby data structure.
97
+ #
98
+ # ==== Writing to a string
99
+ #
100
+ # # Dump an array, get back a YAML string
101
+ # Psych.dump(['a', 'b']) # => "---\n- a\n- b\n"
102
+ #
103
+ # # Dump an array to an IO object
104
+ # Psych.dump(['a', 'b'], StringIO.new) # => #<StringIO:0x000001009d0890>
105
+ #
106
+ # # Dump an array with indentation set
107
+ # Psych.dump(['a', ['b']], :indentation => 3) # => "---\n- a\n- - b\n"
108
+ #
109
+ # # Dump an array to an IO with indentation set
110
+ # Psych.dump(['a', ['b']], StringIO.new, :indentation => 3)
111
+ #
112
+ # ==== Writing to a file
113
+ #
114
+ # Currently there is no direct API for dumping Ruby structure to file:
115
+ #
116
+ # File.open('database.yml', 'w') do |file|
117
+ # file.write(Psych.dump(['a', 'b']))
118
+ # end
119
+ #
120
+ # == Mid-level API
121
+ #
122
+ # === Parsing
123
+ #
124
+ # Psych provides access to an AST produced from parsing a YAML document. This
125
+ # tree is built using the Psych::Parser and Psych::TreeBuilder. The AST can
126
+ # be examined and manipulated freely. Please see Psych::parse_stream,
127
+ # Psych::Nodes, and Psych::Nodes::Node for more information on dealing with
128
+ # YAML syntax trees.
129
+ #
130
+ # ==== Reading from a string
131
+ #
132
+ # # Returns Psych::Nodes::Stream
133
+ # Psych.parse_stream("---\n - a\n - b")
134
+ #
135
+ # # Returns Psych::Nodes::Document
136
+ # Psych.parse("---\n - a\n - b")
137
+ #
138
+ # ==== Reading from a file
139
+ #
140
+ # # Returns Psych::Nodes::Stream
141
+ # Psych.parse_stream(File.read('database.yml'))
142
+ #
143
+ # # Returns Psych::Nodes::Document
144
+ # Psych.parse_file('database.yml')
145
+ #
146
+ # ==== Exception handling
147
+ #
148
+ # begin
149
+ # # The second argument changes only the exception contents
150
+ # Psych.parse("--- `", "file.txt")
151
+ # rescue Psych::SyntaxError => ex
152
+ # ex.file # => 'file.txt'
153
+ # ex.message # => "(file.txt): found character that cannot start any token"
154
+ # end
155
+ #
156
+ # === Emitting
157
+ #
158
+ # At the mid level is building an AST. This AST is exactly the same as the AST
159
+ # used when parsing a YAML document. Users can build an AST by hand and the
160
+ # AST knows how to emit itself as a YAML document. See Psych::Nodes,
161
+ # Psych::Nodes::Node, and Psych::TreeBuilder for more information on building
162
+ # a YAML AST.
163
+ #
164
+ # ==== Writing to a string
165
+ #
166
+ # # We need Psych::Nodes::Stream (not Psych::Nodes::Document)
167
+ # stream = Psych.parse_stream("---\n - a\n - b")
168
+ #
169
+ # stream.to_yaml # => "---\n- a\n- b\n"
170
+ #
171
+ # ==== Writing to a file
172
+ #
173
+ # # We need Psych::Nodes::Stream (not Psych::Nodes::Document)
174
+ # stream = Psych.parse_stream(File.read('database.yml'))
175
+ #
176
+ # File.open('database.yml', 'w') do |file|
177
+ # file.write(stream.to_yaml)
178
+ # end
179
+ #
180
+ # == Low-level API
181
+ #
182
+ # === Parsing
183
+ #
184
+ # The lowest level parser should be used when the YAML input is already known,
185
+ # and the developer does not want to pay the price of building an AST or
186
+ # automatic detection and conversion to Ruby objects. See Psych::Parser for
187
+ # more information on using the event based parser.
188
+ #
189
+ # ==== Reading to Psych::Nodes::Stream structure
190
+ #
191
+ # parser = Psych::Parser.new(TreeBuilder.new) # => #<Psych::Parser>
192
+ # parser = Psych.parser # it's an alias for the above
193
+ #
194
+ # parser.parse("---\n - a\n - b") # => #<Psych::Parser>
195
+ # parser.handler # => #<Psych::TreeBuilder>
196
+ # parser.handler.root # => #<Psych::Nodes::Stream>
197
+ #
198
+ # ==== Receiving an events stream
199
+ #
200
+ # recorder = Psych::Handlers::Recorder.new
201
+ # parser = Psych::Parser.new(recorder)
202
+ #
203
+ # parser.parse("---\n - a\n - b")
204
+ # recorder.events # => [list of [event, args] lists]
205
+ # # event is one of: Psych::Handler::EVENTS
206
+ # # args are the arguments passed to the event
207
+ #
208
+ # === Emitting
209
+ #
210
+ # The lowest level emitter is an event based system. Events are sent to a
211
+ # Psych::Emitter object. That object knows how to convert the events to a YAML
212
+ # document. This interface should be used when document format is known in
213
+ # advance or speed is a concern. See Psych::Emitter for more information.
214
+ #
215
+ # ==== Writing to a Ruby structure
216
+ #
217
+ # Psych.parser.parse("--- a") # => #<Psych::Parser>
218
+ #
219
+ # parser.handler.first # => #<Psych::Nodes::Stream>
220
+ # parser.handler.first.to_ruby # => ["a"]
221
+ #
222
+ # parser.handler.root.first # => #<Psych::Nodes::Document>
223
+ # parser.handler.root.first.to_ruby # => "a"
224
+ #
225
+ # # You can instantiate an Emitter manually
226
+ # Psych::Visitors::ToRuby.new.accept(parser.handler.root.first)
227
+ # # => "a"
228
+ #
229
+ # source://psych//lib/psych/versions.rb#3
230
+ module Psych
231
+ class << self
232
+ # source://psych//lib/psych.rb#682
233
+ def add_builtin_type(type_tag, &block); end
234
+
235
+ # :stopdoc:
236
+ #
237
+ # source://psych//lib/psych.rb#676
238
+ def add_domain_type(domain, type_tag, &block); end
239
+
240
+ # source://psych//lib/psych.rb#692
241
+ def add_tag(tag, klass); end
242
+
243
+ # source://psych//lib/psych.rb#708
244
+ def config; end
245
+
246
+ # source://psych//lib/psych.rb#720
247
+ def domain_types; end
248
+
249
+ # source://psych//lib/psych.rb#732
250
+ def domain_types=(value); end
251
+
252
+ # call-seq:
253
+ # Psych.dump(o) -> string of yaml
254
+ # Psych.dump(o, options) -> string of yaml
255
+ # Psych.dump(o, io) -> io object passed in
256
+ # Psych.dump(o, io, options) -> io object passed in
257
+ #
258
+ # Dump Ruby object +o+ to a YAML string. Optional +options+ may be passed in
259
+ # to control the output format. If an IO object is passed in, the YAML will
260
+ # be dumped to that IO object.
261
+ #
262
+ # Currently supported options are:
263
+ #
264
+ # [<tt>:indentation</tt>] Number of space characters used to indent.
265
+ # Acceptable value should be in <tt>0..9</tt> range,
266
+ # otherwise option is ignored.
267
+ #
268
+ # Default: <tt>2</tt>.
269
+ # [<tt>:line_width</tt>] Max character to wrap line at.
270
+ #
271
+ # Default: <tt>0</tt> (meaning "wrap at 81").
272
+ # [<tt>:canonical</tt>] Write "canonical" YAML form (very verbose, yet
273
+ # strictly formal).
274
+ #
275
+ # Default: <tt>false</tt>.
276
+ # [<tt>:header</tt>] Write <tt>%YAML [version]</tt> at the beginning of document.
277
+ #
278
+ # Default: <tt>false</tt>.
279
+ #
280
+ # Example:
281
+ #
282
+ # # Dump an array, get back a YAML string
283
+ # Psych.dump(['a', 'b']) # => "---\n- a\n- b\n"
284
+ #
285
+ # # Dump an array to an IO object
286
+ # Psych.dump(['a', 'b'], StringIO.new) # => #<StringIO:0x000001009d0890>
287
+ #
288
+ # # Dump an array with indentation set
289
+ # Psych.dump(['a', ['b']], indentation: 3) # => "---\n- a\n- - b\n"
290
+ #
291
+ # # Dump an array to an IO with indentation set
292
+ # Psych.dump(['a', ['b']], StringIO.new, indentation: 3)
293
+ #
294
+ # source://psych//lib/psych.rb#505
295
+ def dump(o, io = T.unsafe(nil), options = T.unsafe(nil)); end
296
+
297
+ # Dump a list of objects as separate documents to a document stream.
298
+ #
299
+ # Example:
300
+ #
301
+ # Psych.dump_stream("foo\n ", {}) # => "--- ! \"foo\\n \"\n--- {}\n"
302
+ #
303
+ # source://psych//lib/psych.rb#595
304
+ def dump_stream(*objects); end
305
+
306
+ # source://psych//lib/psych.rb#716
307
+ def dump_tags; end
308
+
309
+ # source://psych//lib/psych.rb#728
310
+ def dump_tags=(value); end
311
+
312
+ # Load +yaml+ in to a Ruby data structure. If multiple documents are
313
+ # provided, the object contained in the first document will be returned.
314
+ # +filename+ will be used in the exception message if any exception
315
+ # is raised while parsing. If +yaml+ is empty, it returns
316
+ # the specified +fallback+ return value, which defaults to +false+.
317
+ #
318
+ # Raises a Psych::SyntaxError when a YAML syntax error is detected.
319
+ #
320
+ # Example:
321
+ #
322
+ # Psych.load("--- a") # => 'a'
323
+ # Psych.load("---\n - a\n - b") # => ['a', 'b']
324
+ #
325
+ # begin
326
+ # Psych.load("--- `", filename: "file.txt")
327
+ # rescue Psych::SyntaxError => ex
328
+ # ex.file # => 'file.txt'
329
+ # ex.message # => "(file.txt): found character that cannot start any token"
330
+ # end
331
+ #
332
+ # When the optional +symbolize_names+ keyword argument is set to a
333
+ # true value, returns symbols for keys in Hash objects (default: strings).
334
+ #
335
+ # Psych.load("---\n foo: bar") # => {"foo"=>"bar"}
336
+ # Psych.load("---\n foo: bar", symbolize_names: true) # => {:foo=>"bar"}
337
+ #
338
+ # Raises a TypeError when `yaml` parameter is NilClass. This method is
339
+ # similar to `safe_load` except that `Symbol` objects are allowed by default.
340
+ #
341
+ # source://psych//lib/psych.rb#368
342
+ def load(yaml, permitted_classes: T.unsafe(nil), permitted_symbols: T.unsafe(nil), aliases: T.unsafe(nil), filename: T.unsafe(nil), fallback: T.unsafe(nil), symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end
343
+
344
+ # Loads the document contained in +filename+. Returns the yaml contained in
345
+ # +filename+ as a Ruby object, or if the file is empty, it returns
346
+ # the specified +fallback+ return value, which defaults to +false+.
347
+ # See load for options.
348
+ #
349
+ # source://psych//lib/psych.rb#669
350
+ def load_file(filename, **kwargs); end
351
+
352
+ # Load multiple documents given in +yaml+. Returns the parsed documents
353
+ # as a list. If a block is given, each document will be converted to Ruby
354
+ # and passed to the block during parsing
355
+ #
356
+ # Example:
357
+ #
358
+ # Psych.load_stream("--- foo\n...\n--- bar\n...") # => ['foo', 'bar']
359
+ #
360
+ # list = []
361
+ # Psych.load_stream("--- foo\n...\n--- bar\n...") do |ruby|
362
+ # list << ruby
363
+ # end
364
+ # list # => ['foo', 'bar']
365
+ #
366
+ # source://psych//lib/psych.rb#626
367
+ def load_stream(yaml, filename: T.unsafe(nil), fallback: T.unsafe(nil), **kwargs); end
368
+
369
+ # source://psych//lib/psych.rb#712
370
+ def load_tags; end
371
+
372
+ # source://psych//lib/psych.rb#724
373
+ def load_tags=(value); end
374
+
375
+ # Parse a YAML string in +yaml+. Returns the Psych::Nodes::Document.
376
+ # +filename+ is used in the exception message if a Psych::SyntaxError is
377
+ # raised.
378
+ #
379
+ # Raises a Psych::SyntaxError when a YAML syntax error is detected.
380
+ #
381
+ # Example:
382
+ #
383
+ # Psych.parse("---\n - a\n - b") # => #<Psych::Nodes::Document:0x00>
384
+ #
385
+ # begin
386
+ # Psych.parse("--- `", filename: "file.txt")
387
+ # rescue Psych::SyntaxError => ex
388
+ # ex.file # => 'file.txt'
389
+ # ex.message # => "(file.txt): found character that cannot start any token"
390
+ # end
391
+ #
392
+ # See Psych::Nodes for more information about YAML AST.
393
+ #
394
+ # source://psych//lib/psych.rb#398
395
+ def parse(yaml, filename: T.unsafe(nil)); end
396
+
397
+ # Parse a file at +filename+. Returns the Psych::Nodes::Document.
398
+ #
399
+ # Raises a Psych::SyntaxError when a YAML syntax error is detected.
400
+ #
401
+ # source://psych//lib/psych.rb#410
402
+ def parse_file(filename, fallback: T.unsafe(nil)); end
403
+
404
+ # Parse a YAML string in +yaml+. Returns the Psych::Nodes::Stream.
405
+ # This method can handle multiple YAML documents contained in +yaml+.
406
+ # +filename+ is used in the exception message if a Psych::SyntaxError is
407
+ # raised.
408
+ #
409
+ # If a block is given, a Psych::Nodes::Document node will be yielded to the
410
+ # block as it's being parsed.
411
+ #
412
+ # Raises a Psych::SyntaxError when a YAML syntax error is detected.
413
+ #
414
+ # Example:
415
+ #
416
+ # Psych.parse_stream("---\n - a\n - b") # => #<Psych::Nodes::Stream:0x00>
417
+ #
418
+ # Psych.parse_stream("--- a\n--- b") do |node|
419
+ # node # => #<Psych::Nodes::Document:0x00>
420
+ # end
421
+ #
422
+ # begin
423
+ # Psych.parse_stream("--- `", filename: "file.txt")
424
+ # rescue Psych::SyntaxError => ex
425
+ # ex.file # => 'file.txt'
426
+ # ex.message # => "(file.txt): found character that cannot start any token"
427
+ # end
428
+ #
429
+ # Raises a TypeError when NilClass is passed.
430
+ #
431
+ # See Psych::Nodes for more information about YAML AST.
432
+ #
433
+ # source://psych//lib/psych.rb#452
434
+ def parse_stream(yaml, filename: T.unsafe(nil), &block); end
435
+
436
+ # Returns a default parser
437
+ #
438
+ # source://psych//lib/psych.rb#419
439
+ def parser; end
440
+
441
+ # source://psych//lib/psych.rb#688
442
+ def remove_type(type_tag); end
443
+
444
+ # call-seq:
445
+ # Psych.safe_dump(o) -> string of yaml
446
+ # Psych.safe_dump(o, options) -> string of yaml
447
+ # Psych.safe_dump(o, io) -> io object passed in
448
+ # Psych.safe_dump(o, io, options) -> io object passed in
449
+ #
450
+ # Safely dump Ruby object +o+ to a YAML string. Optional +options+ may be passed in
451
+ # to control the output format. If an IO object is passed in, the YAML will
452
+ # be dumped to that IO object. By default, only the following
453
+ # classes are allowed to be serialized:
454
+ #
455
+ # * TrueClass
456
+ # * FalseClass
457
+ # * NilClass
458
+ # * Integer
459
+ # * Float
460
+ # * String
461
+ # * Array
462
+ # * Hash
463
+ #
464
+ # Arbitrary classes can be allowed by adding those classes to the +permitted_classes+
465
+ # keyword argument. They are additive. For example, to allow Date serialization:
466
+ #
467
+ # Psych.safe_dump(yaml, permitted_classes: [Date])
468
+ #
469
+ # Now the Date class can be dumped in addition to the classes listed above.
470
+ #
471
+ # A Psych::DisallowedClass exception will be raised if the object contains a
472
+ # class that isn't in the +permitted_classes+ list.
473
+ #
474
+ # Currently supported options are:
475
+ #
476
+ # [<tt>:indentation</tt>] Number of space characters used to indent.
477
+ # Acceptable value should be in <tt>0..9</tt> range,
478
+ # otherwise option is ignored.
479
+ #
480
+ # Default: <tt>2</tt>.
481
+ # [<tt>:line_width</tt>] Max character to wrap line at.
482
+ #
483
+ # Default: <tt>0</tt> (meaning "wrap at 81").
484
+ # [<tt>:canonical</tt>] Write "canonical" YAML form (very verbose, yet
485
+ # strictly formal).
486
+ #
487
+ # Default: <tt>false</tt>.
488
+ # [<tt>:header</tt>] Write <tt>%YAML [version]</tt> at the beginning of document.
489
+ #
490
+ # Default: <tt>false</tt>.
491
+ #
492
+ # Example:
493
+ #
494
+ # # Dump an array, get back a YAML string
495
+ # Psych.safe_dump(['a', 'b']) # => "---\n- a\n- b\n"
496
+ #
497
+ # # Dump an array to an IO object
498
+ # Psych.safe_dump(['a', 'b'], StringIO.new) # => #<StringIO:0x000001009d0890>
499
+ #
500
+ # # Dump an array with indentation set
501
+ # Psych.safe_dump(['a', ['b']], indentation: 3) # => "---\n- a\n- - b\n"
502
+ #
503
+ # # Dump an array to an IO with indentation set
504
+ # Psych.safe_dump(['a', ['b']], StringIO.new, indentation: 3)
505
+ #
506
+ # source://psych//lib/psych.rb#578
507
+ def safe_dump(o, io = T.unsafe(nil), options = T.unsafe(nil)); end
508
+
509
+ # Safely load the yaml string in +yaml+. By default, only the following
510
+ # classes are allowed to be deserialized:
511
+ #
512
+ # * TrueClass
513
+ # * FalseClass
514
+ # * NilClass
515
+ # * Integer
516
+ # * Float
517
+ # * String
518
+ # * Array
519
+ # * Hash
520
+ #
521
+ # Recursive data structures are not allowed by default. Arbitrary classes
522
+ # can be allowed by adding those classes to the +permitted_classes+ keyword argument. They are
523
+ # additive. For example, to allow Date deserialization:
524
+ #
525
+ # Psych.safe_load(yaml, permitted_classes: [Date])
526
+ #
527
+ # Now the Date class can be loaded in addition to the classes listed above.
528
+ #
529
+ # Aliases can be explicitly allowed by changing the +aliases+ keyword argument.
530
+ # For example:
531
+ #
532
+ # x = []
533
+ # x << x
534
+ # yaml = Psych.dump x
535
+ # Psych.safe_load yaml # => raises an exception
536
+ # Psych.safe_load yaml, aliases: true # => loads the aliases
537
+ #
538
+ # A Psych::DisallowedClass exception will be raised if the yaml contains a
539
+ # class that isn't in the +permitted_classes+ list.
540
+ #
541
+ # A Psych::AliasesNotEnabled exception will be raised if the yaml contains aliases
542
+ # but the +aliases+ keyword argument is set to false.
543
+ #
544
+ # +filename+ will be used in the exception message if any exception is raised
545
+ # while parsing.
546
+ #
547
+ # When the optional +symbolize_names+ keyword argument is set to a
548
+ # true value, returns symbols for keys in Hash objects (default: strings).
549
+ #
550
+ # Psych.safe_load("---\n foo: bar") # => {"foo"=>"bar"}
551
+ # Psych.safe_load("---\n foo: bar", symbolize_names: true) # => {:foo=>"bar"}
552
+ #
553
+ # source://psych//lib/psych.rb#322
554
+ def safe_load(yaml, permitted_classes: T.unsafe(nil), permitted_symbols: T.unsafe(nil), aliases: T.unsafe(nil), filename: T.unsafe(nil), fallback: T.unsafe(nil), symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end
555
+
556
+ # Safely loads the document contained in +filename+. Returns the yaml contained in
557
+ # +filename+ as a Ruby object, or if the file is empty, it returns
558
+ # the specified +fallback+ return value, which defaults to +false+.
559
+ # See safe_load for options.
560
+ #
561
+ # source://psych//lib/psych.rb#658
562
+ def safe_load_file(filename, **kwargs); end
563
+
564
+ # Dump Ruby +object+ to a JSON string.
565
+ #
566
+ # source://psych//lib/psych.rb#605
567
+ def to_json(object); end
568
+
569
+ # Load +yaml+ in to a Ruby data structure. If multiple documents are
570
+ # provided, the object contained in the first document will be returned.
571
+ # +filename+ will be used in the exception message if any exception
572
+ # is raised while parsing. If +yaml+ is empty, it returns
573
+ # the specified +fallback+ return value, which defaults to +false+.
574
+ #
575
+ # Raises a Psych::SyntaxError when a YAML syntax error is detected.
576
+ #
577
+ # Example:
578
+ #
579
+ # Psych.unsafe_load("--- a") # => 'a'
580
+ # Psych.unsafe_load("---\n - a\n - b") # => ['a', 'b']
581
+ #
582
+ # begin
583
+ # Psych.unsafe_load("--- `", filename: "file.txt")
584
+ # rescue Psych::SyntaxError => ex
585
+ # ex.file # => 'file.txt'
586
+ # ex.message # => "(file.txt): found character that cannot start any token"
587
+ # end
588
+ #
589
+ # When the optional +symbolize_names+ keyword argument is set to a
590
+ # true value, returns symbols for keys in Hash objects (default: strings).
591
+ #
592
+ # Psych.unsafe_load("---\n foo: bar") # => {"foo"=>"bar"}
593
+ # Psych.unsafe_load("---\n foo: bar", symbolize_names: true) # => {:foo=>"bar"}
594
+ #
595
+ # Raises a TypeError when `yaml` parameter is NilClass
596
+ #
597
+ # NOTE: This method *should not* be used to parse untrusted documents, such as
598
+ # YAML documents that are supplied via user input. Instead, please use the
599
+ # load method or the safe_load method.
600
+ #
601
+ # source://psych//lib/psych.rb#271
602
+ def unsafe_load(yaml, filename: T.unsafe(nil), fallback: T.unsafe(nil), symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end
603
+
604
+ # Load the document contained in +filename+. Returns the yaml contained in
605
+ # +filename+ as a Ruby object, or if the file is empty, it returns
606
+ # the specified +fallback+ return value, which defaults to +false+.
607
+ #
608
+ # NOTE: This method *should not* be used to parse untrusted documents, such as
609
+ # YAML documents that are supplied via user input. Instead, please use the
610
+ # safe_load_file method.
611
+ #
612
+ # source://psych//lib/psych.rb#647
613
+ def unsafe_load_file(filename, **kwargs); end
614
+ end
615
+ end
616
+
617
+ # Subclasses `BadAlias` for backwards compatibility
618
+ #
619
+ # source://psych//lib/psych/exception.rb#10
620
+ class Psych::AliasesNotEnabled < ::Psych::BadAlias
621
+ # @return [AliasesNotEnabled] a new instance of AliasesNotEnabled
622
+ #
623
+ # source://psych//lib/psych/exception.rb#11
624
+ def initialize; end
625
+ end
626
+
627
+ # Subclasses `BadAlias` for backwards compatibility
628
+ #
629
+ # source://psych//lib/psych/exception.rb#17
630
+ class Psych::AnchorNotDefined < ::Psych::BadAlias
631
+ # @return [AnchorNotDefined] a new instance of AnchorNotDefined
632
+ #
633
+ # source://psych//lib/psych/exception.rb#18
634
+ def initialize(anchor_name); end
635
+ end
636
+
637
+ # source://psych//lib/psych/class_loader.rb#6
638
+ class Psych::ClassLoader
639
+ # @return [ClassLoader] a new instance of ClassLoader
640
+ #
641
+ # source://psych//lib/psych/class_loader.rb#21
642
+ def initialize; end
643
+
644
+ # source://psych//lib/psych/class_loader.rb#39
645
+ def big_decimal; end
646
+
647
+ # source://psych//lib/psych/class_loader.rb#39
648
+ def complex; end
649
+
650
+ # source://psych//lib/psych/class_loader.rb#39
651
+ def date; end
652
+
653
+ # source://psych//lib/psych/class_loader.rb#39
654
+ def date_time; end
655
+
656
+ # source://psych//lib/psych/class_loader.rb#39
657
+ def exception; end
658
+
659
+ # source://psych//lib/psych/class_loader.rb#25
660
+ def load(klassname); end
661
+
662
+ # source://psych//lib/psych/class_loader.rb#39
663
+ def object; end
664
+
665
+ # source://psych//lib/psych/class_loader.rb#39
666
+ def psych_omap; end
667
+
668
+ # source://psych//lib/psych/class_loader.rb#39
669
+ def psych_set; end
670
+
671
+ # source://psych//lib/psych/class_loader.rb#39
672
+ def range; end
673
+
674
+ # source://psych//lib/psych/class_loader.rb#39
675
+ def rational; end
676
+
677
+ # source://psych//lib/psych/class_loader.rb#39
678
+ def regexp; end
679
+
680
+ # source://psych//lib/psych/class_loader.rb#39
681
+ def struct; end
682
+
683
+ # source://psych//lib/psych/class_loader.rb#39
684
+ def symbol; end
685
+
686
+ # source://psych//lib/psych/class_loader.rb#31
687
+ def symbolize(sym); end
688
+
689
+ private
690
+
691
+ # source://psych//lib/psych/class_loader.rb#47
692
+ def find(klassname); end
693
+
694
+ # source://psych//lib/psych/class_loader.rb#51
695
+ def resolve(klassname); end
696
+ end
697
+
698
+ # source://psych//lib/psych/class_loader.rb#76
699
+ class Psych::ClassLoader::Restricted < ::Psych::ClassLoader
700
+ # @return [Restricted] a new instance of Restricted
701
+ #
702
+ # source://psych//lib/psych/class_loader.rb#77
703
+ def initialize(classes, symbols); end
704
+
705
+ # source://psych//lib/psych/class_loader.rb#83
706
+ def symbolize(sym); end
707
+
708
+ private
709
+
710
+ # source://psych//lib/psych/class_loader.rb#95
711
+ def find(klassname); end
712
+ end
713
+
714
+ # If an object defines +encode_with+, then an instance of Psych::Coder will
715
+ # be passed to the method when the object is being serialized. The Coder
716
+ # automatically assumes a Psych::Nodes::Mapping is being emitted. Other
717
+ # objects like Sequence and Scalar may be emitted if +seq=+ or +scalar=+ are
718
+ # called, respectively.
719
+ #
720
+ # source://psych//lib/psych/coder.rb#9
721
+ class Psych::Coder
722
+ # @return [Coder] a new instance of Coder
723
+ #
724
+ # source://psych//lib/psych/coder.rb#13
725
+ def initialize(tag); end
726
+
727
+ # source://psych//lib/psych/coder.rb#84
728
+ def [](k); end
729
+
730
+ # source://psych//lib/psych/coder.rb#78
731
+ def []=(k, v); end
732
+
733
+ # source://psych//lib/psych/coder.rb#78
734
+ def add(k, v); end
735
+
736
+ # Returns the value of attribute implicit.
737
+ #
738
+ # source://psych//lib/psych/coder.rb#10
739
+ def implicit; end
740
+
741
+ # Sets the attribute implicit
742
+ #
743
+ # @param value the value to set the attribute implicit to.
744
+ #
745
+ # source://psych//lib/psych/coder.rb#10
746
+ def implicit=(_arg0); end
747
+
748
+ # Emit a map. The coder will be yielded to the block.
749
+ #
750
+ # @yield [_self]
751
+ # @yieldparam _self [Psych::Coder] the object that the method was called on
752
+ #
753
+ # source://psych//lib/psych/coder.rb#34
754
+ def map(tag = T.unsafe(nil), style = T.unsafe(nil)); end
755
+
756
+ # Emit a map with +value+
757
+ #
758
+ # source://psych//lib/psych/coder.rb#73
759
+ def map=(map); end
760
+
761
+ # Returns the value of attribute object.
762
+ #
763
+ # source://psych//lib/psych/coder.rb#10
764
+ def object; end
765
+
766
+ # Sets the attribute object
767
+ #
768
+ # @param value the value to set the attribute object to.
769
+ #
770
+ # source://psych//lib/psych/coder.rb#10
771
+ def object=(_arg0); end
772
+
773
+ # Emit a sequence with +map+ and +tag+
774
+ #
775
+ # source://psych//lib/psych/coder.rb#54
776
+ def represent_map(tag, map); end
777
+
778
+ # Emit an arbitrary object +obj+ and +tag+
779
+ #
780
+ # source://psych//lib/psych/coder.rb#60
781
+ def represent_object(tag, obj); end
782
+
783
+ # Emit a scalar with +value+ and +tag+
784
+ #
785
+ # source://psych//lib/psych/coder.rb#42
786
+ def represent_scalar(tag, value); end
787
+
788
+ # Emit a sequence with +list+ and +tag+
789
+ #
790
+ # source://psych//lib/psych/coder.rb#48
791
+ def represent_seq(tag, list); end
792
+
793
+ # source://psych//lib/psych/coder.rb#24
794
+ def scalar(*args); end
795
+
796
+ # Emit a scalar with +value+
797
+ #
798
+ # source://psych//lib/psych/coder.rb#67
799
+ def scalar=(value); end
800
+
801
+ # Returns the value of attribute seq.
802
+ #
803
+ # source://psych//lib/psych/coder.rb#11
804
+ def seq; end
805
+
806
+ # Emit a sequence of +list+
807
+ #
808
+ # source://psych//lib/psych/coder.rb#90
809
+ def seq=(list); end
810
+
811
+ # Returns the value of attribute style.
812
+ #
813
+ # source://psych//lib/psych/coder.rb#10
814
+ def style; end
815
+
816
+ # Sets the attribute style
817
+ #
818
+ # @param value the value to set the attribute style to.
819
+ #
820
+ # source://psych//lib/psych/coder.rb#10
821
+ def style=(_arg0); end
822
+
823
+ # Returns the value of attribute tag.
824
+ #
825
+ # source://psych//lib/psych/coder.rb#10
826
+ def tag; end
827
+
828
+ # Sets the attribute tag
829
+ #
830
+ # @param value the value to set the attribute tag to.
831
+ #
832
+ # source://psych//lib/psych/coder.rb#10
833
+ def tag=(_arg0); end
834
+
835
+ # Returns the value of attribute type.
836
+ #
837
+ # source://psych//lib/psych/coder.rb#11
838
+ def type; end
839
+ end
840
+
841
+ # source://psych//lib/psych/exception.rb#23
842
+ class Psych::DisallowedClass < ::Psych::Exception
843
+ # @return [DisallowedClass] a new instance of DisallowedClass
844
+ #
845
+ # source://psych//lib/psych/exception.rb#24
846
+ def initialize(action, klass_name); end
847
+ end
848
+
849
+ # Psych::Handler is an abstract base class that defines the events used
850
+ # when dealing with Psych::Parser. Clients who want to use Psych::Parser
851
+ # should implement a class that inherits from Psych::Handler and define
852
+ # events that they can handle.
853
+ #
854
+ # Psych::Handler defines all events that Psych::Parser can possibly send to
855
+ # event handlers.
856
+ #
857
+ # See Psych::Parser for more details
858
+ #
859
+ # source://psych//lib/psych/handler.rb#13
860
+ class Psych::Handler
861
+ # Called when an alias is found to +anchor+. +anchor+ will be the name
862
+ # of the anchor found.
863
+ #
864
+ # === Example
865
+ #
866
+ # Here we have an example of an array that references itself in YAML:
867
+ #
868
+ # --- &ponies
869
+ # - first element
870
+ # - *ponies
871
+ #
872
+ # &ponies is the anchor, *ponies is the alias. In this case, alias is
873
+ # called with "ponies".
874
+ #
875
+ # source://psych//lib/psych/handler.rb#110
876
+ def alias(anchor); end
877
+
878
+ # Called when an empty event happens. (Which, as far as I can tell, is
879
+ # never).
880
+ #
881
+ # source://psych//lib/psych/handler.rb#236
882
+ def empty; end
883
+
884
+ # Called with the document ends. +implicit+ is a boolean value indicating
885
+ # whether or not the document has an implicit ending.
886
+ #
887
+ # === Example
888
+ #
889
+ # Given the following YAML:
890
+ #
891
+ # ---
892
+ # hello world
893
+ #
894
+ # +implicit+ will be true. Given this YAML:
895
+ #
896
+ # ---
897
+ # hello world
898
+ # ...
899
+ #
900
+ # +implicit+ will be false.
901
+ #
902
+ # source://psych//lib/psych/handler.rb#93
903
+ def end_document(implicit); end
904
+
905
+ # Called when a map ends
906
+ #
907
+ # source://psych//lib/psych/handler.rb#230
908
+ def end_mapping; end
909
+
910
+ # Called when a sequence ends.
911
+ #
912
+ # source://psych//lib/psych/handler.rb#191
913
+ def end_sequence; end
914
+
915
+ # Called when the YAML stream ends
916
+ #
917
+ # source://psych//lib/psych/handler.rb#241
918
+ def end_stream; end
919
+
920
+ # Called before each event with line/column information.
921
+ #
922
+ # source://psych//lib/psych/handler.rb#246
923
+ def event_location(start_line, start_column, end_line, end_column); end
924
+
925
+ # Called when a scalar +value+ is found. The scalar may have an
926
+ # +anchor+, a +tag+, be implicitly +plain+ or implicitly +quoted+
927
+ #
928
+ # +value+ is the string value of the scalar
929
+ # +anchor+ is an associated anchor or nil
930
+ # +tag+ is an associated tag or nil
931
+ # +plain+ is a boolean value
932
+ # +quoted+ is a boolean value
933
+ # +style+ is an integer indicating the string style
934
+ #
935
+ # See the constants in Psych::Nodes::Scalar for the possible values of
936
+ # +style+
937
+ #
938
+ # === Example
939
+ #
940
+ # Here is a YAML document that exercises most of the possible ways this
941
+ # method can be called:
942
+ #
943
+ # ---
944
+ # - !str "foo"
945
+ # - &anchor fun
946
+ # - many
947
+ # lines
948
+ # - |
949
+ # many
950
+ # newlines
951
+ #
952
+ # The above YAML document contains a list with four strings. Here are
953
+ # the parameters sent to this method in the same order:
954
+ #
955
+ # # value anchor tag plain quoted style
956
+ # ["foo", nil, "!str", false, false, 3 ]
957
+ # ["fun", "anchor", nil, true, false, 1 ]
958
+ # ["many lines", nil, nil, true, false, 1 ]
959
+ # ["many\nnewlines\n", nil, nil, false, true, 4 ]
960
+ #
961
+ # source://psych//lib/psych/handler.rb#150
962
+ def scalar(value, anchor, tag, plain, quoted, style); end
963
+
964
+ # Called when the document starts with the declared +version+,
965
+ # +tag_directives+, if the document is +implicit+.
966
+ #
967
+ # +version+ will be an array of integers indicating the YAML version being
968
+ # dealt with, +tag_directives+ is a list of tuples indicating the prefix
969
+ # and suffix of each tag, and +implicit+ is a boolean indicating whether
970
+ # the document is started implicitly.
971
+ #
972
+ # === Example
973
+ #
974
+ # Given the following YAML:
975
+ #
976
+ # %YAML 1.1
977
+ # %TAG ! tag:tenderlovemaking.com,2009:
978
+ # --- !squee
979
+ #
980
+ # The parameters for start_document must be this:
981
+ #
982
+ # version # => [1, 1]
983
+ # tag_directives # => [["!", "tag:tenderlovemaking.com,2009:"]]
984
+ # implicit # => false
985
+ #
986
+ # source://psych//lib/psych/handler.rb#72
987
+ def start_document(version, tag_directives, implicit); end
988
+
989
+ # Called when a map starts.
990
+ #
991
+ # +anchor+ is the anchor associated with the map or +nil+.
992
+ # +tag+ is the tag associated with the map or +nil+.
993
+ # +implicit+ is a boolean indicating whether or not the map was implicitly
994
+ # started.
995
+ # +style+ is an integer indicating the mapping style.
996
+ #
997
+ # See the constants in Psych::Nodes::Mapping for the possible values of
998
+ # +style+.
999
+ #
1000
+ # === Example
1001
+ #
1002
+ # Here is a YAML document that exercises most of the possible ways this
1003
+ # method can be called:
1004
+ #
1005
+ # ---
1006
+ # k: !!map { hello: world }
1007
+ # v: &pewpew
1008
+ # hello: world
1009
+ #
1010
+ # The above YAML document consists of three maps, an outer map that contains
1011
+ # two inner maps. Below is a matrix of the parameters sent in order to
1012
+ # represent these three maps:
1013
+ #
1014
+ # # anchor tag implicit style
1015
+ # [nil, nil, true, 1 ]
1016
+ # [nil, "tag:yaml.org,2002:map", false, 2 ]
1017
+ # ["pewpew", nil, true, 1 ]
1018
+ #
1019
+ # source://psych//lib/psych/handler.rb#225
1020
+ def start_mapping(anchor, tag, implicit, style); end
1021
+
1022
+ # Called when a sequence is started.
1023
+ #
1024
+ # +anchor+ is the anchor associated with the sequence or nil.
1025
+ # +tag+ is the tag associated with the sequence or nil.
1026
+ # +implicit+ a boolean indicating whether or not the sequence was implicitly
1027
+ # started.
1028
+ # +style+ is an integer indicating the list style.
1029
+ #
1030
+ # See the constants in Psych::Nodes::Sequence for the possible values of
1031
+ # +style+.
1032
+ #
1033
+ # === Example
1034
+ #
1035
+ # Here is a YAML document that exercises most of the possible ways this
1036
+ # method can be called:
1037
+ #
1038
+ # ---
1039
+ # - !!seq [
1040
+ # a
1041
+ # ]
1042
+ # - &pewpew
1043
+ # - b
1044
+ #
1045
+ # The above YAML document consists of three lists, an outer list that
1046
+ # contains two inner lists. Here is a matrix of the parameters sent
1047
+ # to represent these lists:
1048
+ #
1049
+ # # anchor tag implicit style
1050
+ # [nil, nil, true, 1 ]
1051
+ # [nil, "tag:yaml.org,2002:seq", false, 2 ]
1052
+ # ["pewpew", nil, true, 1 ]
1053
+ #
1054
+ # source://psych//lib/psych/handler.rb#186
1055
+ def start_sequence(anchor, tag, implicit, style); end
1056
+
1057
+ # Called with +encoding+ when the YAML stream starts. This method is
1058
+ # called once per stream. A stream may contain multiple documents.
1059
+ #
1060
+ # See the constants in Psych::Parser for the possible values of +encoding+.
1061
+ #
1062
+ # source://psych//lib/psych/handler.rb#47
1063
+ def start_stream(encoding); end
1064
+
1065
+ # Is this handler a streaming handler?
1066
+ #
1067
+ # @return [Boolean]
1068
+ #
1069
+ # source://psych//lib/psych/handler.rb#251
1070
+ def streaming?; end
1071
+ end
1072
+
1073
+ # Configuration options for dumping YAML.
1074
+ #
1075
+ # source://psych//lib/psych/handler.rb#16
1076
+ class Psych::Handler::DumperOptions
1077
+ # @return [DumperOptions] a new instance of DumperOptions
1078
+ #
1079
+ # source://psych//lib/psych/handler.rb#19
1080
+ def initialize; end
1081
+
1082
+ # Returns the value of attribute canonical.
1083
+ #
1084
+ # source://psych//lib/psych/handler.rb#17
1085
+ def canonical; end
1086
+
1087
+ # Sets the attribute canonical
1088
+ #
1089
+ # @param value the value to set the attribute canonical to.
1090
+ #
1091
+ # source://psych//lib/psych/handler.rb#17
1092
+ def canonical=(_arg0); end
1093
+
1094
+ # Returns the value of attribute indentation.
1095
+ #
1096
+ # source://psych//lib/psych/handler.rb#17
1097
+ def indentation; end
1098
+
1099
+ # Sets the attribute indentation
1100
+ #
1101
+ # @param value the value to set the attribute indentation to.
1102
+ #
1103
+ # source://psych//lib/psych/handler.rb#17
1104
+ def indentation=(_arg0); end
1105
+
1106
+ # Returns the value of attribute line_width.
1107
+ #
1108
+ # source://psych//lib/psych/handler.rb#17
1109
+ def line_width; end
1110
+
1111
+ # Sets the attribute line_width
1112
+ #
1113
+ # @param value the value to set the attribute line_width to.
1114
+ #
1115
+ # source://psych//lib/psych/handler.rb#17
1116
+ def line_width=(_arg0); end
1117
+ end
1118
+
1119
+ # source://psych//lib/psych/json/stream.rb#7
1120
+ class Psych::JSON::Stream < ::Psych::Visitors::JSONTree
1121
+ include ::Psych::Streaming
1122
+ extend ::Psych::Streaming::ClassMethods
1123
+ end
1124
+
1125
+ # YAML event parser class. This class parses a YAML document and calls
1126
+ # events on the handler that is passed to the constructor. The events can
1127
+ # be used for things such as constructing a YAML AST or deserializing YAML
1128
+ # documents. It can even be fed back to Psych::Emitter to emit the same
1129
+ # document that was parsed.
1130
+ #
1131
+ # See Psych::Handler for documentation on the events that Psych::Parser emits.
1132
+ #
1133
+ # Here is an example that prints out ever scalar found in a YAML document:
1134
+ #
1135
+ # # Handler for detecting scalar values
1136
+ # class ScalarHandler < Psych::Handler
1137
+ # def scalar value, anchor, tag, plain, quoted, style
1138
+ # puts value
1139
+ # end
1140
+ # end
1141
+ #
1142
+ # parser = Psych::Parser.new(ScalarHandler.new)
1143
+ # parser.parse(yaml_document)
1144
+ #
1145
+ # Here is an example that feeds the parser back in to Psych::Emitter. The
1146
+ # YAML document is read from STDIN and written back out to STDERR:
1147
+ #
1148
+ # parser = Psych::Parser.new(Psych::Emitter.new($stderr))
1149
+ # parser.parse($stdin)
1150
+ #
1151
+ # Psych uses Psych::Parser in combination with Psych::TreeBuilder to
1152
+ # construct an AST of the parsed YAML document.
1153
+ #
1154
+ # source://psych//lib/psych/parser.rb#33
1155
+ class Psych::Parser
1156
+ # Creates a new Psych::Parser instance with +handler+. YAML events will
1157
+ # be called on +handler+. See Psych::Parser for more details.
1158
+ #
1159
+ # @return [Parser] a new instance of Parser
1160
+ #
1161
+ # source://psych//lib/psych/parser.rb#47
1162
+ def initialize(handler = T.unsafe(nil)); end
1163
+
1164
+ # Set the encoding for this parser to +encoding+
1165
+ #
1166
+ # source://psych//lib/psych/parser.rb#41
1167
+ def external_encoding=(_arg0); end
1168
+
1169
+ # The handler on which events will be called
1170
+ #
1171
+ # source://psych//lib/psych/parser.rb#38
1172
+ def handler; end
1173
+
1174
+ # The handler on which events will be called
1175
+ #
1176
+ # source://psych//lib/psych/parser.rb#38
1177
+ def handler=(_arg0); end
1178
+
1179
+ # call-seq:
1180
+ # parser.parse(yaml)
1181
+ #
1182
+ # Parse the YAML document contained in +yaml+. Events will be called on
1183
+ # the handler set on the parser instance.
1184
+ #
1185
+ # See Psych::Parser and Psych::Parser#handler
1186
+ #
1187
+ # source://psych//lib/psych/parser.rb#61
1188
+ def parse(yaml, path = T.unsafe(nil)); end
1189
+ end
1190
+
1191
+ # Scan scalars for built in types
1192
+ #
1193
+ # source://psych//lib/psych/scalar_scanner.rb#6
1194
+ class Psych::ScalarScanner
1195
+ # Create a new scanner
1196
+ #
1197
+ # @return [ScalarScanner] a new instance of ScalarScanner
1198
+ #
1199
+ # source://psych//lib/psych/scalar_scanner.rb#30
1200
+ def initialize(class_loader, strict_integer: T.unsafe(nil)); end
1201
+
1202
+ # Returns the value of attribute class_loader.
1203
+ #
1204
+ # source://psych//lib/psych/scalar_scanner.rb#27
1205
+ def class_loader; end
1206
+
1207
+ # Parse and return an int from +string+
1208
+ #
1209
+ # source://psych//lib/psych/scalar_scanner.rb#109
1210
+ def parse_int(string); end
1211
+
1212
+ # Parse and return a Time from +string+
1213
+ #
1214
+ # source://psych//lib/psych/scalar_scanner.rb#115
1215
+ def parse_time(string); end
1216
+
1217
+ # Tokenize +string+ returning the Ruby object
1218
+ #
1219
+ # source://psych//lib/psych/scalar_scanner.rb#37
1220
+ def tokenize(string); end
1221
+ end
1222
+
1223
+ # Same as above, but allows commas.
1224
+ # Not to YML spec, but kept for backwards compatibility
1225
+ #
1226
+ # source://psych//lib/psych/scalar_scanner.rb#22
1227
+ Psych::ScalarScanner::INTEGER_LEGACY = T.let(T.unsafe(nil), Regexp)
1228
+
1229
+ # Taken from http://yaml.org/type/int.html
1230
+ #
1231
+ # source://psych//lib/psych/scalar_scanner.rb#15
1232
+ Psych::ScalarScanner::INTEGER_STRICT = T.let(T.unsafe(nil), Regexp)
1233
+
1234
+ # Psych::Stream is a streaming YAML emitter. It will not buffer your YAML,
1235
+ # but send it straight to an IO.
1236
+ #
1237
+ # Here is an example use:
1238
+ #
1239
+ # stream = Psych::Stream.new($stdout)
1240
+ # stream.start
1241
+ # stream.push({:foo => 'bar'})
1242
+ # stream.finish
1243
+ #
1244
+ # YAML will be immediately emitted to $stdout with no buffering.
1245
+ #
1246
+ # Psych::Stream#start will take a block and ensure that Psych::Stream#finish
1247
+ # is called, so you can do this form:
1248
+ #
1249
+ # stream = Psych::Stream.new($stdout)
1250
+ # stream.start do |em|
1251
+ # em.push(:foo => 'bar')
1252
+ # end
1253
+ #
1254
+ # source://psych//lib/psych/stream.rb#24
1255
+ class Psych::Stream < ::Psych::Visitors::YAMLTree
1256
+ include ::Psych::Streaming
1257
+ extend ::Psych::Streaming::ClassMethods
1258
+ end
1259
+
1260
+ # source://psych//lib/psych/stream.rb#25
1261
+ class Psych::Stream::Emitter < ::Psych::Emitter
1262
+ # source://psych//lib/psych/stream.rb#26
1263
+ def end_document(implicit_end = T.unsafe(nil)); end
1264
+
1265
+ # @return [Boolean]
1266
+ #
1267
+ # source://psych//lib/psych/stream.rb#30
1268
+ def streaming?; end
1269
+ end
1270
+
1271
+ # source://psych//lib/psych/streaming.rb#3
1272
+ module Psych::Streaming
1273
+ # Start streaming using +encoding+
1274
+ #
1275
+ # source://psych//lib/psych/streaming.rb#18
1276
+ def start(encoding = T.unsafe(nil)); end
1277
+
1278
+ private
1279
+
1280
+ # source://psych//lib/psych/streaming.rb#25
1281
+ def register(target, obj); end
1282
+ end
1283
+
1284
+ # source://psych//lib/psych/streaming.rb#4
1285
+ module Psych::Streaming::ClassMethods
1286
+ # Create a new streaming emitter. Emitter will print to +io+. See
1287
+ # Psych::Stream for an example.
1288
+ #
1289
+ # source://psych//lib/psych/streaming.rb#8
1290
+ def new(io); end
1291
+ end
1292
+
1293
+ # source://psych//lib/psych/syntax_error.rb#5
1294
+ class Psych::SyntaxError < ::Psych::Exception
1295
+ # @return [SyntaxError] a new instance of SyntaxError
1296
+ #
1297
+ # source://psych//lib/psych/syntax_error.rb#8
1298
+ def initialize(file, line, col, offset, problem, context); end
1299
+
1300
+ # Returns the value of attribute column.
1301
+ #
1302
+ # source://psych//lib/psych/syntax_error.rb#6
1303
+ def column; end
1304
+
1305
+ # Returns the value of attribute context.
1306
+ #
1307
+ # source://psych//lib/psych/syntax_error.rb#6
1308
+ def context; end
1309
+
1310
+ # Returns the value of attribute file.
1311
+ #
1312
+ # source://psych//lib/psych/syntax_error.rb#6
1313
+ def file; end
1314
+
1315
+ # Returns the value of attribute line.
1316
+ #
1317
+ # source://psych//lib/psych/syntax_error.rb#6
1318
+ def line; end
1319
+
1320
+ # Returns the value of attribute offset.
1321
+ #
1322
+ # source://psych//lib/psych/syntax_error.rb#6
1323
+ def offset; end
1324
+
1325
+ # Returns the value of attribute problem.
1326
+ #
1327
+ # source://psych//lib/psych/syntax_error.rb#6
1328
+ def problem; end
1329
+ end
1330
+
1331
+ # This class works in conjunction with Psych::Parser to build an in-memory
1332
+ # parse tree that represents a YAML document.
1333
+ #
1334
+ # == Example
1335
+ #
1336
+ # parser = Psych::Parser.new Psych::TreeBuilder.new
1337
+ # parser.parse('--- foo')
1338
+ # tree = parser.handler.root
1339
+ #
1340
+ # See Psych::Handler for documentation on the event methods used in this
1341
+ # class.
1342
+ #
1343
+ # source://psych//lib/psych/tree_builder.rb#17
1344
+ class Psych::TreeBuilder < ::Psych::Handler
1345
+ # Create a new TreeBuilder instance
1346
+ #
1347
+ # @return [TreeBuilder] a new instance of TreeBuilder
1348
+ #
1349
+ # source://psych//lib/psych/tree_builder.rb#22
1350
+ def initialize; end
1351
+
1352
+ # source://psych//lib/psych/tree_builder.rb#103
1353
+ def alias(anchor); end
1354
+
1355
+ # Handles end_document events with +version+, +tag_directives+,
1356
+ # and +implicit+ styling.
1357
+ #
1358
+ # See Psych::Handler#start_document
1359
+ #
1360
+ # source://psych//lib/psych/tree_builder.rb#77
1361
+ def end_document(implicit_end = T.unsafe(nil)); end
1362
+
1363
+ # source://psych//lib/psych/tree_builder.rb#52
1364
+ def end_mapping; end
1365
+
1366
+ # source://psych//lib/psych/tree_builder.rb#52
1367
+ def end_sequence; end
1368
+
1369
+ # source://psych//lib/psych/tree_builder.rb#90
1370
+ def end_stream; end
1371
+
1372
+ # source://psych//lib/psych/tree_builder.rb#33
1373
+ def event_location(start_line, start_column, end_line, end_column); end
1374
+
1375
+ # Returns the root node for the built tree
1376
+ #
1377
+ # source://psych//lib/psych/tree_builder.rb#19
1378
+ def root; end
1379
+
1380
+ # source://psych//lib/psych/tree_builder.rb#96
1381
+ def scalar(value, anchor, tag, plain, quoted, style); end
1382
+
1383
+ # Handles start_document events with +version+, +tag_directives+,
1384
+ # and +implicit+ styling.
1385
+ #
1386
+ # See Psych::Handler#start_document
1387
+ #
1388
+ # source://psych//lib/psych/tree_builder.rb#65
1389
+ def start_document(version, tag_directives, implicit); end
1390
+
1391
+ # source://psych//lib/psych/tree_builder.rb#45
1392
+ def start_mapping(anchor, tag, implicit, style); end
1393
+
1394
+ # source://psych//lib/psych/tree_builder.rb#45
1395
+ def start_sequence(anchor, tag, implicit, style); end
1396
+
1397
+ # source://psych//lib/psych/tree_builder.rb#84
1398
+ def start_stream(encoding); end
1399
+
1400
+ private
1401
+
1402
+ # source://psych//lib/psych/tree_builder.rb#116
1403
+ def pop; end
1404
+
1405
+ # source://psych//lib/psych/tree_builder.rb#111
1406
+ def push(value); end
1407
+
1408
+ # source://psych//lib/psych/tree_builder.rb#132
1409
+ def set_end_location(node); end
1410
+
1411
+ # source://psych//lib/psych/tree_builder.rb#122
1412
+ def set_location(node); end
1413
+
1414
+ # source://psych//lib/psych/tree_builder.rb#127
1415
+ def set_start_location(node); end
1416
+ end
1417
+
1418
+ # The version of Psych you are using
1419
+ #
1420
+ # source://psych//lib/psych/versions.rb#5
1421
+ Psych::VERSION = T.let(T.unsafe(nil), String)
1422
+
1423
+ # source://psych//lib/psych/visitors/depth_first.rb#4
1424
+ class Psych::Visitors::DepthFirst < ::Psych::Visitors::Visitor
1425
+ # @return [DepthFirst] a new instance of DepthFirst
1426
+ #
1427
+ # source://psych//lib/psych/visitors/depth_first.rb#5
1428
+ def initialize(block); end
1429
+
1430
+ private
1431
+
1432
+ # source://psych//lib/psych/visitors/depth_first.rb#11
1433
+ def nary(o); end
1434
+
1435
+ # source://psych//lib/psych/visitors/depth_first.rb#20
1436
+ def terminal(o); end
1437
+
1438
+ # source://psych//lib/psych/visitors/depth_first.rb#20
1439
+ def visit_Psych_Nodes_Alias(o); end
1440
+
1441
+ # source://psych//lib/psych/visitors/depth_first.rb#11
1442
+ def visit_Psych_Nodes_Document(o); end
1443
+
1444
+ # source://psych//lib/psych/visitors/depth_first.rb#11
1445
+ def visit_Psych_Nodes_Mapping(o); end
1446
+
1447
+ # source://psych//lib/psych/visitors/depth_first.rb#20
1448
+ def visit_Psych_Nodes_Scalar(o); end
1449
+
1450
+ # source://psych//lib/psych/visitors/depth_first.rb#11
1451
+ def visit_Psych_Nodes_Sequence(o); end
1452
+
1453
+ # source://psych//lib/psych/visitors/depth_first.rb#11
1454
+ def visit_Psych_Nodes_Stream(o); end
1455
+ end
1456
+
1457
+ # source://psych//lib/psych/visitors/yaml_tree.rb#540
1458
+ class Psych::Visitors::RestrictedYAMLTree < ::Psych::Visitors::YAMLTree
1459
+ # @return [RestrictedYAMLTree] a new instance of RestrictedYAMLTree
1460
+ #
1461
+ # source://psych//lib/psych/visitors/yaml_tree.rb#552
1462
+ def initialize(emitter, ss, options); end
1463
+
1464
+ # source://psych//lib/psych/visitors/yaml_tree.rb#565
1465
+ def accept(target); end
1466
+
1467
+ # source://psych//lib/psych/visitors/yaml_tree.rb#577
1468
+ def visit_Symbol(sym); end
1469
+ end
1470
+
1471
+ # source://psych//lib/psych/visitors/yaml_tree.rb#541
1472
+ Psych::Visitors::RestrictedYAMLTree::DEFAULT_PERMITTED_CLASSES = T.let(T.unsafe(nil), Hash)
1473
+
1474
+ # This class walks a YAML AST, converting each node to Ruby
1475
+ #
1476
+ # source://psych//lib/psych/visitors/to_ruby.rb#14
1477
+ class Psych::Visitors::ToRuby < ::Psych::Visitors::Visitor
1478
+ # @return [ToRuby] a new instance of ToRuby
1479
+ #
1480
+ # source://psych//lib/psych/visitors/to_ruby.rb#23
1481
+ def initialize(ss, class_loader, symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil)); end
1482
+
1483
+ # source://psych//lib/psych/visitors/to_ruby.rb#34
1484
+ def accept(target); end
1485
+
1486
+ # Returns the value of attribute class_loader.
1487
+ #
1488
+ # source://psych//lib/psych/visitors/to_ruby.rb#21
1489
+ def class_loader; end
1490
+
1491
+ # source://psych//lib/psych/visitors/to_ruby.rb#327
1492
+ def visit_Psych_Nodes_Alias(o); end
1493
+
1494
+ # source://psych//lib/psych/visitors/to_ruby.rb#319
1495
+ def visit_Psych_Nodes_Document(o); end
1496
+
1497
+ # source://psych//lib/psych/visitors/to_ruby.rb#165
1498
+ def visit_Psych_Nodes_Mapping(o); end
1499
+
1500
+ # source://psych//lib/psych/visitors/to_ruby.rb#129
1501
+ def visit_Psych_Nodes_Scalar(o); end
1502
+
1503
+ # source://psych//lib/psych/visitors/to_ruby.rb#133
1504
+ def visit_Psych_Nodes_Sequence(o); end
1505
+
1506
+ # source://psych//lib/psych/visitors/to_ruby.rb#323
1507
+ def visit_Psych_Nodes_Stream(o); end
1508
+
1509
+ private
1510
+
1511
+ # source://psych//lib/psych/visitors/to_ruby.rb#395
1512
+ def deduplicate(key); end
1513
+
1514
+ # source://psych//lib/psych/visitors/to_ruby.rb#51
1515
+ def deserialize(o); end
1516
+
1517
+ # source://psych//lib/psych/visitors/to_ruby.rb#412
1518
+ def init_with(o, h, node); end
1519
+
1520
+ # source://psych//lib/psych/visitors/to_ruby.rb#404
1521
+ def merge_key(hash, key, val); end
1522
+
1523
+ # source://psych//lib/psych/visitors/to_ruby.rb#333
1524
+ def register(node, object); end
1525
+
1526
+ # source://psych//lib/psych/visitors/to_ruby.rb#338
1527
+ def register_empty(object); end
1528
+
1529
+ # Convert +klassname+ to a Class
1530
+ #
1531
+ # source://psych//lib/psych/visitors/to_ruby.rb#425
1532
+ def resolve_class(klassname); end
1533
+
1534
+ # source://psych//lib/psych/visitors/to_ruby.rb#407
1535
+ def revive(klass, node); end
1536
+
1537
+ # source://psych//lib/psych/visitors/to_ruby.rb#344
1538
+ def revive_hash(hash, o, tagged = T.unsafe(nil)); end
1539
+
1540
+ class << self
1541
+ # source://psych//lib/psych/visitors/to_ruby.rb#15
1542
+ def create(symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end
1543
+ end
1544
+ end
1545
+
1546
+ # source://psych//lib/psych/visitors/visitor.rb#4
1547
+ class Psych::Visitors::Visitor
1548
+ # source://psych//lib/psych/visitors/visitor.rb#5
1549
+ def accept(target); end
1550
+
1551
+ private
1552
+
1553
+ # source://psych//lib/psych/visitors/visitor.rb#19
1554
+ def dispatch; end
1555
+
1556
+ # source://psych//lib/psych/visitors/visitor.rb#29
1557
+ def visit(target); end
1558
+
1559
+ class << self
1560
+ # @api private
1561
+ #
1562
+ # source://psych//lib/psych/visitors/visitor.rb#12
1563
+ def dispatch_cache; end
1564
+ end
1565
+ end
1566
+
1567
+ # YAMLTree builds a YAML ast given a Ruby object. For example:
1568
+ #
1569
+ # builder = Psych::Visitors::YAMLTree.new
1570
+ # builder << { :foo => 'bar' }
1571
+ # builder.tree # => #<Psych::Nodes::Stream .. }
1572
+ #
1573
+ # source://psych//lib/psych/visitors/yaml_tree.rb#15
1574
+ class Psych::Visitors::YAMLTree < ::Psych::Visitors::Visitor
1575
+ # @return [YAMLTree] a new instance of YAMLTree
1576
+ #
1577
+ # source://psych//lib/psych/visitors/yaml_tree.rb#55
1578
+ def initialize(emitter, ss, options); end
1579
+
1580
+ # source://psych//lib/psych/visitors/yaml_tree.rb#102
1581
+ def <<(object); end
1582
+
1583
+ # source://psych//lib/psych/visitors/yaml_tree.rb#122
1584
+ def accept(target); end
1585
+
1586
+ # source://psych//lib/psych/visitors/yaml_tree.rb#91
1587
+ def finish; end
1588
+
1589
+ # Returns the value of attribute finished.
1590
+ #
1591
+ # source://psych//lib/psych/visitors/yaml_tree.rb#44
1592
+ def finished; end
1593
+
1594
+ # Returns the value of attribute finished.
1595
+ #
1596
+ # source://psych//lib/psych/visitors/yaml_tree.rb#44
1597
+ def finished?; end
1598
+
1599
+ # source://psych//lib/psych/visitors/yaml_tree.rb#102
1600
+ def push(object); end
1601
+
1602
+ # source://psych//lib/psych/visitors/yaml_tree.rb#85
1603
+ def start(encoding = T.unsafe(nil)); end
1604
+
1605
+ # Returns the value of attribute started.
1606
+ #
1607
+ # source://psych//lib/psych/visitors/yaml_tree.rb#44
1608
+ def started; end
1609
+
1610
+ # Returns the value of attribute started.
1611
+ #
1612
+ # source://psych//lib/psych/visitors/yaml_tree.rb#44
1613
+ def started?; end
1614
+
1615
+ # source://psych//lib/psych/visitors/yaml_tree.rb#97
1616
+ def tree; end
1617
+
1618
+ # source://psych//lib/psych/visitors/yaml_tree.rb#350
1619
+ def visit_Array(o); end
1620
+
1621
+ # source://psych//lib/psych/visitors/yaml_tree.rb#376
1622
+ def visit_BasicObject(o); end
1623
+
1624
+ # source://psych//lib/psych/visitors/yaml_tree.rb#250
1625
+ def visit_BigDecimal(o); end
1626
+
1627
+ # @raise [TypeError]
1628
+ #
1629
+ # source://psych//lib/psych/visitors/yaml_tree.rb#313
1630
+ def visit_Class(o); end
1631
+
1632
+ # source://psych//lib/psych/visitors/yaml_tree.rb#223
1633
+ def visit_Complex(o); end
1634
+
1635
+ # source://psych//lib/psych/visitors/yaml_tree.rb#194
1636
+ def visit_Date(o); end
1637
+
1638
+ # source://psych//lib/psych/visitors/yaml_tree.rb#198
1639
+ def visit_DateTime(o); end
1640
+
1641
+ # source://psych//lib/psych/visitors/yaml_tree.rb#152
1642
+ def visit_Delegator(o); end
1643
+
1644
+ # source://psych//lib/psych/visitors/yaml_tree.rb#147
1645
+ def visit_Encoding(o); end
1646
+
1647
+ # source://psych//lib/psych/visitors/yaml_tree.rb#358
1648
+ def visit_Enumerator(o); end
1649
+
1650
+ # source://psych//lib/psych/visitors/yaml_tree.rb#182
1651
+ def visit_Exception(o); end
1652
+
1653
+ # source://psych//lib/psych/visitors/yaml_tree.rb#233
1654
+ def visit_FalseClass(o); end
1655
+
1656
+ # source://psych//lib/psych/visitors/yaml_tree.rb#239
1657
+ def visit_Float(o); end
1658
+
1659
+ # source://psych//lib/psych/visitors/yaml_tree.rb#326
1660
+ def visit_Hash(o); end
1661
+
1662
+ # source://psych//lib/psych/visitors/yaml_tree.rb#233
1663
+ def visit_Integer(o); end
1664
+
1665
+ # @raise [TypeError]
1666
+ #
1667
+ # source://psych//lib/psych/visitors/yaml_tree.rb#308
1668
+ def visit_Module(o); end
1669
+
1670
+ # source://psych//lib/psych/visitors/yaml_tree.rb#186
1671
+ def visit_NameError(o); end
1672
+
1673
+ # source://psych//lib/psych/visitors/yaml_tree.rb#364
1674
+ def visit_NilClass(o); end
1675
+
1676
+ # source://psych//lib/psych/visitors/yaml_tree.rb#152
1677
+ def visit_Object(o); end
1678
+
1679
+ # source://psych//lib/psych/visitors/yaml_tree.rb#139
1680
+ def visit_Psych_Omap(o); end
1681
+
1682
+ # source://psych//lib/psych/visitors/yaml_tree.rb#339
1683
+ def visit_Psych_Set(o); end
1684
+
1685
+ # source://psych//lib/psych/visitors/yaml_tree.rb#318
1686
+ def visit_Range(o); end
1687
+
1688
+ # source://psych//lib/psych/visitors/yaml_tree.rb#210
1689
+ def visit_Rational(o); end
1690
+
1691
+ # source://psych//lib/psych/visitors/yaml_tree.rb#190
1692
+ def visit_Regexp(o); end
1693
+
1694
+ # source://psych//lib/psych/visitors/yaml_tree.rb#254
1695
+ def visit_String(o); end
1696
+
1697
+ # source://psych//lib/psych/visitors/yaml_tree.rb#168
1698
+ def visit_Struct(o); end
1699
+
1700
+ # source://psych//lib/psych/visitors/yaml_tree.rb#368
1701
+ def visit_Symbol(o); end
1702
+
1703
+ # source://psych//lib/psych/visitors/yaml_tree.rb#205
1704
+ def visit_Time(o); end
1705
+
1706
+ # source://psych//lib/psych/visitors/yaml_tree.rb#233
1707
+ def visit_TrueClass(o); end
1708
+
1709
+ private
1710
+
1711
+ # @return [Boolean]
1712
+ #
1713
+ # source://psych//lib/psych/visitors/yaml_tree.rb#390
1714
+ def binary?(string); end
1715
+
1716
+ # source://psych//lib/psych/visitors/yaml_tree.rb#497
1717
+ def dump_coder(o); end
1718
+
1719
+ # source://psych//lib/psych/visitors/yaml_tree.rb#466
1720
+ def dump_exception(o, msg); end
1721
+
1722
+ # source://psych//lib/psych/visitors/yaml_tree.rb#532
1723
+ def dump_ivars(target); end
1724
+
1725
+ # source://psych//lib/psych/visitors/yaml_tree.rb#463
1726
+ def dump_list(o); end
1727
+
1728
+ # source://psych//lib/psych/visitors/yaml_tree.rb#510
1729
+ def emit_coder(c, o); end
1730
+
1731
+ # source://psych//lib/psych/visitors/yaml_tree.rb#484
1732
+ def format_time(time, utc = T.unsafe(nil)); end
1733
+
1734
+ # source://psych//lib/psych/visitors/yaml_tree.rb#492
1735
+ def register(target, yaml_obj); end
1736
+
1737
+ # source://psych//lib/psych/visitors/yaml_tree.rb#394
1738
+ def visit_array_subclass(o); end
1739
+
1740
+ # source://psych//lib/psych/visitors/yaml_tree.rb#425
1741
+ def visit_hash_subclass(o); end
1742
+
1743
+ class << self
1744
+ # source://psych//lib/psych/visitors/yaml_tree.rb#48
1745
+ def create(options = T.unsafe(nil), emitter = T.unsafe(nil)); end
1746
+ end
1747
+ end
1748
+
1749
+ # source://psych//lib/psych/visitors/yaml_tree.rb#16
1750
+ class Psych::Visitors::YAMLTree::Registrar
1751
+ # @return [Registrar] a new instance of Registrar
1752
+ #
1753
+ # source://psych//lib/psych/visitors/yaml_tree.rb#17
1754
+ def initialize; end
1755
+
1756
+ # source://psych//lib/psych/visitors/yaml_tree.rb#35
1757
+ def id_for(target); end
1758
+
1759
+ # @return [Boolean]
1760
+ #
1761
+ # source://psych//lib/psych/visitors/yaml_tree.rb#29
1762
+ def key?(target); end
1763
+
1764
+ # source://psych//lib/psych/visitors/yaml_tree.rb#39
1765
+ def node_for(target); end
1766
+
1767
+ # source://psych//lib/psych/visitors/yaml_tree.rb#24
1768
+ def register(target, node); end
1769
+ end