sorbet-result 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.standard.yml +1 -1
  4. data/CHANGELOG.md +17 -0
  5. data/Gemfile +1 -1
  6. data/Gemfile.lock +85 -68
  7. data/README.md +4 -4
  8. data/lib/typed/no_payload_on_failure_error.rb +8 -3
  9. data/lib/typed/result.rb +33 -3
  10. data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +4 -3
  11. data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
  12. data/sorbet/rbi/gems/cgi@0.5.0.rbi +2961 -0
  13. data/sorbet/rbi/gems/date@3.4.1.rbi +75 -0
  14. data/sorbet/rbi/gems/erb@4.0.4.rbi +910 -0
  15. data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +25 -15
  16. data/sorbet/rbi/gems/{io-console@0.7.2.rbi → io-console@0.8.0.rbi} +1 -0
  17. data/sorbet/rbi/gems/{json@2.7.1.rbi → json@2.12.2.rbi} +736 -238
  18. data/sorbet/rbi/gems/{language_server-protocol@3.17.0.3.rbi → language_server-protocol@3.17.0.5.rbi} +12 -5
  19. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +1 -0
  20. data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
  21. data/sorbet/rbi/gems/{minitest@5.22.2.rbi → minitest@5.25.5.rbi} +326 -308
  22. data/sorbet/rbi/gems/netrc@0.11.0.rbi +1 -0
  23. data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.27.0.rbi} +32 -21
  24. data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.8.0.rbi} +448 -385
  25. data/sorbet/rbi/gems/pp@0.6.2.rbi +368 -0
  26. data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +477 -0
  27. data/sorbet/rbi/gems/prism@1.4.0.rbi +41732 -0
  28. data/sorbet/rbi/gems/{psych@5.1.2.rbi → psych@5.2.6.rbi} +974 -236
  29. data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +38 -33
  30. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +1 -0
  31. data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.3.0.rbi} +62 -58
  32. data/sorbet/rbi/gems/rbi@0.3.6.rbi +6893 -0
  33. data/sorbet/rbi/gems/rbs@3.9.4.rbi +6976 -0
  34. data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.10.0.rbi} +196 -172
  35. data/sorbet/rbi/gems/{reline@0.4.2.rbi → reline@0.6.1.rbi} +1 -0
  36. data/sorbet/rbi/gems/{rubocop-ast@1.30.0.rbi → rubocop-ast@1.45.1.rbi} +1673 -958
  37. data/sorbet/rbi/gems/{rubocop-performance@1.20.2.rbi → rubocop-performance@1.25.0.rbi} +1 -0
  38. data/sorbet/rbi/gems/{rubocop-sorbet@0.7.7.rbi → rubocop-sorbet@0.9.0.rbi} +1 -0
  39. data/sorbet/rbi/gems/{rubocop@1.60.2.rbi → rubocop@1.75.8.rbi} +9990 -5267
  40. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1 -0
  41. data/sorbet/rbi/gems/spoom@1.6.1.rbi +7274 -0
  42. data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +1 -0
  43. data/sorbet/rbi/gems/{standard-performance@1.3.1.rbi → standard-performance@1.8.0.rbi} +1 -0
  44. data/sorbet/rbi/gems/{standard-sorbet@0.0.2.rbi → standard-sorbet@0.0.3.rbi} +1 -0
  45. data/sorbet/rbi/gems/{standard@1.34.0.rbi → standard@1.50.0.rbi} +182 -97
  46. data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.7.rbi} +1 -0
  47. data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.16.11.rbi} +489 -364
  48. data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.2.rbi} +114 -81
  49. data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
  50. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
  51. data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
  52. data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.37.rbi} +430 -270
  53. metadata +46 -55
  54. data/.tool-versions +0 -1
  55. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
  56. data/sorbet/rbi/gems/prism@0.24.0.rbi +0 -31040
  57. data/sorbet/rbi/gems/rbi@0.1.9.rbi +0 -3006
  58. data/sorbet/rbi/gems/rexml@3.2.6.rbi +0 -4781
  59. data/sorbet/rbi/gems/spoom@1.2.4.rbi +0 -3777
  60. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23133
  61. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
@@ -4,6 +4,8 @@
4
4
  # This is an autogenerated file for types exported from the `psych` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem psych`.
6
6
 
7
+
8
+ # source://psych//lib/psych/core_ext.rb#2
7
9
  class Object < ::BasicObject
8
10
  include ::Kernel
9
11
  include ::PP::ObjectMixin
@@ -13,11 +15,11 @@ class Object < ::BasicObject
13
15
  # Convert an object to YAML. See Psych.dump for more information on the
14
16
  # available +options+.
15
17
  #
16
- # source://psych//psych/core_ext.rb#12
18
+ # source://psych//lib/psych/core_ext.rb#12
17
19
  def to_yaml(options = T.unsafe(nil)); end
18
20
 
19
21
  class << self
20
- # source://psych//psych/core_ext.rb#3
22
+ # source://psych//lib/psych/core_ext.rb#3
21
23
  def yaml_tag(url); end
22
24
  end
23
25
  end
@@ -77,7 +79,7 @@ end
77
79
  # Psych.safe_load_file("data.yml", permitted_classes: [Date])
78
80
  # Psych.load_file("trusted_database.yml")
79
81
  #
80
- # ==== Exception handling
82
+ # ==== \Exception handling
81
83
  #
82
84
  # begin
83
85
  # # The second argument changes only the exception contents
@@ -141,7 +143,7 @@ end
141
143
  # # Returns Psych::Nodes::Document
142
144
  # Psych.parse_file('database.yml')
143
145
  #
144
- # ==== Exception handling
146
+ # ==== \Exception handling
145
147
  #
146
148
  # begin
147
149
  # # The second argument changes only the exception contents
@@ -223,26 +225,28 @@ end
223
225
  # # You can instantiate an Emitter manually
224
226
  # Psych::Visitors::ToRuby.new.accept(parser.handler.root.first)
225
227
  # # => "a"
228
+ #
229
+ # source://psych//lib/psych/versions.rb#3
226
230
  module Psych
227
231
  class << self
228
- # source://psych//psych.rb#682
232
+ # source://psych//lib/psych.rb#728
229
233
  def add_builtin_type(type_tag, &block); end
230
234
 
231
235
  # :stopdoc:
232
236
  #
233
- # source://psych//psych.rb#676
237
+ # source://psych//lib/psych.rb#722
234
238
  def add_domain_type(domain, type_tag, &block); end
235
239
 
236
- # source://psych//psych.rb#692
240
+ # source://psych//lib/psych.rb#738
237
241
  def add_tag(tag, klass); end
238
242
 
239
- # source://psych//psych.rb#708
243
+ # source://psych//lib/psych.rb#754
240
244
  def config; end
241
245
 
242
- # source://psych//psych.rb#720
246
+ # source://psych//lib/psych.rb#766
243
247
  def domain_types; end
244
248
 
245
- # source://psych//psych.rb#732
249
+ # source://psych//lib/psych.rb#778
246
250
  def domain_types=(value); end
247
251
 
248
252
  # call-seq:
@@ -263,6 +267,7 @@ module Psych
263
267
  #
264
268
  # Default: <tt>2</tt>.
265
269
  # [<tt>:line_width</tt>] Max character to wrap line at.
270
+ # For unlimited line width use <tt>-1</tt>.
266
271
  #
267
272
  # Default: <tt>0</tt> (meaning "wrap at 81").
268
273
  # [<tt>:canonical</tt>] Write "canonical" YAML form (very verbose, yet
@@ -273,6 +278,10 @@ module Psych
273
278
  #
274
279
  # Default: <tt>false</tt>.
275
280
  #
281
+ # [<tt>:stringify_names</tt>] Dump symbol keys in Hash objects as string.
282
+ #
283
+ # Default: <tt>false</tt>.
284
+ #
276
285
  # Example:
277
286
  #
278
287
  # # Dump an array, get back a YAML string
@@ -287,7 +296,10 @@ module Psych
287
296
  # # Dump an array to an IO with indentation set
288
297
  # Psych.dump(['a', ['b']], StringIO.new, indentation: 3)
289
298
  #
290
- # source://psych//psych.rb#505
299
+ # # Dump hash with symbol keys as string
300
+ # Psych.dump({a: "b"}, stringify_names: true) # => "---\na: b\n"
301
+ #
302
+ # source://psych//lib/psych.rb#514
291
303
  def dump(o, io = T.unsafe(nil), options = T.unsafe(nil)); end
292
304
 
293
305
  # Dump a list of objects as separate documents to a document stream.
@@ -296,20 +308,20 @@ module Psych
296
308
  #
297
309
  # Psych.dump_stream("foo\n ", {}) # => "--- ! \"foo\\n \"\n--- {}\n"
298
310
  #
299
- # source://psych//psych.rb#595
311
+ # source://psych//lib/psych.rb#612
300
312
  def dump_stream(*objects); end
301
313
 
302
- # source://psych//psych.rb#716
314
+ # source://psych//lib/psych.rb#762
303
315
  def dump_tags; end
304
316
 
305
- # source://psych//psych.rb#728
317
+ # source://psych//lib/psych.rb#774
306
318
  def dump_tags=(value); end
307
319
 
308
320
  # Load +yaml+ in to a Ruby data structure. If multiple documents are
309
321
  # provided, the object contained in the first document will be returned.
310
322
  # +filename+ will be used in the exception message if any exception
311
323
  # is raised while parsing. If +yaml+ is empty, it returns
312
- # the specified +fallback+ return value, which defaults to +false+.
324
+ # the specified +fallback+ return value, which defaults to +nil+.
313
325
  #
314
326
  # Raises a Psych::SyntaxError when a YAML syntax error is detected.
315
327
  #
@@ -334,15 +346,15 @@ module Psych
334
346
  # Raises a TypeError when `yaml` parameter is NilClass. This method is
335
347
  # similar to `safe_load` except that `Symbol` objects are allowed by default.
336
348
  #
337
- # source://psych//psych.rb#368
349
+ # source://psych//lib/psych.rb#369
338
350
  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
339
351
 
340
352
  # Loads the document contained in +filename+. Returns the yaml contained in
341
353
  # +filename+ as a Ruby object, or if the file is empty, it returns
342
- # the specified +fallback+ return value, which defaults to +false+.
354
+ # the specified +fallback+ return value, which defaults to +nil+.
343
355
  # See load for options.
344
356
  #
345
- # source://psych//psych.rb#669
357
+ # source://psych//lib/psych.rb#715
346
358
  def load_file(filename, **kwargs); end
347
359
 
348
360
  # Load multiple documents given in +yaml+. Returns the parsed documents
@@ -359,13 +371,13 @@ module Psych
359
371
  # end
360
372
  # list # => ['foo', 'bar']
361
373
  #
362
- # source://psych//psych.rb#626
374
+ # source://psych//lib/psych.rb#643
363
375
  def load_stream(yaml, filename: T.unsafe(nil), fallback: T.unsafe(nil), **kwargs); end
364
376
 
365
- # source://psych//psych.rb#712
377
+ # source://psych//lib/psych.rb#758
366
378
  def load_tags; end
367
379
 
368
- # source://psych//psych.rb#724
380
+ # source://psych//lib/psych.rb#770
369
381
  def load_tags=(value); end
370
382
 
371
383
  # Parse a YAML string in +yaml+. Returns the Psych::Nodes::Document.
@@ -387,14 +399,14 @@ module Psych
387
399
  #
388
400
  # See Psych::Nodes for more information about YAML AST.
389
401
  #
390
- # source://psych//psych.rb#398
402
+ # source://psych//lib/psych.rb#399
391
403
  def parse(yaml, filename: T.unsafe(nil)); end
392
404
 
393
405
  # Parse a file at +filename+. Returns the Psych::Nodes::Document.
394
406
  #
395
407
  # Raises a Psych::SyntaxError when a YAML syntax error is detected.
396
408
  #
397
- # source://psych//psych.rb#410
409
+ # source://psych//lib/psych.rb#411
398
410
  def parse_file(filename, fallback: T.unsafe(nil)); end
399
411
 
400
412
  # Parse a YAML string in +yaml+. Returns the Psych::Nodes::Stream.
@@ -426,15 +438,15 @@ module Psych
426
438
  #
427
439
  # See Psych::Nodes for more information about YAML AST.
428
440
  #
429
- # source://psych//psych.rb#452
441
+ # source://psych//lib/psych.rb#453
430
442
  def parse_stream(yaml, filename: T.unsafe(nil), &block); end
431
443
 
432
444
  # Returns a default parser
433
445
  #
434
- # source://psych//psych.rb#419
446
+ # source://psych//lib/psych.rb#420
435
447
  def parser; end
436
448
 
437
- # source://psych//psych.rb#688
449
+ # source://psych//lib/psych.rb#734
438
450
  def remove_type(type_tag); end
439
451
 
440
452
  # call-seq:
@@ -475,6 +487,7 @@ module Psych
475
487
  #
476
488
  # Default: <tt>2</tt>.
477
489
  # [<tt>:line_width</tt>] Max character to wrap line at.
490
+ # For unlimited line width use <tt>-1</tt>.
478
491
  #
479
492
  # Default: <tt>0</tt> (meaning "wrap at 81").
480
493
  # [<tt>:canonical</tt>] Write "canonical" YAML form (very verbose, yet
@@ -485,6 +498,10 @@ module Psych
485
498
  #
486
499
  # Default: <tt>false</tt>.
487
500
  #
501
+ # [<tt>:stringify_names</tt>] Dump symbol keys in Hash objects as string.
502
+ #
503
+ # Default: <tt>false</tt>.
504
+ #
488
505
  # Example:
489
506
  #
490
507
  # # Dump an array, get back a YAML string
@@ -499,7 +516,10 @@ module Psych
499
516
  # # Dump an array to an IO with indentation set
500
517
  # Psych.safe_dump(['a', ['b']], StringIO.new, indentation: 3)
501
518
  #
502
- # source://psych//psych.rb#578
519
+ # # Dump hash with symbol keys as string
520
+ # Psych.dump({a: "b"}, stringify_names: true) # => "---\na: b\n"
521
+ #
522
+ # source://psych//lib/psych.rb#595
503
523
  def safe_dump(o, io = T.unsafe(nil), options = T.unsafe(nil)); end
504
524
 
505
525
  # Safely load the yaml string in +yaml+. By default, only the following
@@ -546,20 +566,36 @@ module Psych
546
566
  # Psych.safe_load("---\n foo: bar") # => {"foo"=>"bar"}
547
567
  # Psych.safe_load("---\n foo: bar", symbolize_names: true) # => {:foo=>"bar"}
548
568
  #
549
- # source://psych//psych.rb#322
569
+ # source://psych//lib/psych.rb#323
550
570
  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
551
571
 
552
572
  # Safely loads the document contained in +filename+. Returns the yaml contained in
553
573
  # +filename+ as a Ruby object, or if the file is empty, it returns
554
- # the specified +fallback+ return value, which defaults to +false+.
574
+ # the specified +fallback+ return value, which defaults to +nil+.
555
575
  # See safe_load for options.
556
576
  #
557
- # source://psych//psych.rb#658
577
+ # source://psych//lib/psych.rb#704
558
578
  def safe_load_file(filename, **kwargs); end
559
579
 
580
+ # Load multiple documents given in +yaml+. Returns the parsed documents
581
+ # as a list.
582
+ #
583
+ # Example:
584
+ #
585
+ # Psych.safe_load_stream("--- foo\n...\n--- bar\n...") # => ['foo', 'bar']
586
+ #
587
+ # list = []
588
+ # Psych.safe_load_stream("--- foo\n...\n--- bar\n...") do |ruby|
589
+ # list << ruby
590
+ # end
591
+ # list # => ['foo', 'bar']
592
+ #
593
+ # source://psych//lib/psych.rb#670
594
+ def safe_load_stream(yaml, filename: T.unsafe(nil), permitted_classes: T.unsafe(nil), aliases: T.unsafe(nil)); end
595
+
560
596
  # Dump Ruby +object+ to a JSON string.
561
597
  #
562
- # source://psych//psych.rb#605
598
+ # source://psych//lib/psych.rb#622
563
599
  def to_json(object); end
564
600
 
565
601
  # Load +yaml+ in to a Ruby data structure. If multiple documents are
@@ -594,7 +630,7 @@ module Psych
594
630
  # YAML documents that are supplied via user input. Instead, please use the
595
631
  # load method or the safe_load method.
596
632
  #
597
- # source://psych//psych.rb#271
633
+ # source://psych//lib/psych.rb#272
598
634
  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
599
635
 
600
636
  # Load the document contained in +filename+. Returns the yaml contained in
@@ -605,99 +641,111 @@ module Psych
605
641
  # YAML documents that are supplied via user input. Instead, please use the
606
642
  # safe_load_file method.
607
643
  #
608
- # source://psych//psych.rb#647
644
+ # source://psych//lib/psych.rb#693
609
645
  def unsafe_load_file(filename, **kwargs); end
610
646
  end
611
647
  end
612
648
 
613
649
  # Subclasses `BadAlias` for backwards compatibility
650
+ #
651
+ # source://psych//lib/psych/exception.rb#10
614
652
  class Psych::AliasesNotEnabled < ::Psych::BadAlias
615
653
  # @return [AliasesNotEnabled] a new instance of AliasesNotEnabled
616
654
  #
617
- # source://psych//psych/exception.rb#11
655
+ # source://psych//lib/psych/exception.rb#11
618
656
  def initialize; end
619
657
  end
620
658
 
621
659
  # Subclasses `BadAlias` for backwards compatibility
660
+ #
661
+ # source://psych//lib/psych/exception.rb#17
622
662
  class Psych::AnchorNotDefined < ::Psych::BadAlias
623
663
  # @return [AnchorNotDefined] a new instance of AnchorNotDefined
624
664
  #
625
- # source://psych//psych/exception.rb#18
665
+ # source://psych//lib/psych/exception.rb#18
626
666
  def initialize(anchor_name); end
627
667
  end
628
668
 
669
+ # source://psych//lib/psych/class_loader.rb#6
629
670
  class Psych::ClassLoader
630
671
  # @return [ClassLoader] a new instance of ClassLoader
631
672
  #
632
- # source://psych//psych/class_loader.rb#21
673
+ # source://psych//lib/psych/class_loader.rb#22
633
674
  def initialize; end
634
675
 
635
- # source://psych//psych/class_loader.rb#39
676
+ # source://psych//lib/psych/class_loader.rb#40
636
677
  def big_decimal; end
637
678
 
638
- # source://psych//psych/class_loader.rb#39
679
+ # source://psych//lib/psych/class_loader.rb#40
639
680
  def complex; end
640
681
 
641
- # source://psych//psych/class_loader.rb#39
682
+ # source://psych//lib/psych/class_loader.rb#40
683
+ def data; end
684
+
685
+ # source://psych//lib/psych/class_loader.rb#40
642
686
  def date; end
643
687
 
644
- # source://psych//psych/class_loader.rb#39
688
+ # source://psych//lib/psych/class_loader.rb#40
645
689
  def date_time; end
646
690
 
647
- # source://psych//psych/class_loader.rb#39
691
+ # source://psych//lib/psych/class_loader.rb#40
648
692
  def exception; end
649
693
 
650
- # source://psych//psych/class_loader.rb#25
694
+ # source://psych//lib/psych/class_loader.rb#26
651
695
  def load(klassname); end
652
696
 
653
- # source://psych//psych/class_loader.rb#39
697
+ # source://psych//lib/psych/class_loader.rb#40
654
698
  def object; end
655
699
 
656
- # source://psych//psych/class_loader.rb#39
700
+ # source://psych//lib/psych/class_loader.rb#40
657
701
  def psych_omap; end
658
702
 
659
- # source://psych//psych/class_loader.rb#39
703
+ # source://psych//lib/psych/class_loader.rb#40
660
704
  def psych_set; end
661
705
 
662
- # source://psych//psych/class_loader.rb#39
706
+ # source://psych//lib/psych/class_loader.rb#40
663
707
  def range; end
664
708
 
665
- # source://psych//psych/class_loader.rb#39
709
+ # source://psych//lib/psych/class_loader.rb#40
666
710
  def rational; end
667
711
 
668
- # source://psych//psych/class_loader.rb#39
712
+ # source://psych//lib/psych/class_loader.rb#40
669
713
  def regexp; end
670
714
 
671
- # source://psych//psych/class_loader.rb#39
715
+ # source://psych//lib/psych/class_loader.rb#40
672
716
  def struct; end
673
717
 
674
- # source://psych//psych/class_loader.rb#39
718
+ # source://psych//lib/psych/class_loader.rb#40
675
719
  def symbol; end
676
720
 
677
- # source://psych//psych/class_loader.rb#31
721
+ # source://psych//lib/psych/class_loader.rb#32
678
722
  def symbolize(sym); end
679
723
 
680
724
  private
681
725
 
682
- # source://psych//psych/class_loader.rb#47
726
+ # source://psych//lib/psych/class_loader.rb#48
683
727
  def find(klassname); end
684
728
 
685
- # source://psych//psych/class_loader.rb#51
729
+ # source://psych//lib/psych/class_loader.rb#52
686
730
  def resolve(klassname); end
687
731
  end
688
732
 
733
+ # source://psych//lib/psych/class_loader.rb#9
734
+ Psych::ClassLoader::DATA = T.let(T.unsafe(nil), String)
735
+
736
+ # source://psych//lib/psych/class_loader.rb#77
689
737
  class Psych::ClassLoader::Restricted < ::Psych::ClassLoader
690
738
  # @return [Restricted] a new instance of Restricted
691
739
  #
692
- # source://psych//psych/class_loader.rb#77
740
+ # source://psych//lib/psych/class_loader.rb#78
693
741
  def initialize(classes, symbols); end
694
742
 
695
- # source://psych//psych/class_loader.rb#83
743
+ # source://psych//lib/psych/class_loader.rb#84
696
744
  def symbolize(sym); end
697
745
 
698
746
  private
699
747
 
700
- # source://psych//psych/class_loader.rb#95
748
+ # source://psych//lib/psych/class_loader.rb#96
701
749
  def find(klassname); end
702
750
  end
703
751
 
@@ -706,31 +754,33 @@ end
706
754
  # automatically assumes a Psych::Nodes::Mapping is being emitted. Other
707
755
  # objects like Sequence and Scalar may be emitted if +seq=+ or +scalar=+ are
708
756
  # called, respectively.
757
+ #
758
+ # source://psych//lib/psych/coder.rb#9
709
759
  class Psych::Coder
710
760
  # @return [Coder] a new instance of Coder
711
761
  #
712
- # source://psych//psych/coder.rb#13
762
+ # source://psych//lib/psych/coder.rb#13
713
763
  def initialize(tag); end
714
764
 
715
- # source://psych//psych/coder.rb#84
765
+ # source://psych//lib/psych/coder.rb#84
716
766
  def [](k); end
717
767
 
718
- # source://psych//psych/coder.rb#78
768
+ # source://psych//lib/psych/coder.rb#78
719
769
  def []=(k, v); end
720
770
 
721
- # source://psych//psych/coder.rb#78
771
+ # source://psych//lib/psych/coder.rb#78
722
772
  def add(k, v); end
723
773
 
724
774
  # Returns the value of attribute implicit.
725
775
  #
726
- # source://psych//psych/coder.rb#10
776
+ # source://psych//lib/psych/coder.rb#10
727
777
  def implicit; end
728
778
 
729
779
  # Sets the attribute implicit
730
780
  #
731
781
  # @param value the value to set the attribute implicit to.
732
782
  #
733
- # source://psych//psych/coder.rb#10
783
+ # source://psych//lib/psych/coder.rb#10
734
784
  def implicit=(_arg0); end
735
785
 
736
786
  # Emit a map. The coder will be yielded to the block.
@@ -738,98 +788,99 @@ class Psych::Coder
738
788
  # @yield [_self]
739
789
  # @yieldparam _self [Psych::Coder] the object that the method was called on
740
790
  #
741
- # source://psych//psych/coder.rb#34
791
+ # source://psych//lib/psych/coder.rb#34
742
792
  def map(tag = T.unsafe(nil), style = T.unsafe(nil)); end
743
793
 
744
794
  # Emit a map with +value+
745
795
  #
746
- # source://psych//psych/coder.rb#73
796
+ # source://psych//lib/psych/coder.rb#73
747
797
  def map=(map); end
748
798
 
749
799
  # Returns the value of attribute object.
750
800
  #
751
- # source://psych//psych/coder.rb#10
801
+ # source://psych//lib/psych/coder.rb#10
752
802
  def object; end
753
803
 
754
804
  # Sets the attribute object
755
805
  #
756
806
  # @param value the value to set the attribute object to.
757
807
  #
758
- # source://psych//psych/coder.rb#10
808
+ # source://psych//lib/psych/coder.rb#10
759
809
  def object=(_arg0); end
760
810
 
761
811
  # Emit a sequence with +map+ and +tag+
762
812
  #
763
- # source://psych//psych/coder.rb#54
813
+ # source://psych//lib/psych/coder.rb#54
764
814
  def represent_map(tag, map); end
765
815
 
766
816
  # Emit an arbitrary object +obj+ and +tag+
767
817
  #
768
- # source://psych//psych/coder.rb#60
818
+ # source://psych//lib/psych/coder.rb#60
769
819
  def represent_object(tag, obj); end
770
820
 
771
821
  # Emit a scalar with +value+ and +tag+
772
822
  #
773
- # source://psych//psych/coder.rb#42
823
+ # source://psych//lib/psych/coder.rb#42
774
824
  def represent_scalar(tag, value); end
775
825
 
776
826
  # Emit a sequence with +list+ and +tag+
777
827
  #
778
- # source://psych//psych/coder.rb#48
828
+ # source://psych//lib/psych/coder.rb#48
779
829
  def represent_seq(tag, list); end
780
830
 
781
- # source://psych//psych/coder.rb#24
831
+ # source://psych//lib/psych/coder.rb#24
782
832
  def scalar(*args); end
783
833
 
784
834
  # Emit a scalar with +value+
785
835
  #
786
- # source://psych//psych/coder.rb#67
836
+ # source://psych//lib/psych/coder.rb#67
787
837
  def scalar=(value); end
788
838
 
789
839
  # Returns the value of attribute seq.
790
840
  #
791
- # source://psych//psych/coder.rb#11
841
+ # source://psych//lib/psych/coder.rb#11
792
842
  def seq; end
793
843
 
794
844
  # Emit a sequence of +list+
795
845
  #
796
- # source://psych//psych/coder.rb#90
846
+ # source://psych//lib/psych/coder.rb#90
797
847
  def seq=(list); end
798
848
 
799
849
  # Returns the value of attribute style.
800
850
  #
801
- # source://psych//psych/coder.rb#10
851
+ # source://psych//lib/psych/coder.rb#10
802
852
  def style; end
803
853
 
804
854
  # Sets the attribute style
805
855
  #
806
856
  # @param value the value to set the attribute style to.
807
857
  #
808
- # source://psych//psych/coder.rb#10
858
+ # source://psych//lib/psych/coder.rb#10
809
859
  def style=(_arg0); end
810
860
 
811
861
  # Returns the value of attribute tag.
812
862
  #
813
- # source://psych//psych/coder.rb#10
863
+ # source://psych//lib/psych/coder.rb#10
814
864
  def tag; end
815
865
 
816
866
  # Sets the attribute tag
817
867
  #
818
868
  # @param value the value to set the attribute tag to.
819
869
  #
820
- # source://psych//psych/coder.rb#10
870
+ # source://psych//lib/psych/coder.rb#10
821
871
  def tag=(_arg0); end
822
872
 
823
873
  # Returns the value of attribute type.
824
874
  #
825
- # source://psych//psych/coder.rb#11
875
+ # source://psych//lib/psych/coder.rb#11
826
876
  def type; end
827
877
  end
828
878
 
879
+ # source://psych//lib/psych/exception.rb#23
829
880
  class Psych::DisallowedClass < ::Psych::Exception
830
881
  # @return [DisallowedClass] a new instance of DisallowedClass
831
882
  #
832
- # source://psych//psych/exception.rb#24
883
+ # source://psych//lib/psych/exception.rb#24
833
884
  def initialize(action, klass_name); end
834
885
  end
835
886
 
@@ -842,6 +893,8 @@ end
842
893
  # event handlers.
843
894
  #
844
895
  # See Psych::Parser for more details
896
+ #
897
+ # source://psych//lib/psych/handler.rb#13
845
898
  class Psych::Handler
846
899
  # Called when an alias is found to +anchor+. +anchor+ will be the name
847
900
  # of the anchor found.
@@ -857,13 +910,13 @@ class Psych::Handler
857
910
  # &ponies is the anchor, *ponies is the alias. In this case, alias is
858
911
  # called with "ponies".
859
912
  #
860
- # source://psych//psych/handler.rb#110
913
+ # source://psych//lib/psych/handler.rb#110
861
914
  def alias(anchor); end
862
915
 
863
916
  # Called when an empty event happens. (Which, as far as I can tell, is
864
917
  # never).
865
918
  #
866
- # source://psych//psych/handler.rb#236
919
+ # source://psych//lib/psych/handler.rb#236
867
920
  def empty; end
868
921
 
869
922
  # Called with the document ends. +implicit+ is a boolean value indicating
@@ -884,27 +937,27 @@ class Psych::Handler
884
937
  #
885
938
  # +implicit+ will be false.
886
939
  #
887
- # source://psych//psych/handler.rb#93
940
+ # source://psych//lib/psych/handler.rb#93
888
941
  def end_document(implicit); end
889
942
 
890
943
  # Called when a map ends
891
944
  #
892
- # source://psych//psych/handler.rb#230
945
+ # source://psych//lib/psych/handler.rb#230
893
946
  def end_mapping; end
894
947
 
895
948
  # Called when a sequence ends.
896
949
  #
897
- # source://psych//psych/handler.rb#191
950
+ # source://psych//lib/psych/handler.rb#191
898
951
  def end_sequence; end
899
952
 
900
953
  # Called when the YAML stream ends
901
954
  #
902
- # source://psych//psych/handler.rb#241
955
+ # source://psych//lib/psych/handler.rb#241
903
956
  def end_stream; end
904
957
 
905
958
  # Called before each event with line/column information.
906
959
  #
907
- # source://psych//psych/handler.rb#246
960
+ # source://psych//lib/psych/handler.rb#246
908
961
  def event_location(start_line, start_column, end_line, end_column); end
909
962
 
910
963
  # Called when a scalar +value+ is found. The scalar may have an
@@ -943,7 +996,7 @@ class Psych::Handler
943
996
  # ["many lines", nil, nil, true, false, 1 ]
944
997
  # ["many\nnewlines\n", nil, nil, false, true, 4 ]
945
998
  #
946
- # source://psych//psych/handler.rb#150
999
+ # source://psych//lib/psych/handler.rb#150
947
1000
  def scalar(value, anchor, tag, plain, quoted, style); end
948
1001
 
949
1002
  # Called when the document starts with the declared +version+,
@@ -968,7 +1021,7 @@ class Psych::Handler
968
1021
  # tag_directives # => [["!", "tag:tenderlovemaking.com,2009:"]]
969
1022
  # implicit # => false
970
1023
  #
971
- # source://psych//psych/handler.rb#72
1024
+ # source://psych//lib/psych/handler.rb#72
972
1025
  def start_document(version, tag_directives, implicit); end
973
1026
 
974
1027
  # Called when a map starts.
@@ -1001,7 +1054,7 @@ class Psych::Handler
1001
1054
  # [nil, "tag:yaml.org,2002:map", false, 2 ]
1002
1055
  # ["pewpew", nil, true, 1 ]
1003
1056
  #
1004
- # source://psych//psych/handler.rb#225
1057
+ # source://psych//lib/psych/handler.rb#225
1005
1058
  def start_mapping(anchor, tag, implicit, style); end
1006
1059
 
1007
1060
  # Called when a sequence is started.
@@ -1036,7 +1089,7 @@ class Psych::Handler
1036
1089
  # [nil, "tag:yaml.org,2002:seq", false, 2 ]
1037
1090
  # ["pewpew", nil, true, 1 ]
1038
1091
  #
1039
- # source://psych//psych/handler.rb#186
1092
+ # source://psych//lib/psych/handler.rb#186
1040
1093
  def start_sequence(anchor, tag, implicit, style); end
1041
1094
 
1042
1095
  # Called with +encoding+ when the YAML stream starts. This method is
@@ -1044,66 +1097,672 @@ class Psych::Handler
1044
1097
  #
1045
1098
  # See the constants in Psych::Parser for the possible values of +encoding+.
1046
1099
  #
1047
- # source://psych//psych/handler.rb#47
1100
+ # source://psych//lib/psych/handler.rb#47
1048
1101
  def start_stream(encoding); end
1049
1102
 
1050
1103
  # Is this handler a streaming handler?
1051
1104
  #
1052
1105
  # @return [Boolean]
1053
1106
  #
1054
- # source://psych//psych/handler.rb#251
1107
+ # source://psych//lib/psych/handler.rb#251
1055
1108
  def streaming?; end
1056
1109
  end
1057
1110
 
1058
1111
  # Configuration options for dumping YAML.
1112
+ #
1113
+ # source://psych//lib/psych/handler.rb#16
1059
1114
  class Psych::Handler::DumperOptions
1060
1115
  # @return [DumperOptions] a new instance of DumperOptions
1061
1116
  #
1062
- # source://psych//psych/handler.rb#19
1117
+ # source://psych//lib/psych/handler.rb#19
1063
1118
  def initialize; end
1064
1119
 
1065
1120
  # Returns the value of attribute canonical.
1066
1121
  #
1067
- # source://psych//psych/handler.rb#17
1122
+ # source://psych//lib/psych/handler.rb#17
1068
1123
  def canonical; end
1069
1124
 
1070
1125
  # Sets the attribute canonical
1071
1126
  #
1072
1127
  # @param value the value to set the attribute canonical to.
1073
1128
  #
1074
- # source://psych//psych/handler.rb#17
1129
+ # source://psych//lib/psych/handler.rb#17
1075
1130
  def canonical=(_arg0); end
1076
1131
 
1077
1132
  # Returns the value of attribute indentation.
1078
1133
  #
1079
- # source://psych//psych/handler.rb#17
1134
+ # source://psych//lib/psych/handler.rb#17
1080
1135
  def indentation; end
1081
1136
 
1082
1137
  # Sets the attribute indentation
1083
1138
  #
1084
1139
  # @param value the value to set the attribute indentation to.
1085
1140
  #
1086
- # source://psych//psych/handler.rb#17
1141
+ # source://psych//lib/psych/handler.rb#17
1087
1142
  def indentation=(_arg0); end
1088
1143
 
1089
1144
  # Returns the value of attribute line_width.
1090
1145
  #
1091
- # source://psych//psych/handler.rb#17
1146
+ # source://psych//lib/psych/handler.rb#17
1092
1147
  def line_width; end
1093
1148
 
1094
1149
  # Sets the attribute line_width
1095
1150
  #
1096
1151
  # @param value the value to set the attribute line_width to.
1097
1152
  #
1098
- # source://psych//psych/handler.rb#17
1153
+ # source://psych//lib/psych/handler.rb#17
1099
1154
  def line_width=(_arg0); end
1100
1155
  end
1101
1156
 
1157
+ # source://psych//lib/psych/handlers/document_stream.rb#6
1158
+ class Psych::Handlers::DocumentStream < ::Psych::TreeBuilder
1159
+ # @return [DocumentStream] a new instance of DocumentStream
1160
+ #
1161
+ # source://psych//lib/psych/handlers/document_stream.rb#7
1162
+ def initialize(&block); end
1163
+
1164
+ # source://psych//lib/psych/handlers/document_stream.rb#17
1165
+ def end_document(implicit_end = T.unsafe(nil)); end
1166
+
1167
+ # source://psych//lib/psych/handlers/document_stream.rb#12
1168
+ def start_document(version, tag_directives, implicit); end
1169
+ end
1170
+
1171
+ # source://psych//lib/psych/json/ruby_events.rb#4
1172
+ module Psych::JSON::RubyEvents
1173
+ # source://psych//lib/psych/json/ruby_events.rb#10
1174
+ def visit_DateTime(o); end
1175
+
1176
+ # source://psych//lib/psych/json/ruby_events.rb#14
1177
+ def visit_String(o); end
1178
+
1179
+ # source://psych//lib/psych/json/ruby_events.rb#14
1180
+ def visit_Symbol(o); end
1181
+
1182
+ # source://psych//lib/psych/json/ruby_events.rb#5
1183
+ def visit_Time(o); end
1184
+ end
1185
+
1186
+ # source://psych//lib/psych/json/stream.rb#7
1102
1187
  class Psych::JSON::Stream < ::Psych::Visitors::JSONTree
1103
1188
  include ::Psych::Streaming
1104
1189
  extend ::Psych::Streaming::ClassMethods
1105
1190
  end
1106
1191
 
1192
+ # source://psych//lib/psych/json/stream.rb#12
1193
+ class Psych::JSON::Stream::Emitter < ::Psych::Stream::Emitter
1194
+ include ::Psych::JSON::YAMLEvents
1195
+ end
1196
+
1197
+ # Psych::JSON::TreeBuilder is an event based AST builder. Events are sent
1198
+ # to an instance of Psych::JSON::TreeBuilder and a JSON AST is constructed.
1199
+ #
1200
+ # source://psych//lib/psych/json/tree_builder.rb#9
1201
+ class Psych::JSON::TreeBuilder < ::Psych::TreeBuilder
1202
+ include ::Psych::JSON::YAMLEvents
1203
+ end
1204
+
1205
+ # source://psych//lib/psych/json/yaml_events.rb#4
1206
+ module Psych::JSON::YAMLEvents
1207
+ # source://psych//lib/psych/json/yaml_events.rb#9
1208
+ def end_document(implicit_end = T.unsafe(nil)); end
1209
+
1210
+ # source://psych//lib/psych/json/yaml_events.rb#21
1211
+ def scalar(value, anchor, tag, plain, quoted, style); end
1212
+
1213
+ # source://psych//lib/psych/json/yaml_events.rb#5
1214
+ def start_document(version, tag_directives, implicit); end
1215
+
1216
+ # source://psych//lib/psych/json/yaml_events.rb#13
1217
+ def start_mapping(anchor, tag, implicit, style); end
1218
+
1219
+ # source://psych//lib/psych/json/yaml_events.rb#17
1220
+ def start_sequence(anchor, tag, implicit, style); end
1221
+ end
1222
+
1223
+ # This class represents a {YAML Alias}[http://yaml.org/spec/1.1/#alias].
1224
+ # It points to an +anchor+.
1225
+ #
1226
+ # A Psych::Nodes::Alias is a terminal node and may have no children.
1227
+ #
1228
+ # source://psych//lib/psych/nodes/alias.rb#9
1229
+ class Psych::Nodes::Alias < ::Psych::Nodes::Node
1230
+ # Create a new Alias that points to an +anchor+
1231
+ #
1232
+ # @return [Alias] a new instance of Alias
1233
+ #
1234
+ # source://psych//lib/psych/nodes/alias.rb#14
1235
+ def initialize(anchor); end
1236
+
1237
+ # @return [Boolean]
1238
+ #
1239
+ # source://psych//lib/psych/nodes/alias.rb#18
1240
+ def alias?; end
1241
+
1242
+ # The anchor this alias links to
1243
+ #
1244
+ # source://psych//lib/psych/nodes/alias.rb#11
1245
+ def anchor; end
1246
+
1247
+ # The anchor this alias links to
1248
+ #
1249
+ # source://psych//lib/psych/nodes/alias.rb#11
1250
+ def anchor=(_arg0); end
1251
+ end
1252
+
1253
+ # This represents a YAML Document. This node must be a child of
1254
+ # Psych::Nodes::Stream. A Psych::Nodes::Document must have one child,
1255
+ # and that child may be one of the following:
1256
+ #
1257
+ # * Psych::Nodes::Sequence
1258
+ # * Psych::Nodes::Mapping
1259
+ # * Psych::Nodes::Scalar
1260
+ #
1261
+ # source://psych//lib/psych/nodes/document.rb#12
1262
+ class Psych::Nodes::Document < ::Psych::Nodes::Node
1263
+ # Create a new Psych::Nodes::Document object.
1264
+ #
1265
+ # +version+ is a list indicating the YAML version.
1266
+ # +tags_directives+ is a list of tag directive declarations
1267
+ # +implicit+ is a flag indicating whether the document will be implicitly
1268
+ # started.
1269
+ #
1270
+ # == Example:
1271
+ # This creates a YAML document object that represents a YAML 1.1 document
1272
+ # with one tag directive, and has an implicit start:
1273
+ #
1274
+ # Psych::Nodes::Document.new(
1275
+ # [1,1],
1276
+ # [["!", "tag:tenderlovemaking.com,2009:"]],
1277
+ # true
1278
+ # )
1279
+ #
1280
+ # == See Also
1281
+ # See also Psych::Handler#start_document
1282
+ #
1283
+ # @return [Document] a new instance of Document
1284
+ #
1285
+ # source://psych//lib/psych/nodes/document.rb#45
1286
+ def initialize(version = T.unsafe(nil), tag_directives = T.unsafe(nil), implicit = T.unsafe(nil)); end
1287
+
1288
+ # @return [Boolean]
1289
+ #
1290
+ # source://psych//lib/psych/nodes/document.rb#60
1291
+ def document?; end
1292
+
1293
+ # Was this document implicitly created?
1294
+ #
1295
+ # source://psych//lib/psych/nodes/document.rb#20
1296
+ def implicit; end
1297
+
1298
+ # Was this document implicitly created?
1299
+ #
1300
+ # source://psych//lib/psych/nodes/document.rb#20
1301
+ def implicit=(_arg0); end
1302
+
1303
+ # Is the end of the document implicit?
1304
+ #
1305
+ # source://psych//lib/psych/nodes/document.rb#23
1306
+ def implicit_end; end
1307
+
1308
+ # Is the end of the document implicit?
1309
+ #
1310
+ # source://psych//lib/psych/nodes/document.rb#23
1311
+ def implicit_end=(_arg0); end
1312
+
1313
+ # Returns the root node. A Document may only have one root node:
1314
+ # http://yaml.org/spec/1.1/#id898031
1315
+ #
1316
+ # source://psych//lib/psych/nodes/document.rb#56
1317
+ def root; end
1318
+
1319
+ # A list of tag directives for this document
1320
+ #
1321
+ # source://psych//lib/psych/nodes/document.rb#17
1322
+ def tag_directives; end
1323
+
1324
+ # A list of tag directives for this document
1325
+ #
1326
+ # source://psych//lib/psych/nodes/document.rb#17
1327
+ def tag_directives=(_arg0); end
1328
+
1329
+ # The version of the YAML document
1330
+ #
1331
+ # source://psych//lib/psych/nodes/document.rb#14
1332
+ def version; end
1333
+
1334
+ # The version of the YAML document
1335
+ #
1336
+ # source://psych//lib/psych/nodes/document.rb#14
1337
+ def version=(_arg0); end
1338
+ end
1339
+
1340
+ # This class represents a {YAML Mapping}[http://yaml.org/spec/1.1/#mapping].
1341
+ #
1342
+ # A Psych::Nodes::Mapping node may have 0 or more children, but must have
1343
+ # an even number of children. Here are the valid children a
1344
+ # Psych::Nodes::Mapping node may have:
1345
+ #
1346
+ # * Psych::Nodes::Sequence
1347
+ # * Psych::Nodes::Mapping
1348
+ # * Psych::Nodes::Scalar
1349
+ # * Psych::Nodes::Alias
1350
+ #
1351
+ # source://psych//lib/psych/nodes/mapping.rb#15
1352
+ class Psych::Nodes::Mapping < ::Psych::Nodes::Node
1353
+ # Create a new Psych::Nodes::Mapping object.
1354
+ #
1355
+ # +anchor+ is the anchor associated with the map or +nil+.
1356
+ # +tag+ is the tag associated with the map or +nil+.
1357
+ # +implicit+ is a boolean indicating whether or not the map was implicitly
1358
+ # started.
1359
+ # +style+ is an integer indicating the mapping style.
1360
+ #
1361
+ # == See Also
1362
+ # See also Psych::Handler#start_mapping
1363
+ #
1364
+ # @return [Mapping] a new instance of Mapping
1365
+ #
1366
+ # source://psych//lib/psych/nodes/mapping.rb#48
1367
+ def initialize(anchor = T.unsafe(nil), tag = T.unsafe(nil), implicit = T.unsafe(nil), style = T.unsafe(nil)); end
1368
+
1369
+ # The optional anchor for this mapping
1370
+ #
1371
+ # source://psych//lib/psych/nodes/mapping.rb#26
1372
+ def anchor; end
1373
+
1374
+ # The optional anchor for this mapping
1375
+ #
1376
+ # source://psych//lib/psych/nodes/mapping.rb#26
1377
+ def anchor=(_arg0); end
1378
+
1379
+ # Is this an implicit mapping?
1380
+ #
1381
+ # source://psych//lib/psych/nodes/mapping.rb#32
1382
+ def implicit; end
1383
+
1384
+ # Is this an implicit mapping?
1385
+ #
1386
+ # source://psych//lib/psych/nodes/mapping.rb#32
1387
+ def implicit=(_arg0); end
1388
+
1389
+ # @return [Boolean]
1390
+ #
1391
+ # source://psych//lib/psych/nodes/mapping.rb#56
1392
+ def mapping?; end
1393
+
1394
+ # The style of this mapping
1395
+ #
1396
+ # source://psych//lib/psych/nodes/mapping.rb#35
1397
+ def style; end
1398
+
1399
+ # The style of this mapping
1400
+ #
1401
+ # source://psych//lib/psych/nodes/mapping.rb#35
1402
+ def style=(_arg0); end
1403
+
1404
+ # The optional tag for this mapping
1405
+ #
1406
+ # source://psych//lib/psych/nodes/mapping.rb#29
1407
+ def tag; end
1408
+
1409
+ # The optional tag for this mapping
1410
+ #
1411
+ # source://psych//lib/psych/nodes/mapping.rb#29
1412
+ def tag=(_arg0); end
1413
+ end
1414
+
1415
+ # The base class for any Node in a YAML parse tree. This class should
1416
+ # never be instantiated.
1417
+ #
1418
+ # source://psych//lib/psych/nodes/node.rb#10
1419
+ class Psych::Nodes::Node
1420
+ include ::Enumerable
1421
+
1422
+ # Create a new Psych::Nodes::Node
1423
+ #
1424
+ # @return [Node] a new instance of Node
1425
+ #
1426
+ # source://psych//lib/psych/nodes/node.rb#32
1427
+ def initialize; end
1428
+
1429
+ # @return [Boolean]
1430
+ #
1431
+ # source://psych//lib/psych/nodes/node.rb#68
1432
+ def alias?; end
1433
+
1434
+ # The children of this node
1435
+ #
1436
+ # source://psych//lib/psych/nodes/node.rb#14
1437
+ def children; end
1438
+
1439
+ # @return [Boolean]
1440
+ #
1441
+ # source://psych//lib/psych/nodes/node.rb#69
1442
+ def document?; end
1443
+
1444
+ # Iterate over each node in the tree. Yields each node to +block+ depth
1445
+ # first.
1446
+ #
1447
+ # source://psych//lib/psych/nodes/node.rb#39
1448
+ def each(&block); end
1449
+
1450
+ # The column number where this node ends
1451
+ #
1452
+ # source://psych//lib/psych/nodes/node.rb#29
1453
+ def end_column; end
1454
+
1455
+ # The column number where this node ends
1456
+ #
1457
+ # source://psych//lib/psych/nodes/node.rb#29
1458
+ def end_column=(_arg0); end
1459
+
1460
+ # The line number where this node ends
1461
+ #
1462
+ # source://psych//lib/psych/nodes/node.rb#26
1463
+ def end_line; end
1464
+
1465
+ # The line number where this node ends
1466
+ #
1467
+ # source://psych//lib/psych/nodes/node.rb#26
1468
+ def end_line=(_arg0); end
1469
+
1470
+ # @return [Boolean]
1471
+ #
1472
+ # source://psych//lib/psych/nodes/node.rb#70
1473
+ def mapping?; end
1474
+
1475
+ # @return [Boolean]
1476
+ #
1477
+ # source://psych//lib/psych/nodes/node.rb#71
1478
+ def scalar?; end
1479
+
1480
+ # @return [Boolean]
1481
+ #
1482
+ # source://psych//lib/psych/nodes/node.rb#72
1483
+ def sequence?; end
1484
+
1485
+ # The column number where this node start
1486
+ #
1487
+ # source://psych//lib/psych/nodes/node.rb#23
1488
+ def start_column; end
1489
+
1490
+ # The column number where this node start
1491
+ #
1492
+ # source://psych//lib/psych/nodes/node.rb#23
1493
+ def start_column=(_arg0); end
1494
+
1495
+ # The line number where this node start
1496
+ #
1497
+ # source://psych//lib/psych/nodes/node.rb#20
1498
+ def start_line; end
1499
+
1500
+ # The line number where this node start
1501
+ #
1502
+ # source://psych//lib/psych/nodes/node.rb#20
1503
+ def start_line=(_arg0); end
1504
+
1505
+ # @return [Boolean]
1506
+ #
1507
+ # source://psych//lib/psych/nodes/node.rb#73
1508
+ def stream?; end
1509
+
1510
+ # An associated tag
1511
+ #
1512
+ # source://psych//lib/psych/nodes/node.rb#17
1513
+ def tag; end
1514
+
1515
+ # Convert this node to Ruby.
1516
+ #
1517
+ # See also Psych::Visitors::ToRuby
1518
+ #
1519
+ # source://psych//lib/psych/nodes/node.rb#48
1520
+ def to_ruby(symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end
1521
+
1522
+ # Convert this node to YAML.
1523
+ #
1524
+ # See also Psych::Visitors::Emitter
1525
+ #
1526
+ # source://psych//lib/psych/nodes/node.rb#57
1527
+ def to_yaml(io = T.unsafe(nil), options = T.unsafe(nil)); end
1528
+
1529
+ # Convert this node to Ruby.
1530
+ #
1531
+ # See also Psych::Visitors::ToRuby
1532
+ #
1533
+ # source://psych//lib/psych/nodes/node.rb#48
1534
+ def transform(symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end
1535
+
1536
+ # Convert this node to YAML.
1537
+ #
1538
+ # See also Psych::Visitors::Emitter
1539
+ #
1540
+ # source://psych//lib/psych/nodes/node.rb#57
1541
+ def yaml(io = T.unsafe(nil), options = T.unsafe(nil)); end
1542
+ end
1543
+
1544
+ # This class represents a {YAML Scalar}[http://yaml.org/spec/1.1/#id858081].
1545
+ #
1546
+ # This node type is a terminal node and should not have any children.
1547
+ #
1548
+ # source://psych//lib/psych/nodes/scalar.rb#8
1549
+ class Psych::Nodes::Scalar < ::Psych::Nodes::Node
1550
+ # Create a new Psych::Nodes::Scalar object.
1551
+ #
1552
+ # +value+ is the string value of the scalar
1553
+ # +anchor+ is an associated anchor or nil
1554
+ # +tag+ is an associated tag or nil
1555
+ # +plain+ is a boolean value
1556
+ # +quoted+ is a boolean value
1557
+ # +style+ is an integer indicating the string style
1558
+ #
1559
+ # == See Also
1560
+ #
1561
+ # See also Psych::Handler#scalar
1562
+ #
1563
+ # @return [Scalar] a new instance of Scalar
1564
+ #
1565
+ # source://psych//lib/psych/nodes/scalar.rb#58
1566
+ def initialize(value, anchor = T.unsafe(nil), tag = T.unsafe(nil), plain = T.unsafe(nil), quoted = T.unsafe(nil), style = T.unsafe(nil)); end
1567
+
1568
+ # The anchor value (if there is one)
1569
+ #
1570
+ # source://psych//lib/psych/nodes/scalar.rb#31
1571
+ def anchor; end
1572
+
1573
+ # The anchor value (if there is one)
1574
+ #
1575
+ # source://psych//lib/psych/nodes/scalar.rb#31
1576
+ def anchor=(_arg0); end
1577
+
1578
+ # Is this a plain scalar?
1579
+ #
1580
+ # source://psych//lib/psych/nodes/scalar.rb#37
1581
+ def plain; end
1582
+
1583
+ # Is this a plain scalar?
1584
+ #
1585
+ # source://psych//lib/psych/nodes/scalar.rb#37
1586
+ def plain=(_arg0); end
1587
+
1588
+ # Is this scalar quoted?
1589
+ #
1590
+ # source://psych//lib/psych/nodes/scalar.rb#40
1591
+ def quoted; end
1592
+
1593
+ # Is this scalar quoted?
1594
+ #
1595
+ # source://psych//lib/psych/nodes/scalar.rb#40
1596
+ def quoted=(_arg0); end
1597
+
1598
+ # @return [Boolean]
1599
+ #
1600
+ # source://psych//lib/psych/nodes/scalar.rb#67
1601
+ def scalar?; end
1602
+
1603
+ # The style of this scalar
1604
+ #
1605
+ # source://psych//lib/psych/nodes/scalar.rb#43
1606
+ def style; end
1607
+
1608
+ # The style of this scalar
1609
+ #
1610
+ # source://psych//lib/psych/nodes/scalar.rb#43
1611
+ def style=(_arg0); end
1612
+
1613
+ # The tag value (if there is one)
1614
+ #
1615
+ # source://psych//lib/psych/nodes/scalar.rb#34
1616
+ def tag; end
1617
+
1618
+ # The tag value (if there is one)
1619
+ #
1620
+ # source://psych//lib/psych/nodes/scalar.rb#34
1621
+ def tag=(_arg0); end
1622
+
1623
+ # The scalar value
1624
+ #
1625
+ # source://psych//lib/psych/nodes/scalar.rb#28
1626
+ def value; end
1627
+
1628
+ # The scalar value
1629
+ #
1630
+ # source://psych//lib/psych/nodes/scalar.rb#28
1631
+ def value=(_arg0); end
1632
+ end
1633
+
1634
+ # This class represents a
1635
+ # {YAML sequence}[http://yaml.org/spec/1.1/#sequence/syntax].
1636
+ #
1637
+ # A YAML sequence is basically a list, and looks like this:
1638
+ #
1639
+ # %YAML 1.1
1640
+ # ---
1641
+ # - I am
1642
+ # - a Sequence
1643
+ #
1644
+ # A YAML sequence may have an anchor like this:
1645
+ #
1646
+ # %YAML 1.1
1647
+ # ---
1648
+ # &A [
1649
+ # "This sequence",
1650
+ # "has an anchor"
1651
+ # ]
1652
+ #
1653
+ # A YAML sequence may also have a tag like this:
1654
+ #
1655
+ # %YAML 1.1
1656
+ # ---
1657
+ # !!seq [
1658
+ # "This sequence",
1659
+ # "has a tag"
1660
+ # ]
1661
+ #
1662
+ # This class represents a sequence in a YAML document. A
1663
+ # Psych::Nodes::Sequence node may have 0 or more children. Valid children
1664
+ # for this node are:
1665
+ #
1666
+ # * Psych::Nodes::Sequence
1667
+ # * Psych::Nodes::Mapping
1668
+ # * Psych::Nodes::Scalar
1669
+ # * Psych::Nodes::Alias
1670
+ #
1671
+ # source://psych//lib/psych/nodes/sequence.rb#41
1672
+ class Psych::Nodes::Sequence < ::Psych::Nodes::Node
1673
+ # Create a new object representing a YAML sequence.
1674
+ #
1675
+ # +anchor+ is the anchor associated with the sequence or nil.
1676
+ # +tag+ is the tag associated with the sequence or nil.
1677
+ # +implicit+ a boolean indicating whether or not the sequence was
1678
+ # implicitly started.
1679
+ # +style+ is an integer indicating the list style.
1680
+ #
1681
+ # See Psych::Handler#start_sequence
1682
+ #
1683
+ # @return [Sequence] a new instance of Sequence
1684
+ #
1685
+ # source://psych//lib/psych/nodes/sequence.rb#73
1686
+ def initialize(anchor = T.unsafe(nil), tag = T.unsafe(nil), implicit = T.unsafe(nil), style = T.unsafe(nil)); end
1687
+
1688
+ # The anchor for this sequence (if any)
1689
+ #
1690
+ # source://psych//lib/psych/nodes/sequence.rb#52
1691
+ def anchor; end
1692
+
1693
+ # The anchor for this sequence (if any)
1694
+ #
1695
+ # source://psych//lib/psych/nodes/sequence.rb#52
1696
+ def anchor=(_arg0); end
1697
+
1698
+ # Is this sequence started implicitly?
1699
+ #
1700
+ # source://psych//lib/psych/nodes/sequence.rb#58
1701
+ def implicit; end
1702
+
1703
+ # Is this sequence started implicitly?
1704
+ #
1705
+ # source://psych//lib/psych/nodes/sequence.rb#58
1706
+ def implicit=(_arg0); end
1707
+
1708
+ # @return [Boolean]
1709
+ #
1710
+ # source://psych//lib/psych/nodes/sequence.rb#81
1711
+ def sequence?; end
1712
+
1713
+ # The sequence style used
1714
+ #
1715
+ # source://psych//lib/psych/nodes/sequence.rb#61
1716
+ def style; end
1717
+
1718
+ # The sequence style used
1719
+ #
1720
+ # source://psych//lib/psych/nodes/sequence.rb#61
1721
+ def style=(_arg0); end
1722
+
1723
+ # The tag name for this sequence (if any)
1724
+ #
1725
+ # source://psych//lib/psych/nodes/sequence.rb#55
1726
+ def tag; end
1727
+
1728
+ # The tag name for this sequence (if any)
1729
+ #
1730
+ # source://psych//lib/psych/nodes/sequence.rb#55
1731
+ def tag=(_arg0); end
1732
+ end
1733
+
1734
+ # Represents a YAML stream. This is the root node for any YAML parse
1735
+ # tree. This node must have one or more child nodes. The only valid
1736
+ # child node for a Psych::Nodes::Stream node is Psych::Nodes::Document.
1737
+ #
1738
+ # source://psych//lib/psych/nodes/stream.rb#8
1739
+ class Psych::Nodes::Stream < ::Psych::Nodes::Node
1740
+ # Create a new Psych::Nodes::Stream node with an +encoding+ that
1741
+ # defaults to Psych::Nodes::Stream::UTF8.
1742
+ #
1743
+ # See also Psych::Handler#start_stream
1744
+ #
1745
+ # @return [Stream] a new instance of Stream
1746
+ #
1747
+ # source://psych//lib/psych/nodes/stream.rb#32
1748
+ def initialize(encoding = T.unsafe(nil)); end
1749
+
1750
+ # The encoding used for this stream
1751
+ #
1752
+ # source://psych//lib/psych/nodes/stream.rb#25
1753
+ def encoding; end
1754
+
1755
+ # The encoding used for this stream
1756
+ #
1757
+ # source://psych//lib/psych/nodes/stream.rb#25
1758
+ def encoding=(_arg0); end
1759
+
1760
+ # @return [Boolean]
1761
+ #
1762
+ # source://psych//lib/psych/nodes/stream.rb#37
1763
+ def stream?; end
1764
+ end
1765
+
1107
1766
  # YAML event parser class. This class parses a YAML document and calls
1108
1767
  # events on the handler that is passed to the constructor. The events can
1109
1768
  # be used for things such as constructing a YAML AST or deserializing YAML
@@ -1132,28 +1791,30 @@ end
1132
1791
  #
1133
1792
  # Psych uses Psych::Parser in combination with Psych::TreeBuilder to
1134
1793
  # construct an AST of the parsed YAML document.
1794
+ #
1795
+ # source://psych//lib/psych/parser.rb#33
1135
1796
  class Psych::Parser
1136
1797
  # Creates a new Psych::Parser instance with +handler+. YAML events will
1137
1798
  # be called on +handler+. See Psych::Parser for more details.
1138
1799
  #
1139
1800
  # @return [Parser] a new instance of Parser
1140
1801
  #
1141
- # source://psych//psych/parser.rb#47
1802
+ # source://psych//lib/psych/parser.rb#47
1142
1803
  def initialize(handler = T.unsafe(nil)); end
1143
1804
 
1144
1805
  # Set the encoding for this parser to +encoding+
1145
1806
  #
1146
- # source://psych//psych/parser.rb#41
1807
+ # source://psych//lib/psych/parser.rb#41
1147
1808
  def external_encoding=(_arg0); end
1148
1809
 
1149
1810
  # The handler on which events will be called
1150
1811
  #
1151
- # source://psych//psych/parser.rb#38
1812
+ # source://psych//lib/psych/parser.rb#38
1152
1813
  def handler; end
1153
1814
 
1154
1815
  # The handler on which events will be called
1155
1816
  #
1156
- # source://psych//psych/parser.rb#38
1817
+ # source://psych//lib/psych/parser.rb#38
1157
1818
  def handler=(_arg0); end
1158
1819
 
1159
1820
  # call-seq:
@@ -1164,49 +1825,51 @@ class Psych::Parser
1164
1825
  #
1165
1826
  # See Psych::Parser and Psych::Parser#handler
1166
1827
  #
1167
- # source://psych//psych/parser.rb#61
1828
+ # source://psych//lib/psych/parser.rb#61
1168
1829
  def parse(yaml, path = T.unsafe(nil)); end
1169
1830
  end
1170
1831
 
1171
1832
  # Scan scalars for built in types
1833
+ #
1834
+ # source://psych//lib/psych/scalar_scanner.rb#6
1172
1835
  class Psych::ScalarScanner
1173
1836
  # Create a new scanner
1174
1837
  #
1175
1838
  # @return [ScalarScanner] a new instance of ScalarScanner
1176
1839
  #
1177
- # source://psych//psych/scalar_scanner.rb#30
1840
+ # source://psych//lib/psych/scalar_scanner.rb#30
1178
1841
  def initialize(class_loader, strict_integer: T.unsafe(nil)); end
1179
1842
 
1180
1843
  # Returns the value of attribute class_loader.
1181
1844
  #
1182
- # source://psych//psych/scalar_scanner.rb#27
1845
+ # source://psych//lib/psych/scalar_scanner.rb#27
1183
1846
  def class_loader; end
1184
1847
 
1185
1848
  # Parse and return an int from +string+
1186
1849
  #
1187
- # source://psych//psych/scalar_scanner.rb#109
1850
+ # source://psych//lib/psych/scalar_scanner.rb#108
1188
1851
  def parse_int(string); end
1189
1852
 
1190
1853
  # Parse and return a Time from +string+
1191
1854
  #
1192
- # source://psych//psych/scalar_scanner.rb#115
1855
+ # source://psych//lib/psych/scalar_scanner.rb#114
1193
1856
  def parse_time(string); end
1194
1857
 
1195
1858
  # Tokenize +string+ returning the Ruby object
1196
1859
  #
1197
- # source://psych//psych/scalar_scanner.rb#37
1860
+ # source://psych//lib/psych/scalar_scanner.rb#37
1198
1861
  def tokenize(string); end
1199
1862
  end
1200
1863
 
1201
1864
  # Same as above, but allows commas.
1202
1865
  # Not to YML spec, but kept for backwards compatibility
1203
1866
  #
1204
- # source://psych//psych/scalar_scanner.rb#22
1867
+ # source://psych//lib/psych/scalar_scanner.rb#22
1205
1868
  Psych::ScalarScanner::INTEGER_LEGACY = T.let(T.unsafe(nil), Regexp)
1206
1869
 
1207
- # Taken from http://yaml.org/type/int.html
1870
+ # Taken from http://yaml.org/type/int.html and modified to ensure at least one numerical symbol exists
1208
1871
  #
1209
- # source://psych//psych/scalar_scanner.rb#15
1872
+ # source://psych//lib/psych/scalar_scanner.rb#15
1210
1873
  Psych::ScalarScanner::INTEGER_STRICT = T.let(T.unsafe(nil), Regexp)
1211
1874
 
1212
1875
  # Psych::Stream is a streaming YAML emitter. It will not buffer your YAML,
@@ -1228,75 +1891,81 @@ Psych::ScalarScanner::INTEGER_STRICT = T.let(T.unsafe(nil), Regexp)
1228
1891
  # stream.start do |em|
1229
1892
  # em.push(:foo => 'bar')
1230
1893
  # end
1894
+ #
1895
+ # source://psych//lib/psych/stream.rb#24
1231
1896
  class Psych::Stream < ::Psych::Visitors::YAMLTree
1232
1897
  include ::Psych::Streaming
1233
1898
  extend ::Psych::Streaming::ClassMethods
1234
1899
  end
1235
1900
 
1901
+ # source://psych//lib/psych/stream.rb#25
1236
1902
  class Psych::Stream::Emitter < ::Psych::Emitter
1237
- # source://psych//psych/stream.rb#26
1903
+ # source://psych//lib/psych/stream.rb#26
1238
1904
  def end_document(implicit_end = T.unsafe(nil)); end
1239
1905
 
1240
1906
  # @return [Boolean]
1241
1907
  #
1242
- # source://psych//psych/stream.rb#30
1908
+ # source://psych//lib/psych/stream.rb#30
1243
1909
  def streaming?; end
1244
1910
  end
1245
1911
 
1912
+ # source://psych//lib/psych/streaming.rb#3
1246
1913
  module Psych::Streaming
1247
1914
  # Start streaming using +encoding+
1248
1915
  #
1249
- # source://psych//psych/streaming.rb#18
1916
+ # source://psych//lib/psych/streaming.rb#18
1250
1917
  def start(encoding = T.unsafe(nil)); end
1251
1918
 
1252
1919
  private
1253
1920
 
1254
- # source://psych//psych/streaming.rb#25
1921
+ # source://psych//lib/psych/streaming.rb#25
1255
1922
  def register(target, obj); end
1256
1923
  end
1257
1924
 
1925
+ # source://psych//lib/psych/streaming.rb#4
1258
1926
  module Psych::Streaming::ClassMethods
1259
1927
  # Create a new streaming emitter. Emitter will print to +io+. See
1260
1928
  # Psych::Stream for an example.
1261
1929
  #
1262
- # source://psych//psych/streaming.rb#8
1930
+ # source://psych//lib/psych/streaming.rb#8
1263
1931
  def new(io); end
1264
1932
  end
1265
1933
 
1934
+ # source://psych//lib/psych/syntax_error.rb#5
1266
1935
  class Psych::SyntaxError < ::Psych::Exception
1267
1936
  # @return [SyntaxError] a new instance of SyntaxError
1268
1937
  #
1269
- # source://psych//psych/syntax_error.rb#8
1938
+ # source://psych//lib/psych/syntax_error.rb#8
1270
1939
  def initialize(file, line, col, offset, problem, context); end
1271
1940
 
1272
1941
  # Returns the value of attribute column.
1273
1942
  #
1274
- # source://psych//psych/syntax_error.rb#6
1943
+ # source://psych//lib/psych/syntax_error.rb#6
1275
1944
  def column; end
1276
1945
 
1277
1946
  # Returns the value of attribute context.
1278
1947
  #
1279
- # source://psych//psych/syntax_error.rb#6
1948
+ # source://psych//lib/psych/syntax_error.rb#6
1280
1949
  def context; end
1281
1950
 
1282
1951
  # Returns the value of attribute file.
1283
1952
  #
1284
- # source://psych//psych/syntax_error.rb#6
1953
+ # source://psych//lib/psych/syntax_error.rb#6
1285
1954
  def file; end
1286
1955
 
1287
1956
  # Returns the value of attribute line.
1288
1957
  #
1289
- # source://psych//psych/syntax_error.rb#6
1958
+ # source://psych//lib/psych/syntax_error.rb#6
1290
1959
  def line; end
1291
1960
 
1292
1961
  # Returns the value of attribute offset.
1293
1962
  #
1294
- # source://psych//psych/syntax_error.rb#6
1963
+ # source://psych//lib/psych/syntax_error.rb#6
1295
1964
  def offset; end
1296
1965
 
1297
1966
  # Returns the value of attribute problem.
1298
1967
  #
1299
- # source://psych//psych/syntax_error.rb#6
1968
+ # source://psych//lib/psych/syntax_error.rb#6
1300
1969
  def problem; end
1301
1970
  end
1302
1971
 
@@ -1311,15 +1980,17 @@ end
1311
1980
  #
1312
1981
  # See Psych::Handler for documentation on the event methods used in this
1313
1982
  # class.
1983
+ #
1984
+ # source://psych//lib/psych/tree_builder.rb#17
1314
1985
  class Psych::TreeBuilder < ::Psych::Handler
1315
1986
  # Create a new TreeBuilder instance
1316
1987
  #
1317
1988
  # @return [TreeBuilder] a new instance of TreeBuilder
1318
1989
  #
1319
- # source://psych//psych/tree_builder.rb#22
1990
+ # source://psych//lib/psych/tree_builder.rb#22
1320
1991
  def initialize; end
1321
1992
 
1322
- # source://psych//psych/tree_builder.rb#103
1993
+ # source://psych//lib/psych/tree_builder.rb#103
1323
1994
  def alias(anchor); end
1324
1995
 
1325
1996
  # Handles end_document events with +version+, +tag_directives+,
@@ -1327,27 +1998,27 @@ class Psych::TreeBuilder < ::Psych::Handler
1327
1998
  #
1328
1999
  # See Psych::Handler#start_document
1329
2000
  #
1330
- # source://psych//psych/tree_builder.rb#77
2001
+ # source://psych//lib/psych/tree_builder.rb#77
1331
2002
  def end_document(implicit_end = T.unsafe(nil)); end
1332
2003
 
1333
- # source://psych//psych/tree_builder.rb#52
2004
+ # source://psych//lib/psych/tree_builder.rb#52
1334
2005
  def end_mapping; end
1335
2006
 
1336
- # source://psych//psych/tree_builder.rb#52
2007
+ # source://psych//lib/psych/tree_builder.rb#52
1337
2008
  def end_sequence; end
1338
2009
 
1339
- # source://psych//psych/tree_builder.rb#90
2010
+ # source://psych//lib/psych/tree_builder.rb#90
1340
2011
  def end_stream; end
1341
2012
 
1342
- # source://psych//psych/tree_builder.rb#33
2013
+ # source://psych//lib/psych/tree_builder.rb#33
1343
2014
  def event_location(start_line, start_column, end_line, end_column); end
1344
2015
 
1345
2016
  # Returns the root node for the built tree
1346
2017
  #
1347
- # source://psych//psych/tree_builder.rb#19
2018
+ # source://psych//lib/psych/tree_builder.rb#19
1348
2019
  def root; end
1349
2020
 
1350
- # source://psych//psych/tree_builder.rb#96
2021
+ # source://psych//lib/psych/tree_builder.rb#96
1351
2022
  def scalar(value, anchor, tag, plain, quoted, style); end
1352
2023
 
1353
2024
  # Handles start_document events with +version+, +tag_directives+,
@@ -1355,176 +2026,234 @@ class Psych::TreeBuilder < ::Psych::Handler
1355
2026
  #
1356
2027
  # See Psych::Handler#start_document
1357
2028
  #
1358
- # source://psych//psych/tree_builder.rb#65
2029
+ # source://psych//lib/psych/tree_builder.rb#65
1359
2030
  def start_document(version, tag_directives, implicit); end
1360
2031
 
1361
- # source://psych//psych/tree_builder.rb#45
2032
+ # source://psych//lib/psych/tree_builder.rb#45
1362
2033
  def start_mapping(anchor, tag, implicit, style); end
1363
2034
 
1364
- # source://psych//psych/tree_builder.rb#45
2035
+ # source://psych//lib/psych/tree_builder.rb#45
1365
2036
  def start_sequence(anchor, tag, implicit, style); end
1366
2037
 
1367
- # source://psych//psych/tree_builder.rb#84
2038
+ # source://psych//lib/psych/tree_builder.rb#84
1368
2039
  def start_stream(encoding); end
1369
2040
 
1370
2041
  private
1371
2042
 
1372
- # source://psych//psych/tree_builder.rb#116
2043
+ # source://psych//lib/psych/tree_builder.rb#116
1373
2044
  def pop; end
1374
2045
 
1375
- # source://psych//psych/tree_builder.rb#111
2046
+ # source://psych//lib/psych/tree_builder.rb#111
1376
2047
  def push(value); end
1377
2048
 
1378
- # source://psych//psych/tree_builder.rb#132
2049
+ # source://psych//lib/psych/tree_builder.rb#132
1379
2050
  def set_end_location(node); end
1380
2051
 
1381
- # source://psych//psych/tree_builder.rb#122
2052
+ # source://psych//lib/psych/tree_builder.rb#122
1382
2053
  def set_location(node); end
1383
2054
 
1384
- # source://psych//psych/tree_builder.rb#127
2055
+ # source://psych//lib/psych/tree_builder.rb#127
1385
2056
  def set_start_location(node); end
1386
2057
  end
1387
2058
 
1388
2059
  # The version of Psych you are using
1389
2060
  #
1390
- # source://psych//psych/versions.rb#5
2061
+ # source://psych//lib/psych/versions.rb#5
1391
2062
  Psych::VERSION = T.let(T.unsafe(nil), String)
1392
2063
 
2064
+ # source://psych//lib/psych/visitors/depth_first.rb#4
1393
2065
  class Psych::Visitors::DepthFirst < ::Psych::Visitors::Visitor
1394
2066
  # @return [DepthFirst] a new instance of DepthFirst
1395
2067
  #
1396
- # source://psych//psych/visitors/depth_first.rb#5
2068
+ # source://psych//lib/psych/visitors/depth_first.rb#5
1397
2069
  def initialize(block); end
1398
2070
 
1399
2071
  private
1400
2072
 
1401
- # source://psych//psych/visitors/depth_first.rb#11
2073
+ # source://psych//lib/psych/visitors/depth_first.rb#11
1402
2074
  def nary(o); end
1403
2075
 
1404
- # source://psych//psych/visitors/depth_first.rb#20
2076
+ # source://psych//lib/psych/visitors/depth_first.rb#20
1405
2077
  def terminal(o); end
1406
2078
 
1407
- # source://psych//psych/visitors/depth_first.rb#20
2079
+ # source://psych//lib/psych/visitors/depth_first.rb#20
1408
2080
  def visit_Psych_Nodes_Alias(o); end
1409
2081
 
1410
- # source://psych//psych/visitors/depth_first.rb#11
2082
+ # source://psych//lib/psych/visitors/depth_first.rb#11
1411
2083
  def visit_Psych_Nodes_Document(o); end
1412
2084
 
1413
- # source://psych//psych/visitors/depth_first.rb#11
2085
+ # source://psych//lib/psych/visitors/depth_first.rb#11
1414
2086
  def visit_Psych_Nodes_Mapping(o); end
1415
2087
 
1416
- # source://psych//psych/visitors/depth_first.rb#20
2088
+ # source://psych//lib/psych/visitors/depth_first.rb#20
1417
2089
  def visit_Psych_Nodes_Scalar(o); end
1418
2090
 
1419
- # source://psych//psych/visitors/depth_first.rb#11
2091
+ # source://psych//lib/psych/visitors/depth_first.rb#11
1420
2092
  def visit_Psych_Nodes_Sequence(o); end
1421
2093
 
1422
- # source://psych//psych/visitors/depth_first.rb#11
2094
+ # source://psych//lib/psych/visitors/depth_first.rb#11
1423
2095
  def visit_Psych_Nodes_Stream(o); end
1424
2096
  end
1425
2097
 
2098
+ # source://psych//lib/psych/visitors/emitter.rb#4
2099
+ class Psych::Visitors::Emitter < ::Psych::Visitors::Visitor
2100
+ # @return [Emitter] a new instance of Emitter
2101
+ #
2102
+ # source://psych//lib/psych/visitors/emitter.rb#5
2103
+ def initialize(io, options = T.unsafe(nil)); end
2104
+
2105
+ # source://psych//lib/psych/visitors/emitter.rb#47
2106
+ def visit_Psych_Nodes_Alias(o); end
2107
+
2108
+ # source://psych//lib/psych/visitors/emitter.rb#25
2109
+ def visit_Psych_Nodes_Document(o); end
2110
+
2111
+ # source://psych//lib/psych/visitors/emitter.rb#41
2112
+ def visit_Psych_Nodes_Mapping(o); end
2113
+
2114
+ # source://psych//lib/psych/visitors/emitter.rb#31
2115
+ def visit_Psych_Nodes_Scalar(o); end
2116
+
2117
+ # source://psych//lib/psych/visitors/emitter.rb#35
2118
+ def visit_Psych_Nodes_Sequence(o); end
2119
+
2120
+ # source://psych//lib/psych/visitors/emitter.rb#19
2121
+ def visit_Psych_Nodes_Stream(o); end
2122
+ end
2123
+
2124
+ # source://psych//lib/psych/visitors/json_tree.rb#6
2125
+ class Psych::Visitors::JSONTree < ::Psych::Visitors::YAMLTree
2126
+ include ::Psych::JSON::RubyEvents
2127
+
2128
+ # source://psych//lib/psych/visitors/json_tree.rb#16
2129
+ def accept(target); end
2130
+
2131
+ class << self
2132
+ # source://psych//lib/psych/visitors/json_tree.rb#9
2133
+ def create(options = T.unsafe(nil)); end
2134
+ end
2135
+ end
2136
+
2137
+ # source://psych//lib/psych/visitors/to_ruby.rb#469
2138
+ class Psych::Visitors::NoAliasRuby < ::Psych::Visitors::ToRuby
2139
+ # @raise [AliasesNotEnabled]
2140
+ #
2141
+ # source://psych//lib/psych/visitors/to_ruby.rb#470
2142
+ def visit_Psych_Nodes_Alias(o); end
2143
+ end
2144
+
2145
+ # source://psych//lib/psych/visitors/yaml_tree.rb#580
1426
2146
  class Psych::Visitors::RestrictedYAMLTree < ::Psych::Visitors::YAMLTree
1427
2147
  # @return [RestrictedYAMLTree] a new instance of RestrictedYAMLTree
1428
2148
  #
1429
- # source://psych//psych/visitors/yaml_tree.rb#552
2149
+ # source://psych//lib/psych/visitors/yaml_tree.rb#592
1430
2150
  def initialize(emitter, ss, options); end
1431
2151
 
1432
- # source://psych//psych/visitors/yaml_tree.rb#565
2152
+ # source://psych//lib/psych/visitors/yaml_tree.rb#605
1433
2153
  def accept(target); end
1434
2154
 
1435
- # source://psych//psych/visitors/yaml_tree.rb#577
2155
+ # source://psych//lib/psych/visitors/yaml_tree.rb#617
1436
2156
  def visit_Symbol(sym); end
1437
2157
  end
1438
2158
 
1439
- # source://psych//psych/visitors/yaml_tree.rb#541
2159
+ # source://psych//lib/psych/visitors/yaml_tree.rb#581
1440
2160
  Psych::Visitors::RestrictedYAMLTree::DEFAULT_PERMITTED_CLASSES = T.let(T.unsafe(nil), Hash)
1441
2161
 
1442
2162
  # This class walks a YAML AST, converting each node to Ruby
2163
+ #
2164
+ # source://psych//lib/psych/visitors/to_ruby.rb#14
1443
2165
  class Psych::Visitors::ToRuby < ::Psych::Visitors::Visitor
1444
2166
  # @return [ToRuby] a new instance of ToRuby
1445
2167
  #
1446
- # source://psych//psych/visitors/to_ruby.rb#23
2168
+ # source://psych//lib/psych/visitors/to_ruby.rb#23
1447
2169
  def initialize(ss, class_loader, symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil)); end
1448
2170
 
1449
- # source://psych//psych/visitors/to_ruby.rb#34
2171
+ # source://psych//lib/psych/visitors/to_ruby.rb#34
1450
2172
  def accept(target); end
1451
2173
 
1452
2174
  # Returns the value of attribute class_loader.
1453
2175
  #
1454
- # source://psych//psych/visitors/to_ruby.rb#21
2176
+ # source://psych//lib/psych/visitors/to_ruby.rb#21
1455
2177
  def class_loader; end
1456
2178
 
1457
- # source://psych//psych/visitors/to_ruby.rb#327
2179
+ # source://psych//lib/psych/visitors/to_ruby.rb#352
1458
2180
  def visit_Psych_Nodes_Alias(o); end
1459
2181
 
1460
- # source://psych//psych/visitors/to_ruby.rb#319
2182
+ # source://psych//lib/psych/visitors/to_ruby.rb#344
1461
2183
  def visit_Psych_Nodes_Document(o); end
1462
2184
 
1463
- # source://psych//psych/visitors/to_ruby.rb#165
2185
+ # source://psych//lib/psych/visitors/to_ruby.rb#164
1464
2186
  def visit_Psych_Nodes_Mapping(o); end
1465
2187
 
1466
- # source://psych//psych/visitors/to_ruby.rb#129
2188
+ # source://psych//lib/psych/visitors/to_ruby.rb#128
1467
2189
  def visit_Psych_Nodes_Scalar(o); end
1468
2190
 
1469
- # source://psych//psych/visitors/to_ruby.rb#133
2191
+ # source://psych//lib/psych/visitors/to_ruby.rb#132
1470
2192
  def visit_Psych_Nodes_Sequence(o); end
1471
2193
 
1472
- # source://psych//psych/visitors/to_ruby.rb#323
2194
+ # source://psych//lib/psych/visitors/to_ruby.rb#348
1473
2195
  def visit_Psych_Nodes_Stream(o); end
1474
2196
 
1475
2197
  private
1476
2198
 
1477
- # source://psych//psych/visitors/to_ruby.rb#395
2199
+ # source://psych//lib/psych/visitors/to_ruby.rb#369
2200
+ def allocate_anon_data(node, members); end
2201
+
2202
+ # source://psych//lib/psych/visitors/to_ruby.rb#434
1478
2203
  def deduplicate(key); end
1479
2204
 
1480
- # source://psych//psych/visitors/to_ruby.rb#51
2205
+ # source://psych//lib/psych/visitors/to_ruby.rb#51
1481
2206
  def deserialize(o); end
1482
2207
 
1483
- # source://psych//psych/visitors/to_ruby.rb#412
2208
+ # source://psych//lib/psych/visitors/to_ruby.rb#451
1484
2209
  def init_with(o, h, node); end
1485
2210
 
1486
- # source://psych//psych/visitors/to_ruby.rb#404
2211
+ # source://psych//lib/psych/visitors/to_ruby.rb#443
1487
2212
  def merge_key(hash, key, val); end
1488
2213
 
1489
- # source://psych//psych/visitors/to_ruby.rb#333
2214
+ # source://psych//lib/psych/visitors/to_ruby.rb#358
1490
2215
  def register(node, object); end
1491
2216
 
1492
- # source://psych//psych/visitors/to_ruby.rb#338
2217
+ # source://psych//lib/psych/visitors/to_ruby.rb#363
1493
2218
  def register_empty(object); end
1494
2219
 
1495
2220
  # Convert +klassname+ to a Class
1496
2221
  #
1497
- # source://psych//psych/visitors/to_ruby.rb#425
2222
+ # source://psych//lib/psych/visitors/to_ruby.rb#464
1498
2223
  def resolve_class(klassname); end
1499
2224
 
1500
- # source://psych//psych/visitors/to_ruby.rb#407
2225
+ # source://psych//lib/psych/visitors/to_ruby.rb#446
1501
2226
  def revive(klass, node); end
1502
2227
 
1503
- # source://psych//psych/visitors/to_ruby.rb#344
2228
+ # source://psych//lib/psych/visitors/to_ruby.rb#374
2229
+ def revive_data_members(hash, o); end
2230
+
2231
+ # source://psych//lib/psych/visitors/to_ruby.rb#383
1504
2232
  def revive_hash(hash, o, tagged = T.unsafe(nil)); end
1505
2233
 
1506
2234
  class << self
1507
- # source://psych//psych/visitors/to_ruby.rb#15
2235
+ # source://psych//lib/psych/visitors/to_ruby.rb#15
1508
2236
  def create(symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end
1509
2237
  end
1510
2238
  end
1511
2239
 
2240
+ # source://psych//lib/psych/visitors/visitor.rb#4
1512
2241
  class Psych::Visitors::Visitor
1513
- # source://psych//psych/visitors/visitor.rb#5
2242
+ # source://psych//lib/psych/visitors/visitor.rb#5
1514
2243
  def accept(target); end
1515
2244
 
1516
2245
  private
1517
2246
 
1518
- # source://psych//psych/visitors/visitor.rb#19
2247
+ # source://psych//lib/psych/visitors/visitor.rb#19
1519
2248
  def dispatch; end
1520
2249
 
1521
- # source://psych//psych/visitors/visitor.rb#29
2250
+ # source://psych//lib/psych/visitors/visitor.rb#29
1522
2251
  def visit(target); end
1523
2252
 
1524
2253
  class << self
1525
2254
  # @api private
1526
2255
  #
1527
- # source://psych//psych/visitors/visitor.rb#12
2256
+ # source://psych//lib/psych/visitors/visitor.rb#12
1528
2257
  def dispatch_cache; end
1529
2258
  end
1530
2259
  end
@@ -1534,198 +2263,207 @@ end
1534
2263
  # builder = Psych::Visitors::YAMLTree.new
1535
2264
  # builder << { :foo => 'bar' }
1536
2265
  # builder.tree # => #<Psych::Nodes::Stream .. }
2266
+ #
2267
+ # source://psych//lib/psych/visitors/yaml_tree.rb#15
1537
2268
  class Psych::Visitors::YAMLTree < ::Psych::Visitors::Visitor
1538
2269
  # @return [YAMLTree] a new instance of YAMLTree
1539
2270
  #
1540
- # source://psych//psych/visitors/yaml_tree.rb#55
2271
+ # source://psych//lib/psych/visitors/yaml_tree.rb#51
1541
2272
  def initialize(emitter, ss, options); end
1542
2273
 
1543
- # source://psych//psych/visitors/yaml_tree.rb#102
2274
+ # source://psych//lib/psych/visitors/yaml_tree.rb#99
1544
2275
  def <<(object); end
1545
2276
 
1546
- # source://psych//psych/visitors/yaml_tree.rb#122
2277
+ # source://psych//lib/psych/visitors/yaml_tree.rb#119
1547
2278
  def accept(target); end
1548
2279
 
1549
- # source://psych//psych/visitors/yaml_tree.rb#91
2280
+ # source://psych//lib/psych/visitors/yaml_tree.rb#88
1550
2281
  def finish; end
1551
2282
 
1552
2283
  # Returns the value of attribute finished.
1553
2284
  #
1554
- # source://psych//psych/visitors/yaml_tree.rb#44
2285
+ # source://psych//lib/psych/visitors/yaml_tree.rb#40
1555
2286
  def finished; end
1556
2287
 
1557
2288
  # Returns the value of attribute finished.
1558
2289
  #
1559
- # source://psych//psych/visitors/yaml_tree.rb#44
2290
+ # source://psych//lib/psych/visitors/yaml_tree.rb#40
1560
2291
  def finished?; end
1561
2292
 
1562
- # source://psych//psych/visitors/yaml_tree.rb#102
2293
+ # source://psych//lib/psych/visitors/yaml_tree.rb#99
1563
2294
  def push(object); end
1564
2295
 
1565
- # source://psych//psych/visitors/yaml_tree.rb#85
2296
+ # source://psych//lib/psych/visitors/yaml_tree.rb#82
1566
2297
  def start(encoding = T.unsafe(nil)); end
1567
2298
 
1568
2299
  # Returns the value of attribute started.
1569
2300
  #
1570
- # source://psych//psych/visitors/yaml_tree.rb#44
2301
+ # source://psych//lib/psych/visitors/yaml_tree.rb#40
1571
2302
  def started; end
1572
2303
 
1573
2304
  # Returns the value of attribute started.
1574
2305
  #
1575
- # source://psych//psych/visitors/yaml_tree.rb#44
2306
+ # source://psych//lib/psych/visitors/yaml_tree.rb#40
1576
2307
  def started?; end
1577
2308
 
1578
- # source://psych//psych/visitors/yaml_tree.rb#97
2309
+ # source://psych//lib/psych/visitors/yaml_tree.rb#94
1579
2310
  def tree; end
1580
2311
 
1581
- # source://psych//psych/visitors/yaml_tree.rb#350
2312
+ # source://psych//lib/psych/visitors/yaml_tree.rb#386
1582
2313
  def visit_Array(o); end
1583
2314
 
1584
- # source://psych//psych/visitors/yaml_tree.rb#376
2315
+ # source://psych//lib/psych/visitors/yaml_tree.rb#412
1585
2316
  def visit_BasicObject(o); end
1586
2317
 
1587
- # source://psych//psych/visitors/yaml_tree.rb#250
2318
+ # source://psych//lib/psych/visitors/yaml_tree.rb#286
1588
2319
  def visit_BigDecimal(o); end
1589
2320
 
1590
2321
  # @raise [TypeError]
1591
2322
  #
1592
- # source://psych//psych/visitors/yaml_tree.rb#313
2323
+ # source://psych//lib/psych/visitors/yaml_tree.rb#349
1593
2324
  def visit_Class(o); end
1594
2325
 
1595
- # source://psych//psych/visitors/yaml_tree.rb#223
2326
+ # source://psych//lib/psych/visitors/yaml_tree.rb#259
1596
2327
  def visit_Complex(o); end
1597
2328
 
1598
- # source://psych//psych/visitors/yaml_tree.rb#194
2329
+ # source://psych//lib/psych/visitors/yaml_tree.rb#165
2330
+ def visit_Data(o); end
2331
+
2332
+ # source://psych//lib/psych/visitors/yaml_tree.rb#229
1599
2333
  def visit_Date(o); end
1600
2334
 
1601
- # source://psych//psych/visitors/yaml_tree.rb#198
2335
+ # source://psych//lib/psych/visitors/yaml_tree.rb#234
1602
2336
  def visit_DateTime(o); end
1603
2337
 
1604
- # source://psych//psych/visitors/yaml_tree.rb#152
2338
+ # source://psych//lib/psych/visitors/yaml_tree.rb#149
1605
2339
  def visit_Delegator(o); end
1606
2340
 
1607
- # source://psych//psych/visitors/yaml_tree.rb#147
2341
+ # source://psych//lib/psych/visitors/yaml_tree.rb#144
1608
2342
  def visit_Encoding(o); end
1609
2343
 
1610
- # source://psych//psych/visitors/yaml_tree.rb#358
2344
+ # source://psych//lib/psych/visitors/yaml_tree.rb#394
1611
2345
  def visit_Enumerator(o); end
1612
2346
 
1613
- # source://psych//psych/visitors/yaml_tree.rb#182
2347
+ # source://psych//lib/psych/visitors/yaml_tree.rb#217
1614
2348
  def visit_Exception(o); end
1615
2349
 
1616
- # source://psych//psych/visitors/yaml_tree.rb#233
2350
+ # source://psych//lib/psych/visitors/yaml_tree.rb#269
1617
2351
  def visit_FalseClass(o); end
1618
2352
 
1619
- # source://psych//psych/visitors/yaml_tree.rb#239
2353
+ # source://psych//lib/psych/visitors/yaml_tree.rb#275
1620
2354
  def visit_Float(o); end
1621
2355
 
1622
- # source://psych//psych/visitors/yaml_tree.rb#326
2356
+ # source://psych//lib/psych/visitors/yaml_tree.rb#362
1623
2357
  def visit_Hash(o); end
1624
2358
 
1625
- # source://psych//psych/visitors/yaml_tree.rb#233
2359
+ # source://psych//lib/psych/visitors/yaml_tree.rb#269
1626
2360
  def visit_Integer(o); end
1627
2361
 
1628
2362
  # @raise [TypeError]
1629
2363
  #
1630
- # source://psych//psych/visitors/yaml_tree.rb#308
2364
+ # source://psych//lib/psych/visitors/yaml_tree.rb#344
1631
2365
  def visit_Module(o); end
1632
2366
 
1633
- # source://psych//psych/visitors/yaml_tree.rb#186
2367
+ # source://psych//lib/psych/visitors/yaml_tree.rb#221
1634
2368
  def visit_NameError(o); end
1635
2369
 
1636
- # source://psych//psych/visitors/yaml_tree.rb#364
2370
+ # source://psych//lib/psych/visitors/yaml_tree.rb#400
1637
2371
  def visit_NilClass(o); end
1638
2372
 
1639
- # source://psych//psych/visitors/yaml_tree.rb#152
2373
+ # source://psych//lib/psych/visitors/yaml_tree.rb#149
1640
2374
  def visit_Object(o); end
1641
2375
 
1642
- # source://psych//psych/visitors/yaml_tree.rb#139
2376
+ # source://psych//lib/psych/visitors/yaml_tree.rb#136
1643
2377
  def visit_Psych_Omap(o); end
1644
2378
 
1645
- # source://psych//psych/visitors/yaml_tree.rb#339
2379
+ # source://psych//lib/psych/visitors/yaml_tree.rb#375
1646
2380
  def visit_Psych_Set(o); end
1647
2381
 
1648
- # source://psych//psych/visitors/yaml_tree.rb#318
2382
+ # source://psych//lib/psych/visitors/yaml_tree.rb#354
1649
2383
  def visit_Range(o); end
1650
2384
 
1651
- # source://psych//psych/visitors/yaml_tree.rb#210
2385
+ # source://psych//lib/psych/visitors/yaml_tree.rb#246
1652
2386
  def visit_Rational(o); end
1653
2387
 
1654
- # source://psych//psych/visitors/yaml_tree.rb#190
2388
+ # source://psych//lib/psych/visitors/yaml_tree.rb#225
1655
2389
  def visit_Regexp(o); end
1656
2390
 
1657
- # source://psych//psych/visitors/yaml_tree.rb#254
2391
+ # source://psych//lib/psych/visitors/yaml_tree.rb#290
1658
2392
  def visit_String(o); end
1659
2393
 
1660
- # source://psych//psych/visitors/yaml_tree.rb#168
2394
+ # source://psych//lib/psych/visitors/yaml_tree.rb#203
1661
2395
  def visit_Struct(o); end
1662
2396
 
1663
- # source://psych//psych/visitors/yaml_tree.rb#368
2397
+ # source://psych//lib/psych/visitors/yaml_tree.rb#404
1664
2398
  def visit_Symbol(o); end
1665
2399
 
1666
- # source://psych//psych/visitors/yaml_tree.rb#205
2400
+ # source://psych//lib/psych/visitors/yaml_tree.rb#241
1667
2401
  def visit_Time(o); end
1668
2402
 
1669
- # source://psych//psych/visitors/yaml_tree.rb#233
2403
+ # source://psych//lib/psych/visitors/yaml_tree.rb#269
1670
2404
  def visit_TrueClass(o); end
1671
2405
 
1672
2406
  private
1673
2407
 
1674
2408
  # @return [Boolean]
1675
2409
  #
1676
- # source://psych//psych/visitors/yaml_tree.rb#390
2410
+ # source://psych//lib/psych/visitors/yaml_tree.rb#426
1677
2411
  def binary?(string); end
1678
2412
 
1679
- # source://psych//psych/visitors/yaml_tree.rb#497
2413
+ # source://psych//lib/psych/visitors/yaml_tree.rb#537
1680
2414
  def dump_coder(o); end
1681
2415
 
1682
- # source://psych//psych/visitors/yaml_tree.rb#466
2416
+ # source://psych//lib/psych/visitors/yaml_tree.rb#502
1683
2417
  def dump_exception(o, msg); end
1684
2418
 
1685
- # source://psych//psych/visitors/yaml_tree.rb#532
2419
+ # source://psych//lib/psych/visitors/yaml_tree.rb#572
1686
2420
  def dump_ivars(target); end
1687
2421
 
1688
- # source://psych//psych/visitors/yaml_tree.rb#463
2422
+ # source://psych//lib/psych/visitors/yaml_tree.rb#499
1689
2423
  def dump_list(o); end
1690
2424
 
1691
- # source://psych//psych/visitors/yaml_tree.rb#510
2425
+ # source://psych//lib/psych/visitors/yaml_tree.rb#550
1692
2426
  def emit_coder(c, o); end
1693
2427
 
1694
- # source://psych//psych/visitors/yaml_tree.rb#484
2428
+ # source://psych//lib/psych/visitors/yaml_tree.rb#528
2429
+ def format_date(date); end
2430
+
2431
+ # source://psych//lib/psych/visitors/yaml_tree.rb#520
1695
2432
  def format_time(time, utc = T.unsafe(nil)); end
1696
2433
 
1697
- # source://psych//psych/visitors/yaml_tree.rb#492
2434
+ # source://psych//lib/psych/visitors/yaml_tree.rb#532
1698
2435
  def register(target, yaml_obj); end
1699
2436
 
1700
- # source://psych//psych/visitors/yaml_tree.rb#394
2437
+ # source://psych//lib/psych/visitors/yaml_tree.rb#430
1701
2438
  def visit_array_subclass(o); end
1702
2439
 
1703
- # source://psych//psych/visitors/yaml_tree.rb#425
2440
+ # source://psych//lib/psych/visitors/yaml_tree.rb#461
1704
2441
  def visit_hash_subclass(o); end
1705
2442
 
1706
2443
  class << self
1707
- # source://psych//psych/visitors/yaml_tree.rb#48
2444
+ # source://psych//lib/psych/visitors/yaml_tree.rb#44
1708
2445
  def create(options = T.unsafe(nil), emitter = T.unsafe(nil)); end
1709
2446
  end
1710
2447
  end
1711
2448
 
2449
+ # source://psych//lib/psych/visitors/yaml_tree.rb#16
1712
2450
  class Psych::Visitors::YAMLTree::Registrar
1713
2451
  # @return [Registrar] a new instance of Registrar
1714
2452
  #
1715
- # source://psych//psych/visitors/yaml_tree.rb#17
2453
+ # source://psych//lib/psych/visitors/yaml_tree.rb#17
1716
2454
  def initialize; end
1717
2455
 
1718
- # source://psych//psych/visitors/yaml_tree.rb#35
2456
+ # source://psych//lib/psych/visitors/yaml_tree.rb#31
1719
2457
  def id_for(target); end
1720
2458
 
1721
2459
  # @return [Boolean]
1722
2460
  #
1723
- # source://psych//psych/visitors/yaml_tree.rb#29
2461
+ # source://psych//lib/psych/visitors/yaml_tree.rb#27
1724
2462
  def key?(target); end
1725
2463
 
1726
- # source://psych//psych/visitors/yaml_tree.rb#39
2464
+ # source://psych//lib/psych/visitors/yaml_tree.rb#35
1727
2465
  def node_for(target); end
1728
2466
 
1729
- # source://psych//psych/visitors/yaml_tree.rb#24
2467
+ # source://psych//lib/psych/visitors/yaml_tree.rb#23
1730
2468
  def register(target, node); end
1731
2469
  end