optimistic-json 0.1.2 → 0.1.3

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 (58) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -0
  3. data/CHANGELOG.md +6 -0
  4. data/Rakefile +5 -1
  5. data/lib/optimistic/json/parser.rb +28 -7
  6. data/lib/optimistic/json/version.rb +2 -1
  7. data/lib/optimistic/json.rb +1 -0
  8. data/sorbet/config +4 -0
  9. data/sorbet/rbi/annotations/.gitattributes +1 -0
  10. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  11. data/sorbet/rbi/gems/.gitattributes +1 -0
  12. data/sorbet/rbi/gems/ast@2.4.2.rbi +550 -0
  13. data/sorbet/rbi/gems/benchmark@0.5.0.rbi +621 -0
  14. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1068 -0
  15. data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
  16. data/sorbet/rbi/gems/gem-release@2.2.2.rbi +1335 -0
  17. data/sorbet/rbi/gems/io-console@0.6.0.rbi +9 -0
  18. data/sorbet/rbi/gems/json@2.7.0.rbi +1797 -0
  19. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +12986 -0
  20. data/sorbet/rbi/gems/logger@1.6.0.rbi +845 -0
  21. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +218 -0
  22. data/sorbet/rbi/gems/netrc@0.11.0.rbi +147 -0
  23. data/sorbet/rbi/gems/parallel@1.28.0.rbi +270 -0
  24. data/sorbet/rbi/gems/parser@3.2.2.4.rbi +5154 -0
  25. data/sorbet/rbi/gems/prism@1.9.0.rbi +42224 -0
  26. data/sorbet/rbi/gems/psych@5.1.1.1.rbi +2321 -0
  27. data/sorbet/rbi/gems/racc@1.7.3.rbi +169 -0
  28. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +362 -0
  29. data/sorbet/rbi/gems/rake@13.1.0.rbi +3025 -0
  30. data/sorbet/rbi/gems/rbi@0.3.11.rbi +5505 -0
  31. data/sorbet/rbi/gems/rbs@4.0.2.rbi +6908 -0
  32. data/sorbet/rbi/gems/rdoc@6.6.0.rbi +9 -0
  33. data/sorbet/rbi/gems/regexp_parser@2.8.2.rbi +3268 -0
  34. data/sorbet/rbi/gems/reline@0.4.1.rbi +9 -0
  35. data/sorbet/rbi/gems/require-hooks@0.4.0.rbi +152 -0
  36. data/sorbet/rbi/gems/rexml@3.2.6.rbi +4798 -0
  37. data/sorbet/rbi/gems/rspec-core@3.12.2.rbi +9405 -0
  38. data/sorbet/rbi/gems/rspec-expectations@3.12.3.rbi +6013 -0
  39. data/sorbet/rbi/gems/rspec-mocks@3.12.6.rbi +4750 -0
  40. data/sorbet/rbi/gems/rspec-support@3.12.1.rbi +1261 -0
  41. data/sorbet/rbi/gems/rspec@3.12.0.rbi +15 -0
  42. data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +6750 -0
  43. data/sorbet/rbi/gems/rubocop-capybara@2.19.0.rbi +1058 -0
  44. data/sorbet/rbi/gems/rubocop-factory_bot@2.24.0.rbi +875 -0
  45. data/sorbet/rbi/gems/rubocop-rspec@2.25.0.rbi +7696 -0
  46. data/sorbet/rbi/gems/rubocop@1.58.0.rbi +53790 -0
  47. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +988 -0
  48. data/sorbet/rbi/gems/rubydex@0.2.3.rbi +787 -0
  49. data/sorbet/rbi/gems/spoom@1.7.14.rbi +6151 -0
  50. data/sorbet/rbi/gems/stringio@3.1.0.rbi +9 -0
  51. data/sorbet/rbi/gems/tapioca@0.19.1.rbi +3558 -0
  52. data/sorbet/rbi/gems/thor@1.5.0.rbi +3870 -0
  53. data/sorbet/rbi/gems/tsort@0.2.0.rbi +387 -0
  54. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +64 -0
  55. data/sorbet/tapioca/config.yml +13 -0
  56. data/sorbet/tapioca/require.rb +4 -0
  57. metadata +54 -22
  58. data/sig/optimistic/json.rbs +0 -6
@@ -0,0 +1,2321 @@
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
+ # pkg:gem/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
+ # pkg:gem/psych#lib/psych/core_ext.rb:12
19
+ def to_yaml(options = T.unsafe(nil)); end
20
+
21
+ class << self
22
+ # pkg:gem/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
+ # pkg:gem/psych#lib/psych/versions.rb:3
230
+ module Psych
231
+ class << self
232
+ # pkg:gem/psych#lib/psych.rb:682
233
+ def add_builtin_type(type_tag, &block); end
234
+
235
+ # :stopdoc:
236
+ #
237
+ # pkg:gem/psych#lib/psych.rb:676
238
+ def add_domain_type(domain, type_tag, &block); end
239
+
240
+ # pkg:gem/psych#lib/psych.rb:692
241
+ def add_tag(tag, klass); end
242
+
243
+ # pkg:gem/psych#lib/psych.rb:708
244
+ def config; end
245
+
246
+ # pkg:gem/psych#lib/psych.rb:720
247
+ def domain_types; end
248
+
249
+ # pkg:gem/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
+ # pkg:gem/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
+ # pkg:gem/psych#lib/psych.rb:595
304
+ def dump_stream(*objects); end
305
+
306
+ # pkg:gem/psych#lib/psych.rb:716
307
+ def dump_tags; end
308
+
309
+ # pkg:gem/psych#lib/psych.rb:728
310
+ def dump_tags=(value); end
311
+
312
+ # pkg:gem/psych#lib/psych.rb:13
313
+ def libyaml_version; end
314
+
315
+ # Load +yaml+ in to a Ruby data structure. If multiple documents are
316
+ # provided, the object contained in the first document will be returned.
317
+ # +filename+ will be used in the exception message if any exception
318
+ # is raised while parsing. If +yaml+ is empty, it returns
319
+ # the specified +fallback+ return value, which defaults to +false+.
320
+ #
321
+ # Raises a Psych::SyntaxError when a YAML syntax error is detected.
322
+ #
323
+ # Example:
324
+ #
325
+ # Psych.load("--- a") # => 'a'
326
+ # Psych.load("---\n - a\n - b") # => ['a', 'b']
327
+ #
328
+ # begin
329
+ # Psych.load("--- `", filename: "file.txt")
330
+ # rescue Psych::SyntaxError => ex
331
+ # ex.file # => 'file.txt'
332
+ # ex.message # => "(file.txt): found character that cannot start any token"
333
+ # end
334
+ #
335
+ # When the optional +symbolize_names+ keyword argument is set to a
336
+ # true value, returns symbols for keys in Hash objects (default: strings).
337
+ #
338
+ # Psych.load("---\n foo: bar") # => {"foo"=>"bar"}
339
+ # Psych.load("---\n foo: bar", symbolize_names: true) # => {:foo=>"bar"}
340
+ #
341
+ # Raises a TypeError when `yaml` parameter is NilClass. This method is
342
+ # similar to `safe_load` except that `Symbol` objects are allowed by default.
343
+ #
344
+ # pkg:gem/psych#lib/psych.rb:368
345
+ 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
346
+
347
+ # Loads the document contained in +filename+. Returns the yaml contained in
348
+ # +filename+ as a Ruby object, or if the file is empty, it returns
349
+ # the specified +fallback+ return value, which defaults to +false+.
350
+ # See load for options.
351
+ #
352
+ # pkg:gem/psych#lib/psych.rb:669
353
+ def load_file(filename, **kwargs); end
354
+
355
+ # Load multiple documents given in +yaml+. Returns the parsed documents
356
+ # as a list. If a block is given, each document will be converted to Ruby
357
+ # and passed to the block during parsing
358
+ #
359
+ # Example:
360
+ #
361
+ # Psych.load_stream("--- foo\n...\n--- bar\n...") # => ['foo', 'bar']
362
+ #
363
+ # list = []
364
+ # Psych.load_stream("--- foo\n...\n--- bar\n...") do |ruby|
365
+ # list << ruby
366
+ # end
367
+ # list # => ['foo', 'bar']
368
+ #
369
+ # pkg:gem/psych#lib/psych.rb:626
370
+ def load_stream(yaml, filename: T.unsafe(nil), fallback: T.unsafe(nil), **kwargs); end
371
+
372
+ # pkg:gem/psych#lib/psych.rb:712
373
+ def load_tags; end
374
+
375
+ # pkg:gem/psych#lib/psych.rb:724
376
+ def load_tags=(value); end
377
+
378
+ # Parse a YAML string in +yaml+. Returns the Psych::Nodes::Document.
379
+ # +filename+ is used in the exception message if a Psych::SyntaxError is
380
+ # raised.
381
+ #
382
+ # Raises a Psych::SyntaxError when a YAML syntax error is detected.
383
+ #
384
+ # Example:
385
+ #
386
+ # Psych.parse("---\n - a\n - b") # => #<Psych::Nodes::Document:0x00>
387
+ #
388
+ # begin
389
+ # Psych.parse("--- `", filename: "file.txt")
390
+ # rescue Psych::SyntaxError => ex
391
+ # ex.file # => 'file.txt'
392
+ # ex.message # => "(file.txt): found character that cannot start any token"
393
+ # end
394
+ #
395
+ # See Psych::Nodes for more information about YAML AST.
396
+ #
397
+ # pkg:gem/psych#lib/psych.rb:398
398
+ def parse(yaml, filename: T.unsafe(nil)); end
399
+
400
+ # Parse a file at +filename+. Returns the Psych::Nodes::Document.
401
+ #
402
+ # Raises a Psych::SyntaxError when a YAML syntax error is detected.
403
+ #
404
+ # pkg:gem/psych#lib/psych.rb:410
405
+ def parse_file(filename, fallback: T.unsafe(nil)); end
406
+
407
+ # Parse a YAML string in +yaml+. Returns the Psych::Nodes::Stream.
408
+ # This method can handle multiple YAML documents contained in +yaml+.
409
+ # +filename+ is used in the exception message if a Psych::SyntaxError is
410
+ # raised.
411
+ #
412
+ # If a block is given, a Psych::Nodes::Document node will be yielded to the
413
+ # block as it's being parsed.
414
+ #
415
+ # Raises a Psych::SyntaxError when a YAML syntax error is detected.
416
+ #
417
+ # Example:
418
+ #
419
+ # Psych.parse_stream("---\n - a\n - b") # => #<Psych::Nodes::Stream:0x00>
420
+ #
421
+ # Psych.parse_stream("--- a\n--- b") do |node|
422
+ # node # => #<Psych::Nodes::Document:0x00>
423
+ # end
424
+ #
425
+ # begin
426
+ # Psych.parse_stream("--- `", filename: "file.txt")
427
+ # rescue Psych::SyntaxError => ex
428
+ # ex.file # => 'file.txt'
429
+ # ex.message # => "(file.txt): found character that cannot start any token"
430
+ # end
431
+ #
432
+ # Raises a TypeError when NilClass is passed.
433
+ #
434
+ # See Psych::Nodes for more information about YAML AST.
435
+ #
436
+ # pkg:gem/psych#lib/psych.rb:452
437
+ def parse_stream(yaml, filename: T.unsafe(nil), &block); end
438
+
439
+ # Returns a default parser
440
+ #
441
+ # pkg:gem/psych#lib/psych.rb:419
442
+ def parser; end
443
+
444
+ # pkg:gem/psych#lib/psych.rb:688
445
+ def remove_type(type_tag); end
446
+
447
+ # call-seq:
448
+ # Psych.safe_dump(o) -> string of yaml
449
+ # Psych.safe_dump(o, options) -> string of yaml
450
+ # Psych.safe_dump(o, io) -> io object passed in
451
+ # Psych.safe_dump(o, io, options) -> io object passed in
452
+ #
453
+ # Safely dump Ruby object +o+ to a YAML string. Optional +options+ may be passed in
454
+ # to control the output format. If an IO object is passed in, the YAML will
455
+ # be dumped to that IO object. By default, only the following
456
+ # classes are allowed to be serialized:
457
+ #
458
+ # * TrueClass
459
+ # * FalseClass
460
+ # * NilClass
461
+ # * Integer
462
+ # * Float
463
+ # * String
464
+ # * Array
465
+ # * Hash
466
+ #
467
+ # Arbitrary classes can be allowed by adding those classes to the +permitted_classes+
468
+ # keyword argument. They are additive. For example, to allow Date serialization:
469
+ #
470
+ # Psych.safe_dump(yaml, permitted_classes: [Date])
471
+ #
472
+ # Now the Date class can be dumped in addition to the classes listed above.
473
+ #
474
+ # A Psych::DisallowedClass exception will be raised if the object contains a
475
+ # class that isn't in the +permitted_classes+ list.
476
+ #
477
+ # Currently supported options are:
478
+ #
479
+ # [<tt>:indentation</tt>] Number of space characters used to indent.
480
+ # Acceptable value should be in <tt>0..9</tt> range,
481
+ # otherwise option is ignored.
482
+ #
483
+ # Default: <tt>2</tt>.
484
+ # [<tt>:line_width</tt>] Max character to wrap line at.
485
+ #
486
+ # Default: <tt>0</tt> (meaning "wrap at 81").
487
+ # [<tt>:canonical</tt>] Write "canonical" YAML form (very verbose, yet
488
+ # strictly formal).
489
+ #
490
+ # Default: <tt>false</tt>.
491
+ # [<tt>:header</tt>] Write <tt>%YAML [version]</tt> at the beginning of document.
492
+ #
493
+ # Default: <tt>false</tt>.
494
+ #
495
+ # Example:
496
+ #
497
+ # # Dump an array, get back a YAML string
498
+ # Psych.safe_dump(['a', 'b']) # => "---\n- a\n- b\n"
499
+ #
500
+ # # Dump an array to an IO object
501
+ # Psych.safe_dump(['a', 'b'], StringIO.new) # => #<StringIO:0x000001009d0890>
502
+ #
503
+ # # Dump an array with indentation set
504
+ # Psych.safe_dump(['a', ['b']], indentation: 3) # => "---\n- a\n- - b\n"
505
+ #
506
+ # # Dump an array to an IO with indentation set
507
+ # Psych.safe_dump(['a', ['b']], StringIO.new, indentation: 3)
508
+ #
509
+ # pkg:gem/psych#lib/psych.rb:578
510
+ def safe_dump(o, io = T.unsafe(nil), options = T.unsafe(nil)); end
511
+
512
+ # Safely load the yaml string in +yaml+. By default, only the following
513
+ # classes are allowed to be deserialized:
514
+ #
515
+ # * TrueClass
516
+ # * FalseClass
517
+ # * NilClass
518
+ # * Integer
519
+ # * Float
520
+ # * String
521
+ # * Array
522
+ # * Hash
523
+ #
524
+ # Recursive data structures are not allowed by default. Arbitrary classes
525
+ # can be allowed by adding those classes to the +permitted_classes+ keyword argument. They are
526
+ # additive. For example, to allow Date deserialization:
527
+ #
528
+ # Psych.safe_load(yaml, permitted_classes: [Date])
529
+ #
530
+ # Now the Date class can be loaded in addition to the classes listed above.
531
+ #
532
+ # Aliases can be explicitly allowed by changing the +aliases+ keyword argument.
533
+ # For example:
534
+ #
535
+ # x = []
536
+ # x << x
537
+ # yaml = Psych.dump x
538
+ # Psych.safe_load yaml # => raises an exception
539
+ # Psych.safe_load yaml, aliases: true # => loads the aliases
540
+ #
541
+ # A Psych::DisallowedClass exception will be raised if the yaml contains a
542
+ # class that isn't in the +permitted_classes+ list.
543
+ #
544
+ # A Psych::AliasesNotEnabled exception will be raised if the yaml contains aliases
545
+ # but the +aliases+ keyword argument is set to false.
546
+ #
547
+ # +filename+ will be used in the exception message if any exception is raised
548
+ # while parsing.
549
+ #
550
+ # When the optional +symbolize_names+ keyword argument is set to a
551
+ # true value, returns symbols for keys in Hash objects (default: strings).
552
+ #
553
+ # Psych.safe_load("---\n foo: bar") # => {"foo"=>"bar"}
554
+ # Psych.safe_load("---\n foo: bar", symbolize_names: true) # => {:foo=>"bar"}
555
+ #
556
+ # pkg:gem/psych#lib/psych.rb:322
557
+ 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
558
+
559
+ # Safely loads the document contained in +filename+. Returns the yaml contained in
560
+ # +filename+ as a Ruby object, or if the file is empty, it returns
561
+ # the specified +fallback+ return value, which defaults to +false+.
562
+ # See safe_load for options.
563
+ #
564
+ # pkg:gem/psych#lib/psych.rb:658
565
+ def safe_load_file(filename, **kwargs); end
566
+
567
+ # Dump Ruby +object+ to a JSON string.
568
+ #
569
+ # pkg:gem/psych#lib/psych.rb:605
570
+ def to_json(object); end
571
+
572
+ # Load +yaml+ in to a Ruby data structure. If multiple documents are
573
+ # provided, the object contained in the first document will be returned.
574
+ # +filename+ will be used in the exception message if any exception
575
+ # is raised while parsing. If +yaml+ is empty, it returns
576
+ # the specified +fallback+ return value, which defaults to +false+.
577
+ #
578
+ # Raises a Psych::SyntaxError when a YAML syntax error is detected.
579
+ #
580
+ # Example:
581
+ #
582
+ # Psych.unsafe_load("--- a") # => 'a'
583
+ # Psych.unsafe_load("---\n - a\n - b") # => ['a', 'b']
584
+ #
585
+ # begin
586
+ # Psych.unsafe_load("--- `", filename: "file.txt")
587
+ # rescue Psych::SyntaxError => ex
588
+ # ex.file # => 'file.txt'
589
+ # ex.message # => "(file.txt): found character that cannot start any token"
590
+ # end
591
+ #
592
+ # When the optional +symbolize_names+ keyword argument is set to a
593
+ # true value, returns symbols for keys in Hash objects (default: strings).
594
+ #
595
+ # Psych.unsafe_load("---\n foo: bar") # => {"foo"=>"bar"}
596
+ # Psych.unsafe_load("---\n foo: bar", symbolize_names: true) # => {:foo=>"bar"}
597
+ #
598
+ # Raises a TypeError when `yaml` parameter is NilClass
599
+ #
600
+ # NOTE: This method *should not* be used to parse untrusted documents, such as
601
+ # YAML documents that are supplied via user input. Instead, please use the
602
+ # load method or the safe_load method.
603
+ #
604
+ # pkg:gem/psych#lib/psych.rb:271
605
+ 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
606
+
607
+ # Load the document contained in +filename+. Returns the yaml contained in
608
+ # +filename+ as a Ruby object, or if the file is empty, it returns
609
+ # the specified +fallback+ return value, which defaults to +false+.
610
+ #
611
+ # NOTE: This method *should not* be used to parse untrusted documents, such as
612
+ # YAML documents that are supplied via user input. Instead, please use the
613
+ # safe_load_file method.
614
+ #
615
+ # pkg:gem/psych#lib/psych.rb:647
616
+ def unsafe_load_file(filename, **kwargs); end
617
+ end
618
+ end
619
+
620
+ # Subclasses `BadAlias` for backwards compatibility
621
+ #
622
+ # pkg:gem/psych#lib/psych/exception.rb:10
623
+ class Psych::AliasesNotEnabled < ::Psych::BadAlias
624
+ # pkg:gem/psych#lib/psych/exception.rb:11
625
+ def initialize; end
626
+ end
627
+
628
+ # Subclasses `BadAlias` for backwards compatibility
629
+ #
630
+ # pkg:gem/psych#lib/psych/exception.rb:17
631
+ class Psych::AnchorNotDefined < ::Psych::BadAlias
632
+ # pkg:gem/psych#lib/psych/exception.rb:18
633
+ def initialize(anchor_name); end
634
+ end
635
+
636
+ # pkg:gem/psych#lib/psych.rb:13
637
+ class Psych::ClassLoader
638
+ # pkg:gem/psych#lib/psych/class_loader.rb:21
639
+ def initialize; end
640
+
641
+ # pkg:gem/psych#lib/psych/class_loader.rb:38
642
+ def big_decimal; end
643
+
644
+ # pkg:gem/psych#lib/psych/class_loader.rb:38
645
+ def complex; end
646
+
647
+ # pkg:gem/psych#lib/psych/class_loader.rb:38
648
+ def date; end
649
+
650
+ # pkg:gem/psych#lib/psych/class_loader.rb:38
651
+ def date_time; end
652
+
653
+ # pkg:gem/psych#lib/psych/class_loader.rb:38
654
+ def exception; end
655
+
656
+ # pkg:gem/psych#lib/psych/class_loader.rb:25
657
+ def load(klassname); end
658
+
659
+ # pkg:gem/psych#lib/psych/class_loader.rb:38
660
+ def object; end
661
+
662
+ # pkg:gem/psych#lib/psych/class_loader.rb:38
663
+ def psych_omap; end
664
+
665
+ # pkg:gem/psych#lib/psych/class_loader.rb:38
666
+ def psych_set; end
667
+
668
+ # pkg:gem/psych#lib/psych/class_loader.rb:38
669
+ def range; end
670
+
671
+ # pkg:gem/psych#lib/psych/class_loader.rb:38
672
+ def rational; end
673
+
674
+ # pkg:gem/psych#lib/psych/class_loader.rb:38
675
+ def regexp; end
676
+
677
+ # pkg:gem/psych#lib/psych/class_loader.rb:38
678
+ def struct; end
679
+
680
+ # pkg:gem/psych#lib/psych/class_loader.rb:38
681
+ def symbol; end
682
+
683
+ # pkg:gem/psych#lib/psych/class_loader.rb:31
684
+ def symbolize(sym); end
685
+
686
+ private
687
+
688
+ # pkg:gem/psych#lib/psych/class_loader.rb:47
689
+ def find(klassname); end
690
+
691
+ # pkg:gem/psych#lib/psych.rb:13
692
+ def path2class(_arg0); end
693
+
694
+ # pkg:gem/psych#lib/psych/class_loader.rb:51
695
+ def resolve(klassname); end
696
+ end
697
+
698
+ # pkg:gem/psych#lib/psych/class_loader.rb:76
699
+ class Psych::ClassLoader::Restricted < ::Psych::ClassLoader
700
+ # pkg:gem/psych#lib/psych/class_loader.rb:77
701
+ def initialize(classes, symbols); end
702
+
703
+ # pkg:gem/psych#lib/psych/class_loader.rb:83
704
+ def symbolize(sym); end
705
+
706
+ private
707
+
708
+ # pkg:gem/psych#lib/psych/class_loader.rb:95
709
+ def find(klassname); end
710
+ end
711
+
712
+ # If an object defines +encode_with+, then an instance of Psych::Coder will
713
+ # be passed to the method when the object is being serialized. The Coder
714
+ # automatically assumes a Psych::Nodes::Mapping is being emitted. Other
715
+ # objects like Sequence and Scalar may be emitted if +seq=+ or +scalar=+ are
716
+ # called, respectively.
717
+ #
718
+ # pkg:gem/psych#lib/psych/coder.rb:9
719
+ class Psych::Coder
720
+ # pkg:gem/psych#lib/psych/coder.rb:13
721
+ def initialize(tag); end
722
+
723
+ # pkg:gem/psych#lib/psych/coder.rb:84
724
+ def [](k); end
725
+
726
+ # pkg:gem/psych#lib/psych/coder.rb:78
727
+ def []=(k, v); end
728
+
729
+ # pkg:gem/psych#lib/psych/coder.rb:82
730
+ def add(k, v); end
731
+
732
+ # pkg:gem/psych#lib/psych/coder.rb:10
733
+ def implicit; end
734
+
735
+ # pkg:gem/psych#lib/psych/coder.rb:10
736
+ def implicit=(_arg0); end
737
+
738
+ # Emit a map. The coder will be yielded to the block.
739
+ #
740
+ # pkg:gem/psych#lib/psych/coder.rb:34
741
+ def map(tag = T.unsafe(nil), style = T.unsafe(nil)); end
742
+
743
+ # Emit a map with +value+
744
+ #
745
+ # pkg:gem/psych#lib/psych/coder.rb:73
746
+ def map=(map); end
747
+
748
+ # pkg:gem/psych#lib/psych/coder.rb:10
749
+ def object; end
750
+
751
+ # pkg:gem/psych#lib/psych/coder.rb:10
752
+ def object=(_arg0); end
753
+
754
+ # Emit a sequence with +map+ and +tag+
755
+ #
756
+ # pkg:gem/psych#lib/psych/coder.rb:54
757
+ def represent_map(tag, map); end
758
+
759
+ # Emit an arbitrary object +obj+ and +tag+
760
+ #
761
+ # pkg:gem/psych#lib/psych/coder.rb:60
762
+ def represent_object(tag, obj); end
763
+
764
+ # Emit a scalar with +value+ and +tag+
765
+ #
766
+ # pkg:gem/psych#lib/psych/coder.rb:42
767
+ def represent_scalar(tag, value); end
768
+
769
+ # Emit a sequence with +list+ and +tag+
770
+ #
771
+ # pkg:gem/psych#lib/psych/coder.rb:48
772
+ def represent_seq(tag, list); end
773
+
774
+ # pkg:gem/psych#lib/psych/coder.rb:24
775
+ def scalar(*args); end
776
+
777
+ # Emit a scalar with +value+
778
+ #
779
+ # pkg:gem/psych#lib/psych/coder.rb:67
780
+ def scalar=(value); end
781
+
782
+ # pkg:gem/psych#lib/psych/coder.rb:11
783
+ def seq; end
784
+
785
+ # Emit a sequence of +list+
786
+ #
787
+ # pkg:gem/psych#lib/psych/coder.rb:90
788
+ def seq=(list); end
789
+
790
+ # pkg:gem/psych#lib/psych/coder.rb:10
791
+ def style; end
792
+
793
+ # pkg:gem/psych#lib/psych/coder.rb:10
794
+ def style=(_arg0); end
795
+
796
+ # pkg:gem/psych#lib/psych/coder.rb:10
797
+ def tag; end
798
+
799
+ # pkg:gem/psych#lib/psych/coder.rb:10
800
+ def tag=(_arg0); end
801
+
802
+ # pkg:gem/psych#lib/psych/coder.rb:11
803
+ def type; end
804
+ end
805
+
806
+ # pkg:gem/psych#lib/psych/exception.rb:23
807
+ class Psych::DisallowedClass < ::Psych::Exception
808
+ # pkg:gem/psych#lib/psych/exception.rb:24
809
+ def initialize(action, klass_name); end
810
+ end
811
+
812
+ # pkg:gem/psych#lib/psych.rb:13
813
+ class Psych::Emitter < ::Psych::Handler
814
+ # pkg:gem/psych#lib/psych.rb:13
815
+ def initialize(*_arg0); end
816
+
817
+ # pkg:gem/psych#lib/psych.rb:13
818
+ def alias(_arg0); end
819
+
820
+ # pkg:gem/psych#lib/psych.rb:13
821
+ def canonical; end
822
+
823
+ # pkg:gem/psych#lib/psych.rb:13
824
+ def canonical=(_arg0); end
825
+
826
+ # pkg:gem/psych#lib/psych.rb:13
827
+ def end_document(_arg0); end
828
+
829
+ # pkg:gem/psych#lib/psych.rb:13
830
+ def end_mapping; end
831
+
832
+ # pkg:gem/psych#lib/psych.rb:13
833
+ def end_sequence; end
834
+
835
+ # pkg:gem/psych#lib/psych.rb:13
836
+ def end_stream; end
837
+
838
+ # pkg:gem/psych#lib/psych.rb:13
839
+ def indentation; end
840
+
841
+ # pkg:gem/psych#lib/psych.rb:13
842
+ def indentation=(_arg0); end
843
+
844
+ # pkg:gem/psych#lib/psych.rb:13
845
+ def line_width; end
846
+
847
+ # pkg:gem/psych#lib/psych.rb:13
848
+ def line_width=(_arg0); end
849
+
850
+ # pkg:gem/psych#lib/psych.rb:13
851
+ def scalar(_arg0, _arg1, _arg2, _arg3, _arg4, _arg5); end
852
+
853
+ # pkg:gem/psych#lib/psych.rb:13
854
+ def start_document(_arg0, _arg1, _arg2); end
855
+
856
+ # pkg:gem/psych#lib/psych.rb:13
857
+ def start_mapping(_arg0, _arg1, _arg2, _arg3); end
858
+
859
+ # pkg:gem/psych#lib/psych.rb:13
860
+ def start_sequence(_arg0, _arg1, _arg2, _arg3); end
861
+
862
+ # pkg:gem/psych#lib/psych.rb:13
863
+ def start_stream(_arg0); end
864
+ end
865
+
866
+ # Psych::Handler is an abstract base class that defines the events used
867
+ # when dealing with Psych::Parser. Clients who want to use Psych::Parser
868
+ # should implement a class that inherits from Psych::Handler and define
869
+ # events that they can handle.
870
+ #
871
+ # Psych::Handler defines all events that Psych::Parser can possibly send to
872
+ # event handlers.
873
+ #
874
+ # See Psych::Parser for more details
875
+ #
876
+ # pkg:gem/psych#lib/psych.rb:13
877
+ class Psych::Handler
878
+ # Called when an alias is found to +anchor+. +anchor+ will be the name
879
+ # of the anchor found.
880
+ #
881
+ # === Example
882
+ #
883
+ # Here we have an example of an array that references itself in YAML:
884
+ #
885
+ # --- &ponies
886
+ # - first element
887
+ # - *ponies
888
+ #
889
+ # &ponies is the anchor, *ponies is the alias. In this case, alias is
890
+ # called with "ponies".
891
+ #
892
+ # pkg:gem/psych#lib/psych/handler.rb:110
893
+ def alias(anchor); end
894
+
895
+ # Called when an empty event happens. (Which, as far as I can tell, is
896
+ # never).
897
+ #
898
+ # pkg:gem/psych#lib/psych/handler.rb:236
899
+ def empty; end
900
+
901
+ # Called with the document ends. +implicit+ is a boolean value indicating
902
+ # whether or not the document has an implicit ending.
903
+ #
904
+ # === Example
905
+ #
906
+ # Given the following YAML:
907
+ #
908
+ # ---
909
+ # hello world
910
+ #
911
+ # +implicit+ will be true. Given this YAML:
912
+ #
913
+ # ---
914
+ # hello world
915
+ # ...
916
+ #
917
+ # +implicit+ will be false.
918
+ #
919
+ # pkg:gem/psych#lib/psych/handler.rb:93
920
+ def end_document(implicit); end
921
+
922
+ # Called when a map ends
923
+ #
924
+ # pkg:gem/psych#lib/psych/handler.rb:230
925
+ def end_mapping; end
926
+
927
+ # Called when a sequence ends.
928
+ #
929
+ # pkg:gem/psych#lib/psych/handler.rb:191
930
+ def end_sequence; end
931
+
932
+ # Called when the YAML stream ends
933
+ #
934
+ # pkg:gem/psych#lib/psych/handler.rb:241
935
+ def end_stream; end
936
+
937
+ # Called before each event with line/column information.
938
+ #
939
+ # pkg:gem/psych#lib/psych/handler.rb:246
940
+ def event_location(start_line, start_column, end_line, end_column); end
941
+
942
+ # Called when a scalar +value+ is found. The scalar may have an
943
+ # +anchor+, a +tag+, be implicitly +plain+ or implicitly +quoted+
944
+ #
945
+ # +value+ is the string value of the scalar
946
+ # +anchor+ is an associated anchor or nil
947
+ # +tag+ is an associated tag or nil
948
+ # +plain+ is a boolean value
949
+ # +quoted+ is a boolean value
950
+ # +style+ is an integer indicating the string style
951
+ #
952
+ # See the constants in Psych::Nodes::Scalar for the possible values of
953
+ # +style+
954
+ #
955
+ # === Example
956
+ #
957
+ # Here is a YAML document that exercises most of the possible ways this
958
+ # method can be called:
959
+ #
960
+ # ---
961
+ # - !str "foo"
962
+ # - &anchor fun
963
+ # - many
964
+ # lines
965
+ # - |
966
+ # many
967
+ # newlines
968
+ #
969
+ # The above YAML document contains a list with four strings. Here are
970
+ # the parameters sent to this method in the same order:
971
+ #
972
+ # # value anchor tag plain quoted style
973
+ # ["foo", nil, "!str", false, false, 3 ]
974
+ # ["fun", "anchor", nil, true, false, 1 ]
975
+ # ["many lines", nil, nil, true, false, 1 ]
976
+ # ["many\nnewlines\n", nil, nil, false, true, 4 ]
977
+ #
978
+ # pkg:gem/psych#lib/psych/handler.rb:150
979
+ def scalar(value, anchor, tag, plain, quoted, style); end
980
+
981
+ # Called when the document starts with the declared +version+,
982
+ # +tag_directives+, if the document is +implicit+.
983
+ #
984
+ # +version+ will be an array of integers indicating the YAML version being
985
+ # dealt with, +tag_directives+ is a list of tuples indicating the prefix
986
+ # and suffix of each tag, and +implicit+ is a boolean indicating whether
987
+ # the document is started implicitly.
988
+ #
989
+ # === Example
990
+ #
991
+ # Given the following YAML:
992
+ #
993
+ # %YAML 1.1
994
+ # %TAG ! tag:tenderlovemaking.com,2009:
995
+ # --- !squee
996
+ #
997
+ # The parameters for start_document must be this:
998
+ #
999
+ # version # => [1, 1]
1000
+ # tag_directives # => [["!", "tag:tenderlovemaking.com,2009:"]]
1001
+ # implicit # => false
1002
+ #
1003
+ # pkg:gem/psych#lib/psych/handler.rb:72
1004
+ def start_document(version, tag_directives, implicit); end
1005
+
1006
+ # Called when a map starts.
1007
+ #
1008
+ # +anchor+ is the anchor associated with the map or +nil+.
1009
+ # +tag+ is the tag associated with the map or +nil+.
1010
+ # +implicit+ is a boolean indicating whether or not the map was implicitly
1011
+ # started.
1012
+ # +style+ is an integer indicating the mapping style.
1013
+ #
1014
+ # See the constants in Psych::Nodes::Mapping for the possible values of
1015
+ # +style+.
1016
+ #
1017
+ # === Example
1018
+ #
1019
+ # Here is a YAML document that exercises most of the possible ways this
1020
+ # method can be called:
1021
+ #
1022
+ # ---
1023
+ # k: !!map { hello: world }
1024
+ # v: &pewpew
1025
+ # hello: world
1026
+ #
1027
+ # The above YAML document consists of three maps, an outer map that contains
1028
+ # two inner maps. Below is a matrix of the parameters sent in order to
1029
+ # represent these three maps:
1030
+ #
1031
+ # # anchor tag implicit style
1032
+ # [nil, nil, true, 1 ]
1033
+ # [nil, "tag:yaml.org,2002:map", false, 2 ]
1034
+ # ["pewpew", nil, true, 1 ]
1035
+ #
1036
+ # pkg:gem/psych#lib/psych/handler.rb:225
1037
+ def start_mapping(anchor, tag, implicit, style); end
1038
+
1039
+ # Called when a sequence is started.
1040
+ #
1041
+ # +anchor+ is the anchor associated with the sequence or nil.
1042
+ # +tag+ is the tag associated with the sequence or nil.
1043
+ # +implicit+ a boolean indicating whether or not the sequence was implicitly
1044
+ # started.
1045
+ # +style+ is an integer indicating the list style.
1046
+ #
1047
+ # See the constants in Psych::Nodes::Sequence for the possible values of
1048
+ # +style+.
1049
+ #
1050
+ # === Example
1051
+ #
1052
+ # Here is a YAML document that exercises most of the possible ways this
1053
+ # method can be called:
1054
+ #
1055
+ # ---
1056
+ # - !!seq [
1057
+ # a
1058
+ # ]
1059
+ # - &pewpew
1060
+ # - b
1061
+ #
1062
+ # The above YAML document consists of three lists, an outer list that
1063
+ # contains two inner lists. Here is a matrix of the parameters sent
1064
+ # to represent these lists:
1065
+ #
1066
+ # # anchor tag implicit style
1067
+ # [nil, nil, true, 1 ]
1068
+ # [nil, "tag:yaml.org,2002:seq", false, 2 ]
1069
+ # ["pewpew", nil, true, 1 ]
1070
+ #
1071
+ # pkg:gem/psych#lib/psych/handler.rb:186
1072
+ def start_sequence(anchor, tag, implicit, style); end
1073
+
1074
+ # Called with +encoding+ when the YAML stream starts. This method is
1075
+ # called once per stream. A stream may contain multiple documents.
1076
+ #
1077
+ # See the constants in Psych::Parser for the possible values of +encoding+.
1078
+ #
1079
+ # pkg:gem/psych#lib/psych/handler.rb:47
1080
+ def start_stream(encoding); end
1081
+
1082
+ # Is this handler a streaming handler?
1083
+ #
1084
+ # pkg:gem/psych#lib/psych/handler.rb:251
1085
+ def streaming?; end
1086
+ end
1087
+
1088
+ # Configuration options for dumping YAML.
1089
+ #
1090
+ # pkg:gem/psych#lib/psych/handler.rb:16
1091
+ class Psych::Handler::DumperOptions
1092
+ # pkg:gem/psych#lib/psych/handler.rb:19
1093
+ def initialize; end
1094
+
1095
+ # pkg:gem/psych#lib/psych/handler.rb:17
1096
+ def canonical; end
1097
+
1098
+ # pkg:gem/psych#lib/psych/handler.rb:17
1099
+ def canonical=(_arg0); end
1100
+
1101
+ # pkg:gem/psych#lib/psych/handler.rb:17
1102
+ def indentation; end
1103
+
1104
+ # pkg:gem/psych#lib/psych/handler.rb:17
1105
+ def indentation=(_arg0); end
1106
+
1107
+ # pkg:gem/psych#lib/psych/handler.rb:17
1108
+ def line_width; end
1109
+
1110
+ # pkg:gem/psych#lib/psych/handler.rb:17
1111
+ def line_width=(_arg0); end
1112
+ end
1113
+
1114
+ # pkg:gem/psych#lib/psych/handlers/document_stream.rb:6
1115
+ class Psych::Handlers::DocumentStream < ::Psych::TreeBuilder
1116
+ # pkg:gem/psych#lib/psych/handlers/document_stream.rb:7
1117
+ def initialize(&block); end
1118
+
1119
+ # pkg:gem/psych#lib/psych/handlers/document_stream.rb:17
1120
+ def end_document(implicit_end = T.unsafe(nil)); end
1121
+
1122
+ # pkg:gem/psych#lib/psych/handlers/document_stream.rb:12
1123
+ def start_document(version, tag_directives, implicit); end
1124
+ end
1125
+
1126
+ # pkg:gem/psych#lib/psych/json/ruby_events.rb:4
1127
+ module Psych::JSON::RubyEvents
1128
+ # pkg:gem/psych#lib/psych/json/ruby_events.rb:10
1129
+ def visit_DateTime(o); end
1130
+
1131
+ # pkg:gem/psych#lib/psych/json/ruby_events.rb:14
1132
+ def visit_String(o); end
1133
+
1134
+ # pkg:gem/psych#lib/psych/json/ruby_events.rb:17
1135
+ def visit_Symbol(o); end
1136
+
1137
+ # pkg:gem/psych#lib/psych/json/ruby_events.rb:5
1138
+ def visit_Time(o); end
1139
+ end
1140
+
1141
+ # pkg:gem/psych#lib/psych/json/stream.rb:7
1142
+ class Psych::JSON::Stream < ::Psych::Visitors::JSONTree
1143
+ include ::Psych::Streaming
1144
+ extend ::Psych::Streaming::ClassMethods
1145
+ end
1146
+
1147
+ # pkg:gem/psych#lib/psych/json/stream.rb:12
1148
+ class Psych::JSON::Stream::Emitter < ::Psych::Stream::Emitter
1149
+ include ::Psych::JSON::YAMLEvents
1150
+ end
1151
+
1152
+ # Psych::JSON::TreeBuilder is an event based AST builder. Events are sent
1153
+ # to an instance of Psych::JSON::TreeBuilder and a JSON AST is constructed.
1154
+ #
1155
+ # pkg:gem/psych#lib/psych/json/tree_builder.rb:9
1156
+ class Psych::JSON::TreeBuilder < ::Psych::TreeBuilder
1157
+ include ::Psych::JSON::YAMLEvents
1158
+ end
1159
+
1160
+ # pkg:gem/psych#lib/psych/json/yaml_events.rb:4
1161
+ module Psych::JSON::YAMLEvents
1162
+ # pkg:gem/psych#lib/psych/json/yaml_events.rb:9
1163
+ def end_document(implicit_end = T.unsafe(nil)); end
1164
+
1165
+ # pkg:gem/psych#lib/psych/json/yaml_events.rb:21
1166
+ def scalar(value, anchor, tag, plain, quoted, style); end
1167
+
1168
+ # pkg:gem/psych#lib/psych/json/yaml_events.rb:5
1169
+ def start_document(version, tag_directives, implicit); end
1170
+
1171
+ # pkg:gem/psych#lib/psych/json/yaml_events.rb:13
1172
+ def start_mapping(anchor, tag, implicit, style); end
1173
+
1174
+ # pkg:gem/psych#lib/psych/json/yaml_events.rb:17
1175
+ def start_sequence(anchor, tag, implicit, style); end
1176
+ end
1177
+
1178
+ # This class represents a {YAML Alias}[http://yaml.org/spec/1.1/#alias].
1179
+ # It points to an +anchor+.
1180
+ #
1181
+ # A Psych::Nodes::Alias is a terminal node and may have no children.
1182
+ #
1183
+ # pkg:gem/psych#lib/psych/nodes/alias.rb:9
1184
+ class Psych::Nodes::Alias < ::Psych::Nodes::Node
1185
+ # Create a new Alias that points to an +anchor+
1186
+ #
1187
+ # pkg:gem/psych#lib/psych/nodes/alias.rb:14
1188
+ def initialize(anchor); end
1189
+
1190
+ # pkg:gem/psych#lib/psych/nodes/alias.rb:18
1191
+ def alias?; end
1192
+
1193
+ # The anchor this alias links to
1194
+ #
1195
+ # pkg:gem/psych#lib/psych/nodes/alias.rb:11
1196
+ def anchor; end
1197
+
1198
+ # The anchor this alias links to
1199
+ #
1200
+ # pkg:gem/psych#lib/psych/nodes/alias.rb:11
1201
+ def anchor=(_arg0); end
1202
+ end
1203
+
1204
+ # This represents a YAML Document. This node must be a child of
1205
+ # Psych::Nodes::Stream. A Psych::Nodes::Document must have one child,
1206
+ # and that child may be one of the following:
1207
+ #
1208
+ # * Psych::Nodes::Sequence
1209
+ # * Psych::Nodes::Mapping
1210
+ # * Psych::Nodes::Scalar
1211
+ #
1212
+ # pkg:gem/psych#lib/psych/nodes/document.rb:12
1213
+ class Psych::Nodes::Document < ::Psych::Nodes::Node
1214
+ # Create a new Psych::Nodes::Document object.
1215
+ #
1216
+ # +version+ is a list indicating the YAML version.
1217
+ # +tags_directives+ is a list of tag directive declarations
1218
+ # +implicit+ is a flag indicating whether the document will be implicitly
1219
+ # started.
1220
+ #
1221
+ # == Example:
1222
+ # This creates a YAML document object that represents a YAML 1.1 document
1223
+ # with one tag directive, and has an implicit start:
1224
+ #
1225
+ # Psych::Nodes::Document.new(
1226
+ # [1,1],
1227
+ # [["!", "tag:tenderlovemaking.com,2009:"]],
1228
+ # true
1229
+ # )
1230
+ #
1231
+ # == See Also
1232
+ # See also Psych::Handler#start_document
1233
+ #
1234
+ # pkg:gem/psych#lib/psych/nodes/document.rb:45
1235
+ def initialize(version = T.unsafe(nil), tag_directives = T.unsafe(nil), implicit = T.unsafe(nil)); end
1236
+
1237
+ # pkg:gem/psych#lib/psych/nodes/document.rb:60
1238
+ def document?; end
1239
+
1240
+ # Was this document implicitly created?
1241
+ #
1242
+ # pkg:gem/psych#lib/psych/nodes/document.rb:20
1243
+ def implicit; end
1244
+
1245
+ # Was this document implicitly created?
1246
+ #
1247
+ # pkg:gem/psych#lib/psych/nodes/document.rb:20
1248
+ def implicit=(_arg0); end
1249
+
1250
+ # Is the end of the document implicit?
1251
+ #
1252
+ # pkg:gem/psych#lib/psych/nodes/document.rb:23
1253
+ def implicit_end; end
1254
+
1255
+ # Is the end of the document implicit?
1256
+ #
1257
+ # pkg:gem/psych#lib/psych/nodes/document.rb:23
1258
+ def implicit_end=(_arg0); end
1259
+
1260
+ # Returns the root node. A Document may only have one root node:
1261
+ # http://yaml.org/spec/1.1/#id898031
1262
+ #
1263
+ # pkg:gem/psych#lib/psych/nodes/document.rb:56
1264
+ def root; end
1265
+
1266
+ # A list of tag directives for this document
1267
+ #
1268
+ # pkg:gem/psych#lib/psych/nodes/document.rb:17
1269
+ def tag_directives; end
1270
+
1271
+ # A list of tag directives for this document
1272
+ #
1273
+ # pkg:gem/psych#lib/psych/nodes/document.rb:17
1274
+ def tag_directives=(_arg0); end
1275
+
1276
+ # The version of the YAML document
1277
+ #
1278
+ # pkg:gem/psych#lib/psych/nodes/document.rb:14
1279
+ def version; end
1280
+
1281
+ # The version of the YAML document
1282
+ #
1283
+ # pkg:gem/psych#lib/psych/nodes/document.rb:14
1284
+ def version=(_arg0); end
1285
+ end
1286
+
1287
+ # This class represents a {YAML Mapping}[http://yaml.org/spec/1.1/#mapping].
1288
+ #
1289
+ # A Psych::Nodes::Mapping node may have 0 or more children, but must have
1290
+ # an even number of children. Here are the valid children a
1291
+ # Psych::Nodes::Mapping node may have:
1292
+ #
1293
+ # * Psych::Nodes::Sequence
1294
+ # * Psych::Nodes::Mapping
1295
+ # * Psych::Nodes::Scalar
1296
+ # * Psych::Nodes::Alias
1297
+ #
1298
+ # pkg:gem/psych#lib/psych/nodes/mapping.rb:15
1299
+ class Psych::Nodes::Mapping < ::Psych::Nodes::Node
1300
+ # Create a new Psych::Nodes::Mapping object.
1301
+ #
1302
+ # +anchor+ is the anchor associated with the map or +nil+.
1303
+ # +tag+ is the tag associated with the map or +nil+.
1304
+ # +implicit+ is a boolean indicating whether or not the map was implicitly
1305
+ # started.
1306
+ # +style+ is an integer indicating the mapping style.
1307
+ #
1308
+ # == See Also
1309
+ # See also Psych::Handler#start_mapping
1310
+ #
1311
+ # pkg:gem/psych#lib/psych/nodes/mapping.rb:48
1312
+ def initialize(anchor = T.unsafe(nil), tag = T.unsafe(nil), implicit = T.unsafe(nil), style = T.unsafe(nil)); end
1313
+
1314
+ # The optional anchor for this mapping
1315
+ #
1316
+ # pkg:gem/psych#lib/psych/nodes/mapping.rb:26
1317
+ def anchor; end
1318
+
1319
+ # The optional anchor for this mapping
1320
+ #
1321
+ # pkg:gem/psych#lib/psych/nodes/mapping.rb:26
1322
+ def anchor=(_arg0); end
1323
+
1324
+ # Is this an implicit mapping?
1325
+ #
1326
+ # pkg:gem/psych#lib/psych/nodes/mapping.rb:32
1327
+ def implicit; end
1328
+
1329
+ # Is this an implicit mapping?
1330
+ #
1331
+ # pkg:gem/psych#lib/psych/nodes/mapping.rb:32
1332
+ def implicit=(_arg0); end
1333
+
1334
+ # pkg:gem/psych#lib/psych/nodes/mapping.rb:56
1335
+ def mapping?; end
1336
+
1337
+ # The style of this mapping
1338
+ #
1339
+ # pkg:gem/psych#lib/psych/nodes/mapping.rb:35
1340
+ def style; end
1341
+
1342
+ # The style of this mapping
1343
+ #
1344
+ # pkg:gem/psych#lib/psych/nodes/mapping.rb:35
1345
+ def style=(_arg0); end
1346
+
1347
+ # The optional tag for this mapping
1348
+ #
1349
+ # pkg:gem/psych#lib/psych/nodes/mapping.rb:29
1350
+ def tag; end
1351
+
1352
+ # The optional tag for this mapping
1353
+ #
1354
+ # pkg:gem/psych#lib/psych/nodes/mapping.rb:29
1355
+ def tag=(_arg0); end
1356
+ end
1357
+
1358
+ # The base class for any Node in a YAML parse tree. This class should
1359
+ # never be instantiated.
1360
+ #
1361
+ # pkg:gem/psych#lib/psych/nodes/node.rb:11
1362
+ class Psych::Nodes::Node
1363
+ include ::Enumerable
1364
+
1365
+ # Create a new Psych::Nodes::Node
1366
+ #
1367
+ # pkg:gem/psych#lib/psych/nodes/node.rb:33
1368
+ def initialize; end
1369
+
1370
+ # pkg:gem/psych#lib/psych/nodes/node.rb:67
1371
+ def alias?; end
1372
+
1373
+ # The children of this node
1374
+ #
1375
+ # pkg:gem/psych#lib/psych/nodes/node.rb:15
1376
+ def children; end
1377
+
1378
+ # pkg:gem/psych#lib/psych/nodes/node.rb:68
1379
+ def document?; end
1380
+
1381
+ # Iterate over each node in the tree. Yields each node to +block+ depth
1382
+ # first.
1383
+ #
1384
+ # pkg:gem/psych#lib/psych/nodes/node.rb:40
1385
+ def each(&block); end
1386
+
1387
+ # The column number where this node ends
1388
+ #
1389
+ # pkg:gem/psych#lib/psych/nodes/node.rb:30
1390
+ def end_column; end
1391
+
1392
+ # The column number where this node ends
1393
+ #
1394
+ # pkg:gem/psych#lib/psych/nodes/node.rb:30
1395
+ def end_column=(_arg0); end
1396
+
1397
+ # The line number where this node ends
1398
+ #
1399
+ # pkg:gem/psych#lib/psych/nodes/node.rb:27
1400
+ def end_line; end
1401
+
1402
+ # The line number where this node ends
1403
+ #
1404
+ # pkg:gem/psych#lib/psych/nodes/node.rb:27
1405
+ def end_line=(_arg0); end
1406
+
1407
+ # pkg:gem/psych#lib/psych/nodes/node.rb:69
1408
+ def mapping?; end
1409
+
1410
+ # pkg:gem/psych#lib/psych/nodes/node.rb:70
1411
+ def scalar?; end
1412
+
1413
+ # pkg:gem/psych#lib/psych/nodes/node.rb:71
1414
+ def sequence?; end
1415
+
1416
+ # The column number where this node start
1417
+ #
1418
+ # pkg:gem/psych#lib/psych/nodes/node.rb:24
1419
+ def start_column; end
1420
+
1421
+ # The column number where this node start
1422
+ #
1423
+ # pkg:gem/psych#lib/psych/nodes/node.rb:24
1424
+ def start_column=(_arg0); end
1425
+
1426
+ # The line number where this node start
1427
+ #
1428
+ # pkg:gem/psych#lib/psych/nodes/node.rb:21
1429
+ def start_line; end
1430
+
1431
+ # The line number where this node start
1432
+ #
1433
+ # pkg:gem/psych#lib/psych/nodes/node.rb:21
1434
+ def start_line=(_arg0); end
1435
+
1436
+ # pkg:gem/psych#lib/psych/nodes/node.rb:72
1437
+ def stream?; end
1438
+
1439
+ # An associated tag
1440
+ #
1441
+ # pkg:gem/psych#lib/psych/nodes/node.rb:18
1442
+ def tag; end
1443
+
1444
+ # Convert this node to Ruby.
1445
+ #
1446
+ # See also Psych::Visitors::ToRuby
1447
+ #
1448
+ # pkg:gem/psych#lib/psych/nodes/node.rb:49
1449
+ def to_ruby(symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end
1450
+
1451
+ # pkg:gem/psych#lib/psych/nodes/node.rb:65
1452
+ def to_yaml(io = T.unsafe(nil), options = T.unsafe(nil)); end
1453
+
1454
+ # pkg:gem/psych#lib/psych/nodes/node.rb:52
1455
+ def transform(symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end
1456
+
1457
+ # Convert this node to YAML.
1458
+ #
1459
+ # See also Psych::Visitors::Emitter
1460
+ #
1461
+ # pkg:gem/psych#lib/psych/nodes/node.rb:58
1462
+ def yaml(io = T.unsafe(nil), options = T.unsafe(nil)); end
1463
+ end
1464
+
1465
+ # This class represents a {YAML Scalar}[http://yaml.org/spec/1.1/#id858081].
1466
+ #
1467
+ # This node type is a terminal node and should not have any children.
1468
+ #
1469
+ # pkg:gem/psych#lib/psych/nodes/scalar.rb:8
1470
+ class Psych::Nodes::Scalar < ::Psych::Nodes::Node
1471
+ # Create a new Psych::Nodes::Scalar object.
1472
+ #
1473
+ # +value+ is the string value of the scalar
1474
+ # +anchor+ is an associated anchor or nil
1475
+ # +tag+ is an associated tag or nil
1476
+ # +plain+ is a boolean value
1477
+ # +quoted+ is a boolean value
1478
+ # +style+ is an integer indicating the string style
1479
+ #
1480
+ # == See Also
1481
+ #
1482
+ # See also Psych::Handler#scalar
1483
+ #
1484
+ # pkg:gem/psych#lib/psych/nodes/scalar.rb:58
1485
+ def initialize(value, anchor = T.unsafe(nil), tag = T.unsafe(nil), plain = T.unsafe(nil), quoted = T.unsafe(nil), style = T.unsafe(nil)); end
1486
+
1487
+ # The anchor value (if there is one)
1488
+ #
1489
+ # pkg:gem/psych#lib/psych/nodes/scalar.rb:31
1490
+ def anchor; end
1491
+
1492
+ # The anchor value (if there is one)
1493
+ #
1494
+ # pkg:gem/psych#lib/psych/nodes/scalar.rb:31
1495
+ def anchor=(_arg0); end
1496
+
1497
+ # Is this a plain scalar?
1498
+ #
1499
+ # pkg:gem/psych#lib/psych/nodes/scalar.rb:37
1500
+ def plain; end
1501
+
1502
+ # Is this a plain scalar?
1503
+ #
1504
+ # pkg:gem/psych#lib/psych/nodes/scalar.rb:37
1505
+ def plain=(_arg0); end
1506
+
1507
+ # Is this scalar quoted?
1508
+ #
1509
+ # pkg:gem/psych#lib/psych/nodes/scalar.rb:40
1510
+ def quoted; end
1511
+
1512
+ # Is this scalar quoted?
1513
+ #
1514
+ # pkg:gem/psych#lib/psych/nodes/scalar.rb:40
1515
+ def quoted=(_arg0); end
1516
+
1517
+ # pkg:gem/psych#lib/psych/nodes/scalar.rb:67
1518
+ def scalar?; end
1519
+
1520
+ # The style of this scalar
1521
+ #
1522
+ # pkg:gem/psych#lib/psych/nodes/scalar.rb:43
1523
+ def style; end
1524
+
1525
+ # The style of this scalar
1526
+ #
1527
+ # pkg:gem/psych#lib/psych/nodes/scalar.rb:43
1528
+ def style=(_arg0); end
1529
+
1530
+ # The tag value (if there is one)
1531
+ #
1532
+ # pkg:gem/psych#lib/psych/nodes/scalar.rb:34
1533
+ def tag; end
1534
+
1535
+ # The tag value (if there is one)
1536
+ #
1537
+ # pkg:gem/psych#lib/psych/nodes/scalar.rb:34
1538
+ def tag=(_arg0); end
1539
+
1540
+ # The scalar value
1541
+ #
1542
+ # pkg:gem/psych#lib/psych/nodes/scalar.rb:28
1543
+ def value; end
1544
+
1545
+ # The scalar value
1546
+ #
1547
+ # pkg:gem/psych#lib/psych/nodes/scalar.rb:28
1548
+ def value=(_arg0); end
1549
+ end
1550
+
1551
+ # This class represents a
1552
+ # {YAML sequence}[http://yaml.org/spec/1.1/#sequence/syntax].
1553
+ #
1554
+ # A YAML sequence is basically a list, and looks like this:
1555
+ #
1556
+ # %YAML 1.1
1557
+ # ---
1558
+ # - I am
1559
+ # - a Sequence
1560
+ #
1561
+ # A YAML sequence may have an anchor like this:
1562
+ #
1563
+ # %YAML 1.1
1564
+ # ---
1565
+ # &A [
1566
+ # "This sequence",
1567
+ # "has an anchor"
1568
+ # ]
1569
+ #
1570
+ # A YAML sequence may also have a tag like this:
1571
+ #
1572
+ # %YAML 1.1
1573
+ # ---
1574
+ # !!seq [
1575
+ # "This sequence",
1576
+ # "has a tag"
1577
+ # ]
1578
+ #
1579
+ # This class represents a sequence in a YAML document. A
1580
+ # Psych::Nodes::Sequence node may have 0 or more children. Valid children
1581
+ # for this node are:
1582
+ #
1583
+ # * Psych::Nodes::Sequence
1584
+ # * Psych::Nodes::Mapping
1585
+ # * Psych::Nodes::Scalar
1586
+ # * Psych::Nodes::Alias
1587
+ #
1588
+ # pkg:gem/psych#lib/psych/nodes/sequence.rb:41
1589
+ class Psych::Nodes::Sequence < ::Psych::Nodes::Node
1590
+ # Create a new object representing a YAML sequence.
1591
+ #
1592
+ # +anchor+ is the anchor associated with the sequence or nil.
1593
+ # +tag+ is the tag associated with the sequence or nil.
1594
+ # +implicit+ a boolean indicating whether or not the sequence was
1595
+ # implicitly started.
1596
+ # +style+ is an integer indicating the list style.
1597
+ #
1598
+ # See Psych::Handler#start_sequence
1599
+ #
1600
+ # pkg:gem/psych#lib/psych/nodes/sequence.rb:73
1601
+ def initialize(anchor = T.unsafe(nil), tag = T.unsafe(nil), implicit = T.unsafe(nil), style = T.unsafe(nil)); end
1602
+
1603
+ # The anchor for this sequence (if any)
1604
+ #
1605
+ # pkg:gem/psych#lib/psych/nodes/sequence.rb:52
1606
+ def anchor; end
1607
+
1608
+ # The anchor for this sequence (if any)
1609
+ #
1610
+ # pkg:gem/psych#lib/psych/nodes/sequence.rb:52
1611
+ def anchor=(_arg0); end
1612
+
1613
+ # Is this sequence started implicitly?
1614
+ #
1615
+ # pkg:gem/psych#lib/psych/nodes/sequence.rb:58
1616
+ def implicit; end
1617
+
1618
+ # Is this sequence started implicitly?
1619
+ #
1620
+ # pkg:gem/psych#lib/psych/nodes/sequence.rb:58
1621
+ def implicit=(_arg0); end
1622
+
1623
+ # pkg:gem/psych#lib/psych/nodes/sequence.rb:81
1624
+ def sequence?; end
1625
+
1626
+ # The sequence style used
1627
+ #
1628
+ # pkg:gem/psych#lib/psych/nodes/sequence.rb:61
1629
+ def style; end
1630
+
1631
+ # The sequence style used
1632
+ #
1633
+ # pkg:gem/psych#lib/psych/nodes/sequence.rb:61
1634
+ def style=(_arg0); end
1635
+
1636
+ # The tag name for this sequence (if any)
1637
+ #
1638
+ # pkg:gem/psych#lib/psych/nodes/sequence.rb:55
1639
+ def tag; end
1640
+
1641
+ # The tag name for this sequence (if any)
1642
+ #
1643
+ # pkg:gem/psych#lib/psych/nodes/sequence.rb:55
1644
+ def tag=(_arg0); end
1645
+ end
1646
+
1647
+ # Represents a YAML stream. This is the root node for any YAML parse
1648
+ # tree. This node must have one or more child nodes. The only valid
1649
+ # child node for a Psych::Nodes::Stream node is Psych::Nodes::Document.
1650
+ #
1651
+ # pkg:gem/psych#lib/psych/nodes/stream.rb:8
1652
+ class Psych::Nodes::Stream < ::Psych::Nodes::Node
1653
+ # Create a new Psych::Nodes::Stream node with an +encoding+ that
1654
+ # defaults to Psych::Nodes::Stream::UTF8.
1655
+ #
1656
+ # See also Psych::Handler#start_stream
1657
+ #
1658
+ # pkg:gem/psych#lib/psych/nodes/stream.rb:32
1659
+ def initialize(encoding = T.unsafe(nil)); end
1660
+
1661
+ # The encoding used for this stream
1662
+ #
1663
+ # pkg:gem/psych#lib/psych/nodes/stream.rb:25
1664
+ def encoding; end
1665
+
1666
+ # The encoding used for this stream
1667
+ #
1668
+ # pkg:gem/psych#lib/psych/nodes/stream.rb:25
1669
+ def encoding=(_arg0); end
1670
+
1671
+ # pkg:gem/psych#lib/psych/nodes/stream.rb:37
1672
+ def stream?; end
1673
+ end
1674
+
1675
+ # YAML event parser class. This class parses a YAML document and calls
1676
+ # events on the handler that is passed to the constructor. The events can
1677
+ # be used for things such as constructing a YAML AST or deserializing YAML
1678
+ # documents. It can even be fed back to Psych::Emitter to emit the same
1679
+ # document that was parsed.
1680
+ #
1681
+ # See Psych::Handler for documentation on the events that Psych::Parser emits.
1682
+ #
1683
+ # Here is an example that prints out ever scalar found in a YAML document:
1684
+ #
1685
+ # # Handler for detecting scalar values
1686
+ # class ScalarHandler < Psych::Handler
1687
+ # def scalar value, anchor, tag, plain, quoted, style
1688
+ # puts value
1689
+ # end
1690
+ # end
1691
+ #
1692
+ # parser = Psych::Parser.new(ScalarHandler.new)
1693
+ # parser.parse(yaml_document)
1694
+ #
1695
+ # Here is an example that feeds the parser back in to Psych::Emitter. The
1696
+ # YAML document is read from STDIN and written back out to STDERR:
1697
+ #
1698
+ # parser = Psych::Parser.new(Psych::Emitter.new($stderr))
1699
+ # parser.parse($stdin)
1700
+ #
1701
+ # Psych uses Psych::Parser in combination with Psych::TreeBuilder to
1702
+ # construct an AST of the parsed YAML document.
1703
+ #
1704
+ # pkg:gem/psych#lib/psych.rb:13
1705
+ class Psych::Parser
1706
+ # Creates a new Psych::Parser instance with +handler+. YAML events will
1707
+ # be called on +handler+. See Psych::Parser for more details.
1708
+ #
1709
+ # pkg:gem/psych#lib/psych/parser.rb:47
1710
+ def initialize(handler = T.unsafe(nil)); end
1711
+
1712
+ # Set the encoding for this parser to +encoding+
1713
+ #
1714
+ # pkg:gem/psych#lib/psych/parser.rb:41
1715
+ def external_encoding=(_arg0); end
1716
+
1717
+ # The handler on which events will be called
1718
+ #
1719
+ # pkg:gem/psych#lib/psych/parser.rb:38
1720
+ def handler; end
1721
+
1722
+ # The handler on which events will be called
1723
+ #
1724
+ # pkg:gem/psych#lib/psych/parser.rb:38
1725
+ def handler=(_arg0); end
1726
+
1727
+ # pkg:gem/psych#lib/psych.rb:13
1728
+ def mark; end
1729
+
1730
+ # call-seq:
1731
+ # parser.parse(yaml)
1732
+ #
1733
+ # Parse the YAML document contained in +yaml+. Events will be called on
1734
+ # the handler set on the parser instance.
1735
+ #
1736
+ # See Psych::Parser and Psych::Parser#handler
1737
+ #
1738
+ # pkg:gem/psych#lib/psych/parser.rb:61
1739
+ def parse(yaml, path = T.unsafe(nil)); end
1740
+
1741
+ private
1742
+
1743
+ # pkg:gem/psych#lib/psych.rb:13
1744
+ def _native_parse(_arg0, _arg1, _arg2); end
1745
+ end
1746
+
1747
+ # Scan scalars for built in types
1748
+ #
1749
+ # pkg:gem/psych#lib/psych/scalar_scanner.rb:6
1750
+ class Psych::ScalarScanner
1751
+ # Create a new scanner
1752
+ #
1753
+ # pkg:gem/psych#lib/psych/scalar_scanner.rb:30
1754
+ def initialize(class_loader, strict_integer: T.unsafe(nil)); end
1755
+
1756
+ # pkg:gem/psych#lib/psych/scalar_scanner.rb:27
1757
+ def class_loader; end
1758
+
1759
+ # Parse and return an int from +string+
1760
+ #
1761
+ # pkg:gem/psych#lib/psych/scalar_scanner.rb:109
1762
+ def parse_int(string); end
1763
+
1764
+ # Parse and return a Time from +string+
1765
+ #
1766
+ # pkg:gem/psych#lib/psych/scalar_scanner.rb:115
1767
+ def parse_time(string); end
1768
+
1769
+ # Tokenize +string+ returning the Ruby object
1770
+ #
1771
+ # pkg:gem/psych#lib/psych/scalar_scanner.rb:37
1772
+ def tokenize(string); end
1773
+ end
1774
+
1775
+ # Same as above, but allows commas.
1776
+ # Not to YML spec, but kept for backwards compatibility
1777
+ #
1778
+ # pkg:gem/psych#lib/psych/scalar_scanner.rb:22
1779
+ Psych::ScalarScanner::INTEGER_LEGACY = T.let(T.unsafe(nil), Regexp)
1780
+
1781
+ # Taken from http://yaml.org/type/int.html
1782
+ #
1783
+ # pkg:gem/psych#lib/psych/scalar_scanner.rb:15
1784
+ Psych::ScalarScanner::INTEGER_STRICT = T.let(T.unsafe(nil), Regexp)
1785
+
1786
+ # Psych::Stream is a streaming YAML emitter. It will not buffer your YAML,
1787
+ # but send it straight to an IO.
1788
+ #
1789
+ # Here is an example use:
1790
+ #
1791
+ # stream = Psych::Stream.new($stdout)
1792
+ # stream.start
1793
+ # stream.push({:foo => 'bar'})
1794
+ # stream.finish
1795
+ #
1796
+ # YAML will be immediately emitted to $stdout with no buffering.
1797
+ #
1798
+ # Psych::Stream#start will take a block and ensure that Psych::Stream#finish
1799
+ # is called, so you can do this form:
1800
+ #
1801
+ # stream = Psych::Stream.new($stdout)
1802
+ # stream.start do |em|
1803
+ # em.push(:foo => 'bar')
1804
+ # end
1805
+ #
1806
+ # pkg:gem/psych#lib/psych/stream.rb:24
1807
+ class Psych::Stream < ::Psych::Visitors::YAMLTree
1808
+ include ::Psych::Streaming
1809
+ extend ::Psych::Streaming::ClassMethods
1810
+ end
1811
+
1812
+ # pkg:gem/psych#lib/psych/stream.rb:25
1813
+ class Psych::Stream::Emitter < ::Psych::Emitter
1814
+ # pkg:gem/psych#lib/psych/stream.rb:26
1815
+ def end_document(implicit_end = T.unsafe(nil)); end
1816
+
1817
+ # pkg:gem/psych#lib/psych/stream.rb:30
1818
+ def streaming?; end
1819
+ end
1820
+
1821
+ # pkg:gem/psych#lib/psych/streaming.rb:3
1822
+ module Psych::Streaming
1823
+ # Start streaming using +encoding+
1824
+ #
1825
+ # pkg:gem/psych#lib/psych/streaming.rb:18
1826
+ def start(encoding = T.unsafe(nil)); end
1827
+
1828
+ private
1829
+
1830
+ # pkg:gem/psych#lib/psych/streaming.rb:25
1831
+ def register(target, obj); end
1832
+ end
1833
+
1834
+ # pkg:gem/psych#lib/psych/streaming.rb:4
1835
+ module Psych::Streaming::ClassMethods
1836
+ # Create a new streaming emitter. Emitter will print to +io+. See
1837
+ # Psych::Stream for an example.
1838
+ #
1839
+ # pkg:gem/psych#lib/psych/streaming.rb:8
1840
+ def new(io); end
1841
+ end
1842
+
1843
+ # pkg:gem/psych#lib/psych/syntax_error.rb:5
1844
+ class Psych::SyntaxError < ::Psych::Exception
1845
+ # pkg:gem/psych#lib/psych/syntax_error.rb:8
1846
+ def initialize(file, line, col, offset, problem, context); end
1847
+
1848
+ # pkg:gem/psych#lib/psych/syntax_error.rb:6
1849
+ def column; end
1850
+
1851
+ # pkg:gem/psych#lib/psych/syntax_error.rb:6
1852
+ def context; end
1853
+
1854
+ # pkg:gem/psych#lib/psych/syntax_error.rb:6
1855
+ def file; end
1856
+
1857
+ # pkg:gem/psych#lib/psych/syntax_error.rb:6
1858
+ def line; end
1859
+
1860
+ # pkg:gem/psych#lib/psych/syntax_error.rb:6
1861
+ def offset; end
1862
+
1863
+ # pkg:gem/psych#lib/psych/syntax_error.rb:6
1864
+ def problem; end
1865
+ end
1866
+
1867
+ # This class works in conjunction with Psych::Parser to build an in-memory
1868
+ # parse tree that represents a YAML document.
1869
+ #
1870
+ # == Example
1871
+ #
1872
+ # parser = Psych::Parser.new Psych::TreeBuilder.new
1873
+ # parser.parse('--- foo')
1874
+ # tree = parser.handler.root
1875
+ #
1876
+ # See Psych::Handler for documentation on the event methods used in this
1877
+ # class.
1878
+ #
1879
+ # pkg:gem/psych#lib/psych/tree_builder.rb:17
1880
+ class Psych::TreeBuilder < ::Psych::Handler
1881
+ # Create a new TreeBuilder instance
1882
+ #
1883
+ # pkg:gem/psych#lib/psych/tree_builder.rb:22
1884
+ def initialize; end
1885
+
1886
+ # pkg:gem/psych#lib/psych/tree_builder.rb:103
1887
+ def alias(anchor); end
1888
+
1889
+ # Handles end_document events with +version+, +tag_directives+,
1890
+ # and +implicit+ styling.
1891
+ #
1892
+ # See Psych::Handler#start_document
1893
+ #
1894
+ # pkg:gem/psych#lib/psych/tree_builder.rb:77
1895
+ def end_document(implicit_end = T.unsafe(nil)); end
1896
+
1897
+ # pkg:gem/psych#lib/psych/tree_builder.rb:44
1898
+ def end_mapping; end
1899
+
1900
+ # pkg:gem/psych#lib/psych/tree_builder.rb:44
1901
+ def end_sequence; end
1902
+
1903
+ # pkg:gem/psych#lib/psych/tree_builder.rb:90
1904
+ def end_stream; end
1905
+
1906
+ # pkg:gem/psych#lib/psych/tree_builder.rb:33
1907
+ def event_location(start_line, start_column, end_line, end_column); end
1908
+
1909
+ # Returns the root node for the built tree
1910
+ #
1911
+ # pkg:gem/psych#lib/psych/tree_builder.rb:19
1912
+ def root; end
1913
+
1914
+ # pkg:gem/psych#lib/psych/tree_builder.rb:96
1915
+ def scalar(value, anchor, tag, plain, quoted, style); end
1916
+
1917
+ # Handles start_document events with +version+, +tag_directives+,
1918
+ # and +implicit+ styling.
1919
+ #
1920
+ # See Psych::Handler#start_document
1921
+ #
1922
+ # pkg:gem/psych#lib/psych/tree_builder.rb:65
1923
+ def start_document(version, tag_directives, implicit); end
1924
+
1925
+ # pkg:gem/psych#lib/psych/tree_builder.rb:44
1926
+ def start_mapping(anchor, tag, implicit, style); end
1927
+
1928
+ # pkg:gem/psych#lib/psych/tree_builder.rb:44
1929
+ def start_sequence(anchor, tag, implicit, style); end
1930
+
1931
+ # pkg:gem/psych#lib/psych/tree_builder.rb:84
1932
+ def start_stream(encoding); end
1933
+
1934
+ private
1935
+
1936
+ # pkg:gem/psych#lib/psych/tree_builder.rb:116
1937
+ def pop; end
1938
+
1939
+ # pkg:gem/psych#lib/psych/tree_builder.rb:111
1940
+ def push(value); end
1941
+
1942
+ # pkg:gem/psych#lib/psych/tree_builder.rb:132
1943
+ def set_end_location(node); end
1944
+
1945
+ # pkg:gem/psych#lib/psych/tree_builder.rb:122
1946
+ def set_location(node); end
1947
+
1948
+ # pkg:gem/psych#lib/psych/tree_builder.rb:127
1949
+ def set_start_location(node); end
1950
+ end
1951
+
1952
+ # The version of Psych you are using
1953
+ #
1954
+ # pkg:gem/psych#lib/psych/versions.rb:5
1955
+ Psych::VERSION = T.let(T.unsafe(nil), String)
1956
+
1957
+ # pkg:gem/psych#lib/psych/visitors/depth_first.rb:4
1958
+ class Psych::Visitors::DepthFirst < ::Psych::Visitors::Visitor
1959
+ # pkg:gem/psych#lib/psych/visitors/depth_first.rb:5
1960
+ def initialize(block); end
1961
+
1962
+ private
1963
+
1964
+ # pkg:gem/psych#lib/psych/visitors/depth_first.rb:11
1965
+ def nary(o); end
1966
+
1967
+ # pkg:gem/psych#lib/psych/visitors/depth_first.rb:20
1968
+ def terminal(o); end
1969
+
1970
+ # pkg:gem/psych#lib/psych/visitors/depth_first.rb:24
1971
+ def visit_Psych_Nodes_Alias(o); end
1972
+
1973
+ # pkg:gem/psych#lib/psych/visitors/depth_first.rb:16
1974
+ def visit_Psych_Nodes_Document(o); end
1975
+
1976
+ # pkg:gem/psych#lib/psych/visitors/depth_first.rb:18
1977
+ def visit_Psych_Nodes_Mapping(o); end
1978
+
1979
+ # pkg:gem/psych#lib/psych/visitors/depth_first.rb:23
1980
+ def visit_Psych_Nodes_Scalar(o); end
1981
+
1982
+ # pkg:gem/psych#lib/psych/visitors/depth_first.rb:17
1983
+ def visit_Psych_Nodes_Sequence(o); end
1984
+
1985
+ # pkg:gem/psych#lib/psych/visitors/depth_first.rb:15
1986
+ def visit_Psych_Nodes_Stream(o); end
1987
+ end
1988
+
1989
+ # pkg:gem/psych#lib/psych/visitors/emitter.rb:4
1990
+ class Psych::Visitors::Emitter < ::Psych::Visitors::Visitor
1991
+ # pkg:gem/psych#lib/psych/visitors/emitter.rb:5
1992
+ def initialize(io, options = T.unsafe(nil)); end
1993
+
1994
+ # pkg:gem/psych#lib/psych/visitors/emitter.rb:47
1995
+ def visit_Psych_Nodes_Alias(o); end
1996
+
1997
+ # pkg:gem/psych#lib/psych/visitors/emitter.rb:25
1998
+ def visit_Psych_Nodes_Document(o); end
1999
+
2000
+ # pkg:gem/psych#lib/psych/visitors/emitter.rb:41
2001
+ def visit_Psych_Nodes_Mapping(o); end
2002
+
2003
+ # pkg:gem/psych#lib/psych/visitors/emitter.rb:31
2004
+ def visit_Psych_Nodes_Scalar(o); end
2005
+
2006
+ # pkg:gem/psych#lib/psych/visitors/emitter.rb:35
2007
+ def visit_Psych_Nodes_Sequence(o); end
2008
+
2009
+ # pkg:gem/psych#lib/psych/visitors/emitter.rb:19
2010
+ def visit_Psych_Nodes_Stream(o); end
2011
+ end
2012
+
2013
+ # pkg:gem/psych#lib/psych/visitors/json_tree.rb:6
2014
+ class Psych::Visitors::JSONTree < ::Psych::Visitors::YAMLTree
2015
+ include ::Psych::JSON::RubyEvents
2016
+
2017
+ # pkg:gem/psych#lib/psych/visitors/json_tree.rb:16
2018
+ def accept(target); end
2019
+
2020
+ class << self
2021
+ # pkg:gem/psych#lib/psych/visitors/json_tree.rb:9
2022
+ def create(options = T.unsafe(nil)); end
2023
+ end
2024
+ end
2025
+
2026
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:430
2027
+ class Psych::Visitors::NoAliasRuby < ::Psych::Visitors::ToRuby
2028
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:431
2029
+ def visit_Psych_Nodes_Alias(o); end
2030
+ end
2031
+
2032
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:541
2033
+ class Psych::Visitors::RestrictedYAMLTree < ::Psych::Visitors::YAMLTree
2034
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:553
2035
+ def initialize(emitter, ss, options); end
2036
+
2037
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:566
2038
+ def accept(target); end
2039
+
2040
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:578
2041
+ def visit_Symbol(sym); end
2042
+ end
2043
+
2044
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:542
2045
+ Psych::Visitors::RestrictedYAMLTree::DEFAULT_PERMITTED_CLASSES = T.let(T.unsafe(nil), Hash)
2046
+
2047
+ # This class walks a YAML AST, converting each node to Ruby
2048
+ #
2049
+ # pkg:gem/psych#lib/psych.rb:13
2050
+ class Psych::Visitors::ToRuby < ::Psych::Visitors::Visitor
2051
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:23
2052
+ def initialize(ss, class_loader, symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil)); end
2053
+
2054
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:34
2055
+ def accept(target); end
2056
+
2057
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:21
2058
+ def class_loader; end
2059
+
2060
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:327
2061
+ def visit_Psych_Nodes_Alias(o); end
2062
+
2063
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:319
2064
+ def visit_Psych_Nodes_Document(o); end
2065
+
2066
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:165
2067
+ def visit_Psych_Nodes_Mapping(o); end
2068
+
2069
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:129
2070
+ def visit_Psych_Nodes_Scalar(o); end
2071
+
2072
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:133
2073
+ def visit_Psych_Nodes_Sequence(o); end
2074
+
2075
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:323
2076
+ def visit_Psych_Nodes_Stream(o); end
2077
+
2078
+ private
2079
+
2080
+ # pkg:gem/psych#lib/psych.rb:13
2081
+ def build_exception(_arg0, _arg1); end
2082
+
2083
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:395
2084
+ def deduplicate(key); end
2085
+
2086
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:51
2087
+ def deserialize(o); end
2088
+
2089
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:412
2090
+ def init_with(o, h, node); end
2091
+
2092
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:404
2093
+ def merge_key(hash, key, val); end
2094
+
2095
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:333
2096
+ def register(node, object); end
2097
+
2098
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:338
2099
+ def register_empty(object); end
2100
+
2101
+ # Convert +klassname+ to a Class
2102
+ #
2103
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:425
2104
+ def resolve_class(klassname); end
2105
+
2106
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:407
2107
+ def revive(klass, node); end
2108
+
2109
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:344
2110
+ def revive_hash(hash, o, tagged = T.unsafe(nil)); end
2111
+
2112
+ class << self
2113
+ # pkg:gem/psych#lib/psych/visitors/to_ruby.rb:15
2114
+ def create(symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end
2115
+ end
2116
+ end
2117
+
2118
+ # pkg:gem/psych#lib/psych.rb:13
2119
+ class Psych::Visitors::Visitor
2120
+ # pkg:gem/psych#lib/psych/visitors/visitor.rb:5
2121
+ def accept(target); end
2122
+
2123
+ private
2124
+
2125
+ # pkg:gem/psych#lib/psych/visitors/visitor.rb:19
2126
+ def dispatch; end
2127
+
2128
+ # pkg:gem/psych#lib/psych/visitors/visitor.rb:29
2129
+ def visit(target); end
2130
+
2131
+ class << self
2132
+ # @api private
2133
+ #
2134
+ # pkg:gem/psych#lib/psych/visitors/visitor.rb:12
2135
+ def dispatch_cache; end
2136
+ end
2137
+ end
2138
+
2139
+ # YAMLTree builds a YAML ast given a Ruby object. For example:
2140
+ #
2141
+ # builder = Psych::Visitors::YAMLTree.new
2142
+ # builder << { :foo => 'bar' }
2143
+ # builder.tree # => #<Psych::Nodes::Stream .. }
2144
+ #
2145
+ # pkg:gem/psych#lib/psych.rb:13
2146
+ class Psych::Visitors::YAMLTree < ::Psych::Visitors::Visitor
2147
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:56
2148
+ def initialize(emitter, ss, options); end
2149
+
2150
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:121
2151
+ def <<(object); end
2152
+
2153
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:123
2154
+ def accept(target); end
2155
+
2156
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:92
2157
+ def finish; end
2158
+
2159
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:45
2160
+ def finished; end
2161
+
2162
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:46
2163
+ def finished?; end
2164
+
2165
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:103
2166
+ def push(object); end
2167
+
2168
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:86
2169
+ def start(encoding = T.unsafe(nil)); end
2170
+
2171
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:45
2172
+ def started; end
2173
+
2174
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:47
2175
+ def started?; end
2176
+
2177
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:98
2178
+ def tree; end
2179
+
2180
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:351
2181
+ def visit_Array(o); end
2182
+
2183
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:377
2184
+ def visit_BasicObject(o); end
2185
+
2186
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:251
2187
+ def visit_BigDecimal(o); end
2188
+
2189
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:314
2190
+ def visit_Class(o); end
2191
+
2192
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:224
2193
+ def visit_Complex(o); end
2194
+
2195
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:195
2196
+ def visit_Date(o); end
2197
+
2198
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:199
2199
+ def visit_DateTime(o); end
2200
+
2201
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:167
2202
+ def visit_Delegator(o); end
2203
+
2204
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:148
2205
+ def visit_Encoding(o); end
2206
+
2207
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:359
2208
+ def visit_Enumerator(o); end
2209
+
2210
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:183
2211
+ def visit_Exception(o); end
2212
+
2213
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:238
2214
+ def visit_FalseClass(o); end
2215
+
2216
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:240
2217
+ def visit_Float(o); end
2218
+
2219
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:327
2220
+ def visit_Hash(o); end
2221
+
2222
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:234
2223
+ def visit_Integer(o); end
2224
+
2225
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:309
2226
+ def visit_Module(o); end
2227
+
2228
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:187
2229
+ def visit_NameError(o); end
2230
+
2231
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:365
2232
+ def visit_NilClass(o); end
2233
+
2234
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:153
2235
+ def visit_Object(o); end
2236
+
2237
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:140
2238
+ def visit_Psych_Omap(o); end
2239
+
2240
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:340
2241
+ def visit_Psych_Set(o); end
2242
+
2243
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:319
2244
+ def visit_Range(o); end
2245
+
2246
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:211
2247
+ def visit_Rational(o); end
2248
+
2249
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:191
2250
+ def visit_Regexp(o); end
2251
+
2252
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:255
2253
+ def visit_String(o); end
2254
+
2255
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:169
2256
+ def visit_Struct(o); end
2257
+
2258
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:369
2259
+ def visit_Symbol(o); end
2260
+
2261
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:206
2262
+ def visit_Time(o); end
2263
+
2264
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:237
2265
+ def visit_TrueClass(o); end
2266
+
2267
+ private
2268
+
2269
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:391
2270
+ def binary?(string); end
2271
+
2272
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:498
2273
+ def dump_coder(o); end
2274
+
2275
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:467
2276
+ def dump_exception(o, msg); end
2277
+
2278
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:533
2279
+ def dump_ivars(target); end
2280
+
2281
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:464
2282
+ def dump_list(o); end
2283
+
2284
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:511
2285
+ def emit_coder(c, o); end
2286
+
2287
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:485
2288
+ def format_time(time, utc = T.unsafe(nil)); end
2289
+
2290
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:493
2291
+ def register(target, yaml_obj); end
2292
+
2293
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:395
2294
+ def visit_array_subclass(o); end
2295
+
2296
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:426
2297
+ def visit_hash_subclass(o); end
2298
+
2299
+ class << self
2300
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:49
2301
+ def create(options = T.unsafe(nil), emitter = T.unsafe(nil)); end
2302
+ end
2303
+ end
2304
+
2305
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:16
2306
+ class Psych::Visitors::YAMLTree::Registrar
2307
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:17
2308
+ def initialize; end
2309
+
2310
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:36
2311
+ def id_for(target); end
2312
+
2313
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:30
2314
+ def key?(target); end
2315
+
2316
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:40
2317
+ def node_for(target); end
2318
+
2319
+ # pkg:gem/psych#lib/psych/visitors/yaml_tree.rb:24
2320
+ def register(target, node); end
2321
+ end