sorbet-schema 0.7.0 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/CHANGELOG.md +14 -0
- data/Gemfile.lock +20 -20
- data/lib/sorbet-schema/version.rb +1 -1
- data/lib/typed/coercion/coercer_registry.rb +1 -0
- data/lib/typed/coercion/coercion_not_supported_error.rb +8 -1
- data/lib/typed/coercion/date_time_coercer.rb +29 -0
- data/lib/typed/coercion.rb +3 -3
- data/sorbet/rbi/gems/minitest-focus@1.4.0.rbi +13 -13
- data/sorbet/rbi/gems/minitest-reporters@1.7.1.rbi +27 -27
- data/sorbet/rbi/gems/psych@5.1.2.rbi +267 -230
- data/sorbet/rbi/gems/{rexml@3.3.0.rbi → rexml@3.3.1.rbi} +140 -128
- data/sorbet/rbi/gems/rubocop@1.64.1.rbi +2 -2
- data/sorbet/rbi/gems/sorbet-result@1.1.0.rbi +85 -82
- data/sorbet/rbi/gems/{standard@1.39.0.rbi → standard@1.39.1.rbi} +12 -9
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +35 -29
- data/sorbet/tapioca/config.yml +3 -0
- metadata +8 -11
- data/.tool-versions +0 -1
- data/sorbet/rbi/gems/rbi@0.1.13.rbi +0 -3078
- data/sorbet/rbi/gems/spoom@1.3.2.rbi +0 -4421
- data/sorbet/rbi/gems/tapioca@0.14.4.rbi +0 -3547
- /data/sorbet/rbi/gems/{minitest@5.24.0.rbi → minitest@5.24.1.rbi} +0 -0
@@ -5,6 +5,7 @@
|
|
5
5
|
# Please instead update this file by running `bin/tapioca gem psych`.
|
6
6
|
|
7
7
|
|
8
|
+
# source://psych//lib/psych/core_ext.rb#2
|
8
9
|
class Object < ::BasicObject
|
9
10
|
include ::Kernel
|
10
11
|
include ::PP::ObjectMixin
|
@@ -14,11 +15,11 @@ class Object < ::BasicObject
|
|
14
15
|
# Convert an object to YAML. See Psych.dump for more information on the
|
15
16
|
# available +options+.
|
16
17
|
#
|
17
|
-
# source://psych//psych/core_ext.rb#12
|
18
|
+
# source://psych//lib/psych/core_ext.rb#12
|
18
19
|
def to_yaml(options = T.unsafe(nil)); end
|
19
20
|
|
20
21
|
class << self
|
21
|
-
# source://psych//psych/core_ext.rb#3
|
22
|
+
# source://psych//lib/psych/core_ext.rb#3
|
22
23
|
def yaml_tag(url); end
|
23
24
|
end
|
24
25
|
end
|
@@ -224,26 +225,28 @@ end
|
|
224
225
|
# # You can instantiate an Emitter manually
|
225
226
|
# Psych::Visitors::ToRuby.new.accept(parser.handler.root.first)
|
226
227
|
# # => "a"
|
228
|
+
#
|
229
|
+
# source://psych//lib/psych/versions.rb#3
|
227
230
|
module Psych
|
228
231
|
class << self
|
229
|
-
# source://psych//psych.rb#682
|
232
|
+
# source://psych//lib/psych.rb#682
|
230
233
|
def add_builtin_type(type_tag, &block); end
|
231
234
|
|
232
235
|
# :stopdoc:
|
233
236
|
#
|
234
|
-
# source://psych//psych.rb#676
|
237
|
+
# source://psych//lib/psych.rb#676
|
235
238
|
def add_domain_type(domain, type_tag, &block); end
|
236
239
|
|
237
|
-
# source://psych//psych.rb#692
|
240
|
+
# source://psych//lib/psych.rb#692
|
238
241
|
def add_tag(tag, klass); end
|
239
242
|
|
240
|
-
# source://psych//psych.rb#708
|
243
|
+
# source://psych//lib/psych.rb#708
|
241
244
|
def config; end
|
242
245
|
|
243
|
-
# source://psych//psych.rb#720
|
246
|
+
# source://psych//lib/psych.rb#720
|
244
247
|
def domain_types; end
|
245
248
|
|
246
|
-
# source://psych//psych.rb#732
|
249
|
+
# source://psych//lib/psych.rb#732
|
247
250
|
def domain_types=(value); end
|
248
251
|
|
249
252
|
# call-seq:
|
@@ -288,7 +291,7 @@ module Psych
|
|
288
291
|
# # Dump an array to an IO with indentation set
|
289
292
|
# Psych.dump(['a', ['b']], StringIO.new, indentation: 3)
|
290
293
|
#
|
291
|
-
# source://psych//psych.rb#505
|
294
|
+
# source://psych//lib/psych.rb#505
|
292
295
|
def dump(o, io = T.unsafe(nil), options = T.unsafe(nil)); end
|
293
296
|
|
294
297
|
# Dump a list of objects as separate documents to a document stream.
|
@@ -297,13 +300,13 @@ module Psych
|
|
297
300
|
#
|
298
301
|
# Psych.dump_stream("foo\n ", {}) # => "--- ! \"foo\\n \"\n--- {}\n"
|
299
302
|
#
|
300
|
-
# source://psych//psych.rb#595
|
303
|
+
# source://psych//lib/psych.rb#595
|
301
304
|
def dump_stream(*objects); end
|
302
305
|
|
303
|
-
# source://psych//psych.rb#716
|
306
|
+
# source://psych//lib/psych.rb#716
|
304
307
|
def dump_tags; end
|
305
308
|
|
306
|
-
# source://psych//psych.rb#728
|
309
|
+
# source://psych//lib/psych.rb#728
|
307
310
|
def dump_tags=(value); end
|
308
311
|
|
309
312
|
# Load +yaml+ in to a Ruby data structure. If multiple documents are
|
@@ -335,7 +338,7 @@ module Psych
|
|
335
338
|
# Raises a TypeError when `yaml` parameter is NilClass. This method is
|
336
339
|
# similar to `safe_load` except that `Symbol` objects are allowed by default.
|
337
340
|
#
|
338
|
-
# source://psych//psych.rb#368
|
341
|
+
# source://psych//lib/psych.rb#368
|
339
342
|
def load(yaml, permitted_classes: T.unsafe(nil), permitted_symbols: T.unsafe(nil), aliases: T.unsafe(nil), filename: T.unsafe(nil), fallback: T.unsafe(nil), symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end
|
340
343
|
|
341
344
|
# Loads the document contained in +filename+. Returns the yaml contained in
|
@@ -343,7 +346,7 @@ module Psych
|
|
343
346
|
# the specified +fallback+ return value, which defaults to +false+.
|
344
347
|
# See load for options.
|
345
348
|
#
|
346
|
-
# source://psych//psych.rb#669
|
349
|
+
# source://psych//lib/psych.rb#669
|
347
350
|
def load_file(filename, **kwargs); end
|
348
351
|
|
349
352
|
# Load multiple documents given in +yaml+. Returns the parsed documents
|
@@ -360,13 +363,13 @@ module Psych
|
|
360
363
|
# end
|
361
364
|
# list # => ['foo', 'bar']
|
362
365
|
#
|
363
|
-
# source://psych//psych.rb#626
|
366
|
+
# source://psych//lib/psych.rb#626
|
364
367
|
def load_stream(yaml, filename: T.unsafe(nil), fallback: T.unsafe(nil), **kwargs); end
|
365
368
|
|
366
|
-
# source://psych//psych.rb#712
|
369
|
+
# source://psych//lib/psych.rb#712
|
367
370
|
def load_tags; end
|
368
371
|
|
369
|
-
# source://psych//psych.rb#724
|
372
|
+
# source://psych//lib/psych.rb#724
|
370
373
|
def load_tags=(value); end
|
371
374
|
|
372
375
|
# Parse a YAML string in +yaml+. Returns the Psych::Nodes::Document.
|
@@ -388,14 +391,14 @@ module Psych
|
|
388
391
|
#
|
389
392
|
# See Psych::Nodes for more information about YAML AST.
|
390
393
|
#
|
391
|
-
# source://psych//psych.rb#398
|
394
|
+
# source://psych//lib/psych.rb#398
|
392
395
|
def parse(yaml, filename: T.unsafe(nil)); end
|
393
396
|
|
394
397
|
# Parse a file at +filename+. Returns the Psych::Nodes::Document.
|
395
398
|
#
|
396
399
|
# Raises a Psych::SyntaxError when a YAML syntax error is detected.
|
397
400
|
#
|
398
|
-
# source://psych//psych.rb#410
|
401
|
+
# source://psych//lib/psych.rb#410
|
399
402
|
def parse_file(filename, fallback: T.unsafe(nil)); end
|
400
403
|
|
401
404
|
# Parse a YAML string in +yaml+. Returns the Psych::Nodes::Stream.
|
@@ -427,15 +430,15 @@ module Psych
|
|
427
430
|
#
|
428
431
|
# See Psych::Nodes for more information about YAML AST.
|
429
432
|
#
|
430
|
-
# source://psych//psych.rb#452
|
433
|
+
# source://psych//lib/psych.rb#452
|
431
434
|
def parse_stream(yaml, filename: T.unsafe(nil), &block); end
|
432
435
|
|
433
436
|
# Returns a default parser
|
434
437
|
#
|
435
|
-
# source://psych//psych.rb#419
|
438
|
+
# source://psych//lib/psych.rb#419
|
436
439
|
def parser; end
|
437
440
|
|
438
|
-
# source://psych//psych.rb#688
|
441
|
+
# source://psych//lib/psych.rb#688
|
439
442
|
def remove_type(type_tag); end
|
440
443
|
|
441
444
|
# call-seq:
|
@@ -500,7 +503,7 @@ module Psych
|
|
500
503
|
# # Dump an array to an IO with indentation set
|
501
504
|
# Psych.safe_dump(['a', ['b']], StringIO.new, indentation: 3)
|
502
505
|
#
|
503
|
-
# source://psych//psych.rb#578
|
506
|
+
# source://psych//lib/psych.rb#578
|
504
507
|
def safe_dump(o, io = T.unsafe(nil), options = T.unsafe(nil)); end
|
505
508
|
|
506
509
|
# Safely load the yaml string in +yaml+. By default, only the following
|
@@ -547,7 +550,7 @@ module Psych
|
|
547
550
|
# Psych.safe_load("---\n foo: bar") # => {"foo"=>"bar"}
|
548
551
|
# Psych.safe_load("---\n foo: bar", symbolize_names: true) # => {:foo=>"bar"}
|
549
552
|
#
|
550
|
-
# source://psych//psych.rb#322
|
553
|
+
# source://psych//lib/psych.rb#322
|
551
554
|
def safe_load(yaml, permitted_classes: T.unsafe(nil), permitted_symbols: T.unsafe(nil), aliases: T.unsafe(nil), filename: T.unsafe(nil), fallback: T.unsafe(nil), symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end
|
552
555
|
|
553
556
|
# Safely loads the document contained in +filename+. Returns the yaml contained in
|
@@ -555,12 +558,12 @@ module Psych
|
|
555
558
|
# the specified +fallback+ return value, which defaults to +false+.
|
556
559
|
# See safe_load for options.
|
557
560
|
#
|
558
|
-
# source://psych//psych.rb#658
|
561
|
+
# source://psych//lib/psych.rb#658
|
559
562
|
def safe_load_file(filename, **kwargs); end
|
560
563
|
|
561
564
|
# Dump Ruby +object+ to a JSON string.
|
562
565
|
#
|
563
|
-
# source://psych//psych.rb#605
|
566
|
+
# source://psych//lib/psych.rb#605
|
564
567
|
def to_json(object); end
|
565
568
|
|
566
569
|
# Load +yaml+ in to a Ruby data structure. If multiple documents are
|
@@ -595,7 +598,7 @@ module Psych
|
|
595
598
|
# YAML documents that are supplied via user input. Instead, please use the
|
596
599
|
# load method or the safe_load method.
|
597
600
|
#
|
598
|
-
# source://psych//psych.rb#271
|
601
|
+
# source://psych//lib/psych.rb#271
|
599
602
|
def unsafe_load(yaml, filename: T.unsafe(nil), fallback: T.unsafe(nil), symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end
|
600
603
|
|
601
604
|
# Load the document contained in +filename+. Returns the yaml contained in
|
@@ -606,99 +609,105 @@ module Psych
|
|
606
609
|
# YAML documents that are supplied via user input. Instead, please use the
|
607
610
|
# safe_load_file method.
|
608
611
|
#
|
609
|
-
# source://psych//psych.rb#647
|
612
|
+
# source://psych//lib/psych.rb#647
|
610
613
|
def unsafe_load_file(filename, **kwargs); end
|
611
614
|
end
|
612
615
|
end
|
613
616
|
|
614
617
|
# Subclasses `BadAlias` for backwards compatibility
|
618
|
+
#
|
619
|
+
# source://psych//lib/psych/exception.rb#10
|
615
620
|
class Psych::AliasesNotEnabled < ::Psych::BadAlias
|
616
621
|
# @return [AliasesNotEnabled] a new instance of AliasesNotEnabled
|
617
622
|
#
|
618
|
-
# source://psych//psych/exception.rb#11
|
623
|
+
# source://psych//lib/psych/exception.rb#11
|
619
624
|
def initialize; end
|
620
625
|
end
|
621
626
|
|
622
627
|
# Subclasses `BadAlias` for backwards compatibility
|
628
|
+
#
|
629
|
+
# source://psych//lib/psych/exception.rb#17
|
623
630
|
class Psych::AnchorNotDefined < ::Psych::BadAlias
|
624
631
|
# @return [AnchorNotDefined] a new instance of AnchorNotDefined
|
625
632
|
#
|
626
|
-
# source://psych//psych/exception.rb#18
|
633
|
+
# source://psych//lib/psych/exception.rb#18
|
627
634
|
def initialize(anchor_name); end
|
628
635
|
end
|
629
636
|
|
637
|
+
# source://psych//lib/psych/class_loader.rb#6
|
630
638
|
class Psych::ClassLoader
|
631
639
|
# @return [ClassLoader] a new instance of ClassLoader
|
632
640
|
#
|
633
|
-
# source://psych//psych/class_loader.rb#21
|
641
|
+
# source://psych//lib/psych/class_loader.rb#21
|
634
642
|
def initialize; end
|
635
643
|
|
636
|
-
# source://psych//psych/class_loader.rb#39
|
644
|
+
# source://psych//lib/psych/class_loader.rb#39
|
637
645
|
def big_decimal; end
|
638
646
|
|
639
|
-
# source://psych//psych/class_loader.rb#39
|
647
|
+
# source://psych//lib/psych/class_loader.rb#39
|
640
648
|
def complex; end
|
641
649
|
|
642
|
-
# source://psych//psych/class_loader.rb#39
|
650
|
+
# source://psych//lib/psych/class_loader.rb#39
|
643
651
|
def date; end
|
644
652
|
|
645
|
-
# source://psych//psych/class_loader.rb#39
|
653
|
+
# source://psych//lib/psych/class_loader.rb#39
|
646
654
|
def date_time; end
|
647
655
|
|
648
|
-
# source://psych//psych/class_loader.rb#39
|
656
|
+
# source://psych//lib/psych/class_loader.rb#39
|
649
657
|
def exception; end
|
650
658
|
|
651
|
-
# source://psych//psych/class_loader.rb#25
|
659
|
+
# source://psych//lib/psych/class_loader.rb#25
|
652
660
|
def load(klassname); end
|
653
661
|
|
654
|
-
# source://psych//psych/class_loader.rb#39
|
662
|
+
# source://psych//lib/psych/class_loader.rb#39
|
655
663
|
def object; end
|
656
664
|
|
657
|
-
# source://psych//psych/class_loader.rb#39
|
665
|
+
# source://psych//lib/psych/class_loader.rb#39
|
658
666
|
def psych_omap; end
|
659
667
|
|
660
|
-
# source://psych//psych/class_loader.rb#39
|
668
|
+
# source://psych//lib/psych/class_loader.rb#39
|
661
669
|
def psych_set; end
|
662
670
|
|
663
|
-
# source://psych//psych/class_loader.rb#39
|
671
|
+
# source://psych//lib/psych/class_loader.rb#39
|
664
672
|
def range; end
|
665
673
|
|
666
|
-
# source://psych//psych/class_loader.rb#39
|
674
|
+
# source://psych//lib/psych/class_loader.rb#39
|
667
675
|
def rational; end
|
668
676
|
|
669
|
-
# source://psych//psych/class_loader.rb#39
|
677
|
+
# source://psych//lib/psych/class_loader.rb#39
|
670
678
|
def regexp; end
|
671
679
|
|
672
|
-
# source://psych//psych/class_loader.rb#39
|
680
|
+
# source://psych//lib/psych/class_loader.rb#39
|
673
681
|
def struct; end
|
674
682
|
|
675
|
-
# source://psych//psych/class_loader.rb#39
|
683
|
+
# source://psych//lib/psych/class_loader.rb#39
|
676
684
|
def symbol; end
|
677
685
|
|
678
|
-
# source://psych//psych/class_loader.rb#31
|
686
|
+
# source://psych//lib/psych/class_loader.rb#31
|
679
687
|
def symbolize(sym); end
|
680
688
|
|
681
689
|
private
|
682
690
|
|
683
|
-
# source://psych//psych/class_loader.rb#47
|
691
|
+
# source://psych//lib/psych/class_loader.rb#47
|
684
692
|
def find(klassname); end
|
685
693
|
|
686
|
-
# source://psych//psych/class_loader.rb#51
|
694
|
+
# source://psych//lib/psych/class_loader.rb#51
|
687
695
|
def resolve(klassname); end
|
688
696
|
end
|
689
697
|
|
698
|
+
# source://psych//lib/psych/class_loader.rb#76
|
690
699
|
class Psych::ClassLoader::Restricted < ::Psych::ClassLoader
|
691
700
|
# @return [Restricted] a new instance of Restricted
|
692
701
|
#
|
693
|
-
# source://psych//psych/class_loader.rb#77
|
702
|
+
# source://psych//lib/psych/class_loader.rb#77
|
694
703
|
def initialize(classes, symbols); end
|
695
704
|
|
696
|
-
# source://psych//psych/class_loader.rb#83
|
705
|
+
# source://psych//lib/psych/class_loader.rb#83
|
697
706
|
def symbolize(sym); end
|
698
707
|
|
699
708
|
private
|
700
709
|
|
701
|
-
# source://psych//psych/class_loader.rb#95
|
710
|
+
# source://psych//lib/psych/class_loader.rb#95
|
702
711
|
def find(klassname); end
|
703
712
|
end
|
704
713
|
|
@@ -707,31 +716,33 @@ end
|
|
707
716
|
# automatically assumes a Psych::Nodes::Mapping is being emitted. Other
|
708
717
|
# objects like Sequence and Scalar may be emitted if +seq=+ or +scalar=+ are
|
709
718
|
# called, respectively.
|
719
|
+
#
|
720
|
+
# source://psych//lib/psych/coder.rb#9
|
710
721
|
class Psych::Coder
|
711
722
|
# @return [Coder] a new instance of Coder
|
712
723
|
#
|
713
|
-
# source://psych//psych/coder.rb#13
|
724
|
+
# source://psych//lib/psych/coder.rb#13
|
714
725
|
def initialize(tag); end
|
715
726
|
|
716
|
-
# source://psych//psych/coder.rb#84
|
727
|
+
# source://psych//lib/psych/coder.rb#84
|
717
728
|
def [](k); end
|
718
729
|
|
719
|
-
# source://psych//psych/coder.rb#78
|
730
|
+
# source://psych//lib/psych/coder.rb#78
|
720
731
|
def []=(k, v); end
|
721
732
|
|
722
|
-
# source://psych//psych/coder.rb#78
|
733
|
+
# source://psych//lib/psych/coder.rb#78
|
723
734
|
def add(k, v); end
|
724
735
|
|
725
736
|
# Returns the value of attribute implicit.
|
726
737
|
#
|
727
|
-
# source://psych//psych/coder.rb#10
|
738
|
+
# source://psych//lib/psych/coder.rb#10
|
728
739
|
def implicit; end
|
729
740
|
|
730
741
|
# Sets the attribute implicit
|
731
742
|
#
|
732
743
|
# @param value the value to set the attribute implicit to.
|
733
744
|
#
|
734
|
-
# source://psych//psych/coder.rb#10
|
745
|
+
# source://psych//lib/psych/coder.rb#10
|
735
746
|
def implicit=(_arg0); end
|
736
747
|
|
737
748
|
# Emit a map. The coder will be yielded to the block.
|
@@ -739,98 +750,99 @@ class Psych::Coder
|
|
739
750
|
# @yield [_self]
|
740
751
|
# @yieldparam _self [Psych::Coder] the object that the method was called on
|
741
752
|
#
|
742
|
-
# source://psych//psych/coder.rb#34
|
753
|
+
# source://psych//lib/psych/coder.rb#34
|
743
754
|
def map(tag = T.unsafe(nil), style = T.unsafe(nil)); end
|
744
755
|
|
745
756
|
# Emit a map with +value+
|
746
757
|
#
|
747
|
-
# source://psych//psych/coder.rb#73
|
758
|
+
# source://psych//lib/psych/coder.rb#73
|
748
759
|
def map=(map); end
|
749
760
|
|
750
761
|
# Returns the value of attribute object.
|
751
762
|
#
|
752
|
-
# source://psych//psych/coder.rb#10
|
763
|
+
# source://psych//lib/psych/coder.rb#10
|
753
764
|
def object; end
|
754
765
|
|
755
766
|
# Sets the attribute object
|
756
767
|
#
|
757
768
|
# @param value the value to set the attribute object to.
|
758
769
|
#
|
759
|
-
# source://psych//psych/coder.rb#10
|
770
|
+
# source://psych//lib/psych/coder.rb#10
|
760
771
|
def object=(_arg0); end
|
761
772
|
|
762
773
|
# Emit a sequence with +map+ and +tag+
|
763
774
|
#
|
764
|
-
# source://psych//psych/coder.rb#54
|
775
|
+
# source://psych//lib/psych/coder.rb#54
|
765
776
|
def represent_map(tag, map); end
|
766
777
|
|
767
778
|
# Emit an arbitrary object +obj+ and +tag+
|
768
779
|
#
|
769
|
-
# source://psych//psych/coder.rb#60
|
780
|
+
# source://psych//lib/psych/coder.rb#60
|
770
781
|
def represent_object(tag, obj); end
|
771
782
|
|
772
783
|
# Emit a scalar with +value+ and +tag+
|
773
784
|
#
|
774
|
-
# source://psych//psych/coder.rb#42
|
785
|
+
# source://psych//lib/psych/coder.rb#42
|
775
786
|
def represent_scalar(tag, value); end
|
776
787
|
|
777
788
|
# Emit a sequence with +list+ and +tag+
|
778
789
|
#
|
779
|
-
# source://psych//psych/coder.rb#48
|
790
|
+
# source://psych//lib/psych/coder.rb#48
|
780
791
|
def represent_seq(tag, list); end
|
781
792
|
|
782
|
-
# source://psych//psych/coder.rb#24
|
793
|
+
# source://psych//lib/psych/coder.rb#24
|
783
794
|
def scalar(*args); end
|
784
795
|
|
785
796
|
# Emit a scalar with +value+
|
786
797
|
#
|
787
|
-
# source://psych//psych/coder.rb#67
|
798
|
+
# source://psych//lib/psych/coder.rb#67
|
788
799
|
def scalar=(value); end
|
789
800
|
|
790
801
|
# Returns the value of attribute seq.
|
791
802
|
#
|
792
|
-
# source://psych//psych/coder.rb#11
|
803
|
+
# source://psych//lib/psych/coder.rb#11
|
793
804
|
def seq; end
|
794
805
|
|
795
806
|
# Emit a sequence of +list+
|
796
807
|
#
|
797
|
-
# source://psych//psych/coder.rb#90
|
808
|
+
# source://psych//lib/psych/coder.rb#90
|
798
809
|
def seq=(list); end
|
799
810
|
|
800
811
|
# Returns the value of attribute style.
|
801
812
|
#
|
802
|
-
# source://psych//psych/coder.rb#10
|
813
|
+
# source://psych//lib/psych/coder.rb#10
|
803
814
|
def style; end
|
804
815
|
|
805
816
|
# Sets the attribute style
|
806
817
|
#
|
807
818
|
# @param value the value to set the attribute style to.
|
808
819
|
#
|
809
|
-
# source://psych//psych/coder.rb#10
|
820
|
+
# source://psych//lib/psych/coder.rb#10
|
810
821
|
def style=(_arg0); end
|
811
822
|
|
812
823
|
# Returns the value of attribute tag.
|
813
824
|
#
|
814
|
-
# source://psych//psych/coder.rb#10
|
825
|
+
# source://psych//lib/psych/coder.rb#10
|
815
826
|
def tag; end
|
816
827
|
|
817
828
|
# Sets the attribute tag
|
818
829
|
#
|
819
830
|
# @param value the value to set the attribute tag to.
|
820
831
|
#
|
821
|
-
# source://psych//psych/coder.rb#10
|
832
|
+
# source://psych//lib/psych/coder.rb#10
|
822
833
|
def tag=(_arg0); end
|
823
834
|
|
824
835
|
# Returns the value of attribute type.
|
825
836
|
#
|
826
|
-
# source://psych//psych/coder.rb#11
|
837
|
+
# source://psych//lib/psych/coder.rb#11
|
827
838
|
def type; end
|
828
839
|
end
|
829
840
|
|
841
|
+
# source://psych//lib/psych/exception.rb#23
|
830
842
|
class Psych::DisallowedClass < ::Psych::Exception
|
831
843
|
# @return [DisallowedClass] a new instance of DisallowedClass
|
832
844
|
#
|
833
|
-
# source://psych//psych/exception.rb#24
|
845
|
+
# source://psych//lib/psych/exception.rb#24
|
834
846
|
def initialize(action, klass_name); end
|
835
847
|
end
|
836
848
|
|
@@ -843,6 +855,8 @@ end
|
|
843
855
|
# event handlers.
|
844
856
|
#
|
845
857
|
# See Psych::Parser for more details
|
858
|
+
#
|
859
|
+
# source://psych//lib/psych/handler.rb#13
|
846
860
|
class Psych::Handler
|
847
861
|
# Called when an alias is found to +anchor+. +anchor+ will be the name
|
848
862
|
# of the anchor found.
|
@@ -858,13 +872,13 @@ class Psych::Handler
|
|
858
872
|
# &ponies is the anchor, *ponies is the alias. In this case, alias is
|
859
873
|
# called with "ponies".
|
860
874
|
#
|
861
|
-
# source://psych//psych/handler.rb#110
|
875
|
+
# source://psych//lib/psych/handler.rb#110
|
862
876
|
def alias(anchor); end
|
863
877
|
|
864
878
|
# Called when an empty event happens. (Which, as far as I can tell, is
|
865
879
|
# never).
|
866
880
|
#
|
867
|
-
# source://psych//psych/handler.rb#236
|
881
|
+
# source://psych//lib/psych/handler.rb#236
|
868
882
|
def empty; end
|
869
883
|
|
870
884
|
# Called with the document ends. +implicit+ is a boolean value indicating
|
@@ -885,27 +899,27 @@ class Psych::Handler
|
|
885
899
|
#
|
886
900
|
# +implicit+ will be false.
|
887
901
|
#
|
888
|
-
# source://psych//psych/handler.rb#93
|
902
|
+
# source://psych//lib/psych/handler.rb#93
|
889
903
|
def end_document(implicit); end
|
890
904
|
|
891
905
|
# Called when a map ends
|
892
906
|
#
|
893
|
-
# source://psych//psych/handler.rb#230
|
907
|
+
# source://psych//lib/psych/handler.rb#230
|
894
908
|
def end_mapping; end
|
895
909
|
|
896
910
|
# Called when a sequence ends.
|
897
911
|
#
|
898
|
-
# source://psych//psych/handler.rb#191
|
912
|
+
# source://psych//lib/psych/handler.rb#191
|
899
913
|
def end_sequence; end
|
900
914
|
|
901
915
|
# Called when the YAML stream ends
|
902
916
|
#
|
903
|
-
# source://psych//psych/handler.rb#241
|
917
|
+
# source://psych//lib/psych/handler.rb#241
|
904
918
|
def end_stream; end
|
905
919
|
|
906
920
|
# Called before each event with line/column information.
|
907
921
|
#
|
908
|
-
# source://psych//psych/handler.rb#246
|
922
|
+
# source://psych//lib/psych/handler.rb#246
|
909
923
|
def event_location(start_line, start_column, end_line, end_column); end
|
910
924
|
|
911
925
|
# Called when a scalar +value+ is found. The scalar may have an
|
@@ -944,7 +958,7 @@ class Psych::Handler
|
|
944
958
|
# ["many lines", nil, nil, true, false, 1 ]
|
945
959
|
# ["many\nnewlines\n", nil, nil, false, true, 4 ]
|
946
960
|
#
|
947
|
-
# source://psych//psych/handler.rb#150
|
961
|
+
# source://psych//lib/psych/handler.rb#150
|
948
962
|
def scalar(value, anchor, tag, plain, quoted, style); end
|
949
963
|
|
950
964
|
# Called when the document starts with the declared +version+,
|
@@ -969,7 +983,7 @@ class Psych::Handler
|
|
969
983
|
# tag_directives # => [["!", "tag:tenderlovemaking.com,2009:"]]
|
970
984
|
# implicit # => false
|
971
985
|
#
|
972
|
-
# source://psych//psych/handler.rb#72
|
986
|
+
# source://psych//lib/psych/handler.rb#72
|
973
987
|
def start_document(version, tag_directives, implicit); end
|
974
988
|
|
975
989
|
# Called when a map starts.
|
@@ -1002,7 +1016,7 @@ class Psych::Handler
|
|
1002
1016
|
# [nil, "tag:yaml.org,2002:map", false, 2 ]
|
1003
1017
|
# ["pewpew", nil, true, 1 ]
|
1004
1018
|
#
|
1005
|
-
# source://psych//psych/handler.rb#225
|
1019
|
+
# source://psych//lib/psych/handler.rb#225
|
1006
1020
|
def start_mapping(anchor, tag, implicit, style); end
|
1007
1021
|
|
1008
1022
|
# Called when a sequence is started.
|
@@ -1037,7 +1051,7 @@ class Psych::Handler
|
|
1037
1051
|
# [nil, "tag:yaml.org,2002:seq", false, 2 ]
|
1038
1052
|
# ["pewpew", nil, true, 1 ]
|
1039
1053
|
#
|
1040
|
-
# source://psych//psych/handler.rb#186
|
1054
|
+
# source://psych//lib/psych/handler.rb#186
|
1041
1055
|
def start_sequence(anchor, tag, implicit, style); end
|
1042
1056
|
|
1043
1057
|
# Called with +encoding+ when the YAML stream starts. This method is
|
@@ -1045,61 +1059,64 @@ class Psych::Handler
|
|
1045
1059
|
#
|
1046
1060
|
# See the constants in Psych::Parser for the possible values of +encoding+.
|
1047
1061
|
#
|
1048
|
-
# source://psych//psych/handler.rb#47
|
1062
|
+
# source://psych//lib/psych/handler.rb#47
|
1049
1063
|
def start_stream(encoding); end
|
1050
1064
|
|
1051
1065
|
# Is this handler a streaming handler?
|
1052
1066
|
#
|
1053
1067
|
# @return [Boolean]
|
1054
1068
|
#
|
1055
|
-
# source://psych//psych/handler.rb#251
|
1069
|
+
# source://psych//lib/psych/handler.rb#251
|
1056
1070
|
def streaming?; end
|
1057
1071
|
end
|
1058
1072
|
|
1059
1073
|
# Configuration options for dumping YAML.
|
1074
|
+
#
|
1075
|
+
# source://psych//lib/psych/handler.rb#16
|
1060
1076
|
class Psych::Handler::DumperOptions
|
1061
1077
|
# @return [DumperOptions] a new instance of DumperOptions
|
1062
1078
|
#
|
1063
|
-
# source://psych//psych/handler.rb#19
|
1079
|
+
# source://psych//lib/psych/handler.rb#19
|
1064
1080
|
def initialize; end
|
1065
1081
|
|
1066
1082
|
# Returns the value of attribute canonical.
|
1067
1083
|
#
|
1068
|
-
# source://psych//psych/handler.rb#17
|
1084
|
+
# source://psych//lib/psych/handler.rb#17
|
1069
1085
|
def canonical; end
|
1070
1086
|
|
1071
1087
|
# Sets the attribute canonical
|
1072
1088
|
#
|
1073
1089
|
# @param value the value to set the attribute canonical to.
|
1074
1090
|
#
|
1075
|
-
# source://psych//psych/handler.rb#17
|
1091
|
+
# source://psych//lib/psych/handler.rb#17
|
1076
1092
|
def canonical=(_arg0); end
|
1077
1093
|
|
1078
1094
|
# Returns the value of attribute indentation.
|
1079
1095
|
#
|
1080
|
-
# source://psych//psych/handler.rb#17
|
1096
|
+
# source://psych//lib/psych/handler.rb#17
|
1081
1097
|
def indentation; end
|
1082
1098
|
|
1083
1099
|
# Sets the attribute indentation
|
1084
1100
|
#
|
1085
1101
|
# @param value the value to set the attribute indentation to.
|
1086
1102
|
#
|
1087
|
-
# source://psych//psych/handler.rb#17
|
1103
|
+
# source://psych//lib/psych/handler.rb#17
|
1088
1104
|
def indentation=(_arg0); end
|
1089
1105
|
|
1090
1106
|
# Returns the value of attribute line_width.
|
1091
1107
|
#
|
1092
|
-
# source://psych//psych/handler.rb#17
|
1108
|
+
# source://psych//lib/psych/handler.rb#17
|
1093
1109
|
def line_width; end
|
1094
1110
|
|
1095
1111
|
# Sets the attribute line_width
|
1096
1112
|
#
|
1097
1113
|
# @param value the value to set the attribute line_width to.
|
1098
1114
|
#
|
1099
|
-
# source://psych//psych/handler.rb#17
|
1115
|
+
# source://psych//lib/psych/handler.rb#17
|
1100
1116
|
def line_width=(_arg0); end
|
1101
1117
|
end
|
1102
1118
|
|
1119
|
+
# source://psych//lib/psych/json/stream.rb#7
|
1103
1120
|
class Psych::JSON::Stream < ::Psych::Visitors::JSONTree
|
1104
1121
|
include ::Psych::Streaming
|
1105
1122
|
extend ::Psych::Streaming::ClassMethods
|
@@ -1133,28 +1150,30 @@ end
|
|
1133
1150
|
#
|
1134
1151
|
# Psych uses Psych::Parser in combination with Psych::TreeBuilder to
|
1135
1152
|
# construct an AST of the parsed YAML document.
|
1153
|
+
#
|
1154
|
+
# source://psych//lib/psych/parser.rb#33
|
1136
1155
|
class Psych::Parser
|
1137
1156
|
# Creates a new Psych::Parser instance with +handler+. YAML events will
|
1138
1157
|
# be called on +handler+. See Psych::Parser for more details.
|
1139
1158
|
#
|
1140
1159
|
# @return [Parser] a new instance of Parser
|
1141
1160
|
#
|
1142
|
-
# source://psych//psych/parser.rb#47
|
1161
|
+
# source://psych//lib/psych/parser.rb#47
|
1143
1162
|
def initialize(handler = T.unsafe(nil)); end
|
1144
1163
|
|
1145
1164
|
# Set the encoding for this parser to +encoding+
|
1146
1165
|
#
|
1147
|
-
# source://psych//psych/parser.rb#41
|
1166
|
+
# source://psych//lib/psych/parser.rb#41
|
1148
1167
|
def external_encoding=(_arg0); end
|
1149
1168
|
|
1150
1169
|
# The handler on which events will be called
|
1151
1170
|
#
|
1152
|
-
# source://psych//psych/parser.rb#38
|
1171
|
+
# source://psych//lib/psych/parser.rb#38
|
1153
1172
|
def handler; end
|
1154
1173
|
|
1155
1174
|
# The handler on which events will be called
|
1156
1175
|
#
|
1157
|
-
# source://psych//psych/parser.rb#38
|
1176
|
+
# source://psych//lib/psych/parser.rb#38
|
1158
1177
|
def handler=(_arg0); end
|
1159
1178
|
|
1160
1179
|
# call-seq:
|
@@ -1165,49 +1184,51 @@ class Psych::Parser
|
|
1165
1184
|
#
|
1166
1185
|
# See Psych::Parser and Psych::Parser#handler
|
1167
1186
|
#
|
1168
|
-
# source://psych//psych/parser.rb#61
|
1187
|
+
# source://psych//lib/psych/parser.rb#61
|
1169
1188
|
def parse(yaml, path = T.unsafe(nil)); end
|
1170
1189
|
end
|
1171
1190
|
|
1172
1191
|
# Scan scalars for built in types
|
1192
|
+
#
|
1193
|
+
# source://psych//lib/psych/scalar_scanner.rb#6
|
1173
1194
|
class Psych::ScalarScanner
|
1174
1195
|
# Create a new scanner
|
1175
1196
|
#
|
1176
1197
|
# @return [ScalarScanner] a new instance of ScalarScanner
|
1177
1198
|
#
|
1178
|
-
# source://psych//psych/scalar_scanner.rb#30
|
1199
|
+
# source://psych//lib/psych/scalar_scanner.rb#30
|
1179
1200
|
def initialize(class_loader, strict_integer: T.unsafe(nil)); end
|
1180
1201
|
|
1181
1202
|
# Returns the value of attribute class_loader.
|
1182
1203
|
#
|
1183
|
-
# source://psych//psych/scalar_scanner.rb#27
|
1204
|
+
# source://psych//lib/psych/scalar_scanner.rb#27
|
1184
1205
|
def class_loader; end
|
1185
1206
|
|
1186
1207
|
# Parse and return an int from +string+
|
1187
1208
|
#
|
1188
|
-
# source://psych//psych/scalar_scanner.rb#109
|
1209
|
+
# source://psych//lib/psych/scalar_scanner.rb#109
|
1189
1210
|
def parse_int(string); end
|
1190
1211
|
|
1191
1212
|
# Parse and return a Time from +string+
|
1192
1213
|
#
|
1193
|
-
# source://psych//psych/scalar_scanner.rb#115
|
1214
|
+
# source://psych//lib/psych/scalar_scanner.rb#115
|
1194
1215
|
def parse_time(string); end
|
1195
1216
|
|
1196
1217
|
# Tokenize +string+ returning the Ruby object
|
1197
1218
|
#
|
1198
|
-
# source://psych//psych/scalar_scanner.rb#37
|
1219
|
+
# source://psych//lib/psych/scalar_scanner.rb#37
|
1199
1220
|
def tokenize(string); end
|
1200
1221
|
end
|
1201
1222
|
|
1202
1223
|
# Same as above, but allows commas.
|
1203
1224
|
# Not to YML spec, but kept for backwards compatibility
|
1204
1225
|
#
|
1205
|
-
# source://psych//psych/scalar_scanner.rb#22
|
1226
|
+
# source://psych//lib/psych/scalar_scanner.rb#22
|
1206
1227
|
Psych::ScalarScanner::INTEGER_LEGACY = T.let(T.unsafe(nil), Regexp)
|
1207
1228
|
|
1208
1229
|
# Taken from http://yaml.org/type/int.html
|
1209
1230
|
#
|
1210
|
-
# source://psych//psych/scalar_scanner.rb#15
|
1231
|
+
# source://psych//lib/psych/scalar_scanner.rb#15
|
1211
1232
|
Psych::ScalarScanner::INTEGER_STRICT = T.let(T.unsafe(nil), Regexp)
|
1212
1233
|
|
1213
1234
|
# Psych::Stream is a streaming YAML emitter. It will not buffer your YAML,
|
@@ -1229,75 +1250,81 @@ Psych::ScalarScanner::INTEGER_STRICT = T.let(T.unsafe(nil), Regexp)
|
|
1229
1250
|
# stream.start do |em|
|
1230
1251
|
# em.push(:foo => 'bar')
|
1231
1252
|
# end
|
1253
|
+
#
|
1254
|
+
# source://psych//lib/psych/stream.rb#24
|
1232
1255
|
class Psych::Stream < ::Psych::Visitors::YAMLTree
|
1233
1256
|
include ::Psych::Streaming
|
1234
1257
|
extend ::Psych::Streaming::ClassMethods
|
1235
1258
|
end
|
1236
1259
|
|
1260
|
+
# source://psych//lib/psych/stream.rb#25
|
1237
1261
|
class Psych::Stream::Emitter < ::Psych::Emitter
|
1238
|
-
# source://psych//psych/stream.rb#26
|
1262
|
+
# source://psych//lib/psych/stream.rb#26
|
1239
1263
|
def end_document(implicit_end = T.unsafe(nil)); end
|
1240
1264
|
|
1241
1265
|
# @return [Boolean]
|
1242
1266
|
#
|
1243
|
-
# source://psych//psych/stream.rb#30
|
1267
|
+
# source://psych//lib/psych/stream.rb#30
|
1244
1268
|
def streaming?; end
|
1245
1269
|
end
|
1246
1270
|
|
1271
|
+
# source://psych//lib/psych/streaming.rb#3
|
1247
1272
|
module Psych::Streaming
|
1248
1273
|
# Start streaming using +encoding+
|
1249
1274
|
#
|
1250
|
-
# source://psych//psych/streaming.rb#18
|
1275
|
+
# source://psych//lib/psych/streaming.rb#18
|
1251
1276
|
def start(encoding = T.unsafe(nil)); end
|
1252
1277
|
|
1253
1278
|
private
|
1254
1279
|
|
1255
|
-
# source://psych//psych/streaming.rb#25
|
1280
|
+
# source://psych//lib/psych/streaming.rb#25
|
1256
1281
|
def register(target, obj); end
|
1257
1282
|
end
|
1258
1283
|
|
1284
|
+
# source://psych//lib/psych/streaming.rb#4
|
1259
1285
|
module Psych::Streaming::ClassMethods
|
1260
1286
|
# Create a new streaming emitter. Emitter will print to +io+. See
|
1261
1287
|
# Psych::Stream for an example.
|
1262
1288
|
#
|
1263
|
-
# source://psych//psych/streaming.rb#8
|
1289
|
+
# source://psych//lib/psych/streaming.rb#8
|
1264
1290
|
def new(io); end
|
1265
1291
|
end
|
1266
1292
|
|
1293
|
+
# source://psych//lib/psych/syntax_error.rb#5
|
1267
1294
|
class Psych::SyntaxError < ::Psych::Exception
|
1268
1295
|
# @return [SyntaxError] a new instance of SyntaxError
|
1269
1296
|
#
|
1270
|
-
# source://psych//psych/syntax_error.rb#8
|
1297
|
+
# source://psych//lib/psych/syntax_error.rb#8
|
1271
1298
|
def initialize(file, line, col, offset, problem, context); end
|
1272
1299
|
|
1273
1300
|
# Returns the value of attribute column.
|
1274
1301
|
#
|
1275
|
-
# source://psych//psych/syntax_error.rb#6
|
1302
|
+
# source://psych//lib/psych/syntax_error.rb#6
|
1276
1303
|
def column; end
|
1277
1304
|
|
1278
1305
|
# Returns the value of attribute context.
|
1279
1306
|
#
|
1280
|
-
# source://psych//psych/syntax_error.rb#6
|
1307
|
+
# source://psych//lib/psych/syntax_error.rb#6
|
1281
1308
|
def context; end
|
1282
1309
|
|
1283
1310
|
# Returns the value of attribute file.
|
1284
1311
|
#
|
1285
|
-
# source://psych//psych/syntax_error.rb#6
|
1312
|
+
# source://psych//lib/psych/syntax_error.rb#6
|
1286
1313
|
def file; end
|
1287
1314
|
|
1288
1315
|
# Returns the value of attribute line.
|
1289
1316
|
#
|
1290
|
-
# source://psych//psych/syntax_error.rb#6
|
1317
|
+
# source://psych//lib/psych/syntax_error.rb#6
|
1291
1318
|
def line; end
|
1292
1319
|
|
1293
1320
|
# Returns the value of attribute offset.
|
1294
1321
|
#
|
1295
|
-
# source://psych//psych/syntax_error.rb#6
|
1322
|
+
# source://psych//lib/psych/syntax_error.rb#6
|
1296
1323
|
def offset; end
|
1297
1324
|
|
1298
1325
|
# Returns the value of attribute problem.
|
1299
1326
|
#
|
1300
|
-
# source://psych//psych/syntax_error.rb#6
|
1327
|
+
# source://psych//lib/psych/syntax_error.rb#6
|
1301
1328
|
def problem; end
|
1302
1329
|
end
|
1303
1330
|
|
@@ -1312,15 +1339,17 @@ end
|
|
1312
1339
|
#
|
1313
1340
|
# See Psych::Handler for documentation on the event methods used in this
|
1314
1341
|
# class.
|
1342
|
+
#
|
1343
|
+
# source://psych//lib/psych/tree_builder.rb#17
|
1315
1344
|
class Psych::TreeBuilder < ::Psych::Handler
|
1316
1345
|
# Create a new TreeBuilder instance
|
1317
1346
|
#
|
1318
1347
|
# @return [TreeBuilder] a new instance of TreeBuilder
|
1319
1348
|
#
|
1320
|
-
# source://psych//psych/tree_builder.rb#22
|
1349
|
+
# source://psych//lib/psych/tree_builder.rb#22
|
1321
1350
|
def initialize; end
|
1322
1351
|
|
1323
|
-
# source://psych//psych/tree_builder.rb#103
|
1352
|
+
# source://psych//lib/psych/tree_builder.rb#103
|
1324
1353
|
def alias(anchor); end
|
1325
1354
|
|
1326
1355
|
# Handles end_document events with +version+, +tag_directives+,
|
@@ -1328,27 +1357,27 @@ class Psych::TreeBuilder < ::Psych::Handler
|
|
1328
1357
|
#
|
1329
1358
|
# See Psych::Handler#start_document
|
1330
1359
|
#
|
1331
|
-
# source://psych//psych/tree_builder.rb#77
|
1360
|
+
# source://psych//lib/psych/tree_builder.rb#77
|
1332
1361
|
def end_document(implicit_end = T.unsafe(nil)); end
|
1333
1362
|
|
1334
|
-
# source://psych//psych/tree_builder.rb#52
|
1363
|
+
# source://psych//lib/psych/tree_builder.rb#52
|
1335
1364
|
def end_mapping; end
|
1336
1365
|
|
1337
|
-
# source://psych//psych/tree_builder.rb#52
|
1366
|
+
# source://psych//lib/psych/tree_builder.rb#52
|
1338
1367
|
def end_sequence; end
|
1339
1368
|
|
1340
|
-
# source://psych//psych/tree_builder.rb#90
|
1369
|
+
# source://psych//lib/psych/tree_builder.rb#90
|
1341
1370
|
def end_stream; end
|
1342
1371
|
|
1343
|
-
# source://psych//psych/tree_builder.rb#33
|
1372
|
+
# source://psych//lib/psych/tree_builder.rb#33
|
1344
1373
|
def event_location(start_line, start_column, end_line, end_column); end
|
1345
1374
|
|
1346
1375
|
# Returns the root node for the built tree
|
1347
1376
|
#
|
1348
|
-
# source://psych//psych/tree_builder.rb#19
|
1377
|
+
# source://psych//lib/psych/tree_builder.rb#19
|
1349
1378
|
def root; end
|
1350
1379
|
|
1351
|
-
# source://psych//psych/tree_builder.rb#96
|
1380
|
+
# source://psych//lib/psych/tree_builder.rb#96
|
1352
1381
|
def scalar(value, anchor, tag, plain, quoted, style); end
|
1353
1382
|
|
1354
1383
|
# Handles start_document events with +version+, +tag_directives+,
|
@@ -1356,176 +1385,181 @@ class Psych::TreeBuilder < ::Psych::Handler
|
|
1356
1385
|
#
|
1357
1386
|
# See Psych::Handler#start_document
|
1358
1387
|
#
|
1359
|
-
# source://psych//psych/tree_builder.rb#65
|
1388
|
+
# source://psych//lib/psych/tree_builder.rb#65
|
1360
1389
|
def start_document(version, tag_directives, implicit); end
|
1361
1390
|
|
1362
|
-
# source://psych//psych/tree_builder.rb#45
|
1391
|
+
# source://psych//lib/psych/tree_builder.rb#45
|
1363
1392
|
def start_mapping(anchor, tag, implicit, style); end
|
1364
1393
|
|
1365
|
-
# source://psych//psych/tree_builder.rb#45
|
1394
|
+
# source://psych//lib/psych/tree_builder.rb#45
|
1366
1395
|
def start_sequence(anchor, tag, implicit, style); end
|
1367
1396
|
|
1368
|
-
# source://psych//psych/tree_builder.rb#84
|
1397
|
+
# source://psych//lib/psych/tree_builder.rb#84
|
1369
1398
|
def start_stream(encoding); end
|
1370
1399
|
|
1371
1400
|
private
|
1372
1401
|
|
1373
|
-
# source://psych//psych/tree_builder.rb#116
|
1402
|
+
# source://psych//lib/psych/tree_builder.rb#116
|
1374
1403
|
def pop; end
|
1375
1404
|
|
1376
|
-
# source://psych//psych/tree_builder.rb#111
|
1405
|
+
# source://psych//lib/psych/tree_builder.rb#111
|
1377
1406
|
def push(value); end
|
1378
1407
|
|
1379
|
-
# source://psych//psych/tree_builder.rb#132
|
1408
|
+
# source://psych//lib/psych/tree_builder.rb#132
|
1380
1409
|
def set_end_location(node); end
|
1381
1410
|
|
1382
|
-
# source://psych//psych/tree_builder.rb#122
|
1411
|
+
# source://psych//lib/psych/tree_builder.rb#122
|
1383
1412
|
def set_location(node); end
|
1384
1413
|
|
1385
|
-
# source://psych//psych/tree_builder.rb#127
|
1414
|
+
# source://psych//lib/psych/tree_builder.rb#127
|
1386
1415
|
def set_start_location(node); end
|
1387
1416
|
end
|
1388
1417
|
|
1389
1418
|
# The version of Psych you are using
|
1390
1419
|
#
|
1391
|
-
# source://psych//psych/versions.rb#5
|
1420
|
+
# source://psych//lib/psych/versions.rb#5
|
1392
1421
|
Psych::VERSION = T.let(T.unsafe(nil), String)
|
1393
1422
|
|
1423
|
+
# source://psych//lib/psych/visitors/depth_first.rb#4
|
1394
1424
|
class Psych::Visitors::DepthFirst < ::Psych::Visitors::Visitor
|
1395
1425
|
# @return [DepthFirst] a new instance of DepthFirst
|
1396
1426
|
#
|
1397
|
-
# source://psych//psych/visitors/depth_first.rb#5
|
1427
|
+
# source://psych//lib/psych/visitors/depth_first.rb#5
|
1398
1428
|
def initialize(block); end
|
1399
1429
|
|
1400
1430
|
private
|
1401
1431
|
|
1402
|
-
# source://psych//psych/visitors/depth_first.rb#11
|
1432
|
+
# source://psych//lib/psych/visitors/depth_first.rb#11
|
1403
1433
|
def nary(o); end
|
1404
1434
|
|
1405
|
-
# source://psych//psych/visitors/depth_first.rb#20
|
1435
|
+
# source://psych//lib/psych/visitors/depth_first.rb#20
|
1406
1436
|
def terminal(o); end
|
1407
1437
|
|
1408
|
-
# source://psych//psych/visitors/depth_first.rb#20
|
1438
|
+
# source://psych//lib/psych/visitors/depth_first.rb#20
|
1409
1439
|
def visit_Psych_Nodes_Alias(o); end
|
1410
1440
|
|
1411
|
-
# source://psych//psych/visitors/depth_first.rb#11
|
1441
|
+
# source://psych//lib/psych/visitors/depth_first.rb#11
|
1412
1442
|
def visit_Psych_Nodes_Document(o); end
|
1413
1443
|
|
1414
|
-
# source://psych//psych/visitors/depth_first.rb#11
|
1444
|
+
# source://psych//lib/psych/visitors/depth_first.rb#11
|
1415
1445
|
def visit_Psych_Nodes_Mapping(o); end
|
1416
1446
|
|
1417
|
-
# source://psych//psych/visitors/depth_first.rb#20
|
1447
|
+
# source://psych//lib/psych/visitors/depth_first.rb#20
|
1418
1448
|
def visit_Psych_Nodes_Scalar(o); end
|
1419
1449
|
|
1420
|
-
# source://psych//psych/visitors/depth_first.rb#11
|
1450
|
+
# source://psych//lib/psych/visitors/depth_first.rb#11
|
1421
1451
|
def visit_Psych_Nodes_Sequence(o); end
|
1422
1452
|
|
1423
|
-
# source://psych//psych/visitors/depth_first.rb#11
|
1453
|
+
# source://psych//lib/psych/visitors/depth_first.rb#11
|
1424
1454
|
def visit_Psych_Nodes_Stream(o); end
|
1425
1455
|
end
|
1426
1456
|
|
1457
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#540
|
1427
1458
|
class Psych::Visitors::RestrictedYAMLTree < ::Psych::Visitors::YAMLTree
|
1428
1459
|
# @return [RestrictedYAMLTree] a new instance of RestrictedYAMLTree
|
1429
1460
|
#
|
1430
|
-
# source://psych//psych/visitors/yaml_tree.rb#552
|
1461
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#552
|
1431
1462
|
def initialize(emitter, ss, options); end
|
1432
1463
|
|
1433
|
-
# source://psych//psych/visitors/yaml_tree.rb#565
|
1464
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#565
|
1434
1465
|
def accept(target); end
|
1435
1466
|
|
1436
|
-
# source://psych//psych/visitors/yaml_tree.rb#577
|
1467
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#577
|
1437
1468
|
def visit_Symbol(sym); end
|
1438
1469
|
end
|
1439
1470
|
|
1440
|
-
# source://psych//psych/visitors/yaml_tree.rb#541
|
1471
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#541
|
1441
1472
|
Psych::Visitors::RestrictedYAMLTree::DEFAULT_PERMITTED_CLASSES = T.let(T.unsafe(nil), Hash)
|
1442
1473
|
|
1443
1474
|
# This class walks a YAML AST, converting each node to Ruby
|
1475
|
+
#
|
1476
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#14
|
1444
1477
|
class Psych::Visitors::ToRuby < ::Psych::Visitors::Visitor
|
1445
1478
|
# @return [ToRuby] a new instance of ToRuby
|
1446
1479
|
#
|
1447
|
-
# source://psych//psych/visitors/to_ruby.rb#23
|
1480
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#23
|
1448
1481
|
def initialize(ss, class_loader, symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil)); end
|
1449
1482
|
|
1450
|
-
# source://psych//psych/visitors/to_ruby.rb#34
|
1483
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#34
|
1451
1484
|
def accept(target); end
|
1452
1485
|
|
1453
1486
|
# Returns the value of attribute class_loader.
|
1454
1487
|
#
|
1455
|
-
# source://psych//psych/visitors/to_ruby.rb#21
|
1488
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#21
|
1456
1489
|
def class_loader; end
|
1457
1490
|
|
1458
|
-
# source://psych//psych/visitors/to_ruby.rb#327
|
1491
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#327
|
1459
1492
|
def visit_Psych_Nodes_Alias(o); end
|
1460
1493
|
|
1461
|
-
# source://psych//psych/visitors/to_ruby.rb#319
|
1494
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#319
|
1462
1495
|
def visit_Psych_Nodes_Document(o); end
|
1463
1496
|
|
1464
|
-
# source://psych//psych/visitors/to_ruby.rb#165
|
1497
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#165
|
1465
1498
|
def visit_Psych_Nodes_Mapping(o); end
|
1466
1499
|
|
1467
|
-
# source://psych//psych/visitors/to_ruby.rb#129
|
1500
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#129
|
1468
1501
|
def visit_Psych_Nodes_Scalar(o); end
|
1469
1502
|
|
1470
|
-
# source://psych//psych/visitors/to_ruby.rb#133
|
1503
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#133
|
1471
1504
|
def visit_Psych_Nodes_Sequence(o); end
|
1472
1505
|
|
1473
|
-
# source://psych//psych/visitors/to_ruby.rb#323
|
1506
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#323
|
1474
1507
|
def visit_Psych_Nodes_Stream(o); end
|
1475
1508
|
|
1476
1509
|
private
|
1477
1510
|
|
1478
|
-
# source://psych//psych/visitors/to_ruby.rb#395
|
1511
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#395
|
1479
1512
|
def deduplicate(key); end
|
1480
1513
|
|
1481
|
-
# source://psych//psych/visitors/to_ruby.rb#51
|
1514
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#51
|
1482
1515
|
def deserialize(o); end
|
1483
1516
|
|
1484
|
-
# source://psych//psych/visitors/to_ruby.rb#412
|
1517
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#412
|
1485
1518
|
def init_with(o, h, node); end
|
1486
1519
|
|
1487
|
-
# source://psych//psych/visitors/to_ruby.rb#404
|
1520
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#404
|
1488
1521
|
def merge_key(hash, key, val); end
|
1489
1522
|
|
1490
|
-
# source://psych//psych/visitors/to_ruby.rb#333
|
1523
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#333
|
1491
1524
|
def register(node, object); end
|
1492
1525
|
|
1493
|
-
# source://psych//psych/visitors/to_ruby.rb#338
|
1526
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#338
|
1494
1527
|
def register_empty(object); end
|
1495
1528
|
|
1496
1529
|
# Convert +klassname+ to a Class
|
1497
1530
|
#
|
1498
|
-
# source://psych//psych/visitors/to_ruby.rb#425
|
1531
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#425
|
1499
1532
|
def resolve_class(klassname); end
|
1500
1533
|
|
1501
|
-
# source://psych//psych/visitors/to_ruby.rb#407
|
1534
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#407
|
1502
1535
|
def revive(klass, node); end
|
1503
1536
|
|
1504
|
-
# source://psych//psych/visitors/to_ruby.rb#344
|
1537
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#344
|
1505
1538
|
def revive_hash(hash, o, tagged = T.unsafe(nil)); end
|
1506
1539
|
|
1507
1540
|
class << self
|
1508
|
-
# source://psych//psych/visitors/to_ruby.rb#15
|
1541
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#15
|
1509
1542
|
def create(symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end
|
1510
1543
|
end
|
1511
1544
|
end
|
1512
1545
|
|
1546
|
+
# source://psych//lib/psych/visitors/visitor.rb#4
|
1513
1547
|
class Psych::Visitors::Visitor
|
1514
|
-
# source://psych//psych/visitors/visitor.rb#5
|
1548
|
+
# source://psych//lib/psych/visitors/visitor.rb#5
|
1515
1549
|
def accept(target); end
|
1516
1550
|
|
1517
1551
|
private
|
1518
1552
|
|
1519
|
-
# source://psych//psych/visitors/visitor.rb#19
|
1553
|
+
# source://psych//lib/psych/visitors/visitor.rb#19
|
1520
1554
|
def dispatch; end
|
1521
1555
|
|
1522
|
-
# source://psych//psych/visitors/visitor.rb#29
|
1556
|
+
# source://psych//lib/psych/visitors/visitor.rb#29
|
1523
1557
|
def visit(target); end
|
1524
1558
|
|
1525
1559
|
class << self
|
1526
1560
|
# @api private
|
1527
1561
|
#
|
1528
|
-
# source://psych//psych/visitors/visitor.rb#12
|
1562
|
+
# source://psych//lib/psych/visitors/visitor.rb#12
|
1529
1563
|
def dispatch_cache; end
|
1530
1564
|
end
|
1531
1565
|
end
|
@@ -1535,198 +1569,201 @@ end
|
|
1535
1569
|
# builder = Psych::Visitors::YAMLTree.new
|
1536
1570
|
# builder << { :foo => 'bar' }
|
1537
1571
|
# builder.tree # => #<Psych::Nodes::Stream .. }
|
1572
|
+
#
|
1573
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#15
|
1538
1574
|
class Psych::Visitors::YAMLTree < ::Psych::Visitors::Visitor
|
1539
1575
|
# @return [YAMLTree] a new instance of YAMLTree
|
1540
1576
|
#
|
1541
|
-
# source://psych//psych/visitors/yaml_tree.rb#55
|
1577
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#55
|
1542
1578
|
def initialize(emitter, ss, options); end
|
1543
1579
|
|
1544
|
-
# source://psych//psych/visitors/yaml_tree.rb#102
|
1580
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#102
|
1545
1581
|
def <<(object); end
|
1546
1582
|
|
1547
|
-
# source://psych//psych/visitors/yaml_tree.rb#122
|
1583
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#122
|
1548
1584
|
def accept(target); end
|
1549
1585
|
|
1550
|
-
# source://psych//psych/visitors/yaml_tree.rb#91
|
1586
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#91
|
1551
1587
|
def finish; end
|
1552
1588
|
|
1553
1589
|
# Returns the value of attribute finished.
|
1554
1590
|
#
|
1555
|
-
# source://psych//psych/visitors/yaml_tree.rb#44
|
1591
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#44
|
1556
1592
|
def finished; end
|
1557
1593
|
|
1558
1594
|
# Returns the value of attribute finished.
|
1559
1595
|
#
|
1560
|
-
# source://psych//psych/visitors/yaml_tree.rb#44
|
1596
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#44
|
1561
1597
|
def finished?; end
|
1562
1598
|
|
1563
|
-
# source://psych//psych/visitors/yaml_tree.rb#102
|
1599
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#102
|
1564
1600
|
def push(object); end
|
1565
1601
|
|
1566
|
-
# source://psych//psych/visitors/yaml_tree.rb#85
|
1602
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#85
|
1567
1603
|
def start(encoding = T.unsafe(nil)); end
|
1568
1604
|
|
1569
1605
|
# Returns the value of attribute started.
|
1570
1606
|
#
|
1571
|
-
# source://psych//psych/visitors/yaml_tree.rb#44
|
1607
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#44
|
1572
1608
|
def started; end
|
1573
1609
|
|
1574
1610
|
# Returns the value of attribute started.
|
1575
1611
|
#
|
1576
|
-
# source://psych//psych/visitors/yaml_tree.rb#44
|
1612
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#44
|
1577
1613
|
def started?; end
|
1578
1614
|
|
1579
|
-
# source://psych//psych/visitors/yaml_tree.rb#97
|
1615
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#97
|
1580
1616
|
def tree; end
|
1581
1617
|
|
1582
|
-
# source://psych//psych/visitors/yaml_tree.rb#350
|
1618
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#350
|
1583
1619
|
def visit_Array(o); end
|
1584
1620
|
|
1585
|
-
# source://psych//psych/visitors/yaml_tree.rb#376
|
1621
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#376
|
1586
1622
|
def visit_BasicObject(o); end
|
1587
1623
|
|
1588
|
-
# source://psych//psych/visitors/yaml_tree.rb#250
|
1624
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#250
|
1589
1625
|
def visit_BigDecimal(o); end
|
1590
1626
|
|
1591
1627
|
# @raise [TypeError]
|
1592
1628
|
#
|
1593
|
-
# source://psych//psych/visitors/yaml_tree.rb#313
|
1629
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#313
|
1594
1630
|
def visit_Class(o); end
|
1595
1631
|
|
1596
|
-
# source://psych//psych/visitors/yaml_tree.rb#223
|
1632
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#223
|
1597
1633
|
def visit_Complex(o); end
|
1598
1634
|
|
1599
|
-
# source://psych//psych/visitors/yaml_tree.rb#194
|
1635
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#194
|
1600
1636
|
def visit_Date(o); end
|
1601
1637
|
|
1602
|
-
# source://psych//psych/visitors/yaml_tree.rb#198
|
1638
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#198
|
1603
1639
|
def visit_DateTime(o); end
|
1604
1640
|
|
1605
|
-
# source://psych//psych/visitors/yaml_tree.rb#152
|
1641
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#152
|
1606
1642
|
def visit_Delegator(o); end
|
1607
1643
|
|
1608
|
-
# source://psych//psych/visitors/yaml_tree.rb#147
|
1644
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#147
|
1609
1645
|
def visit_Encoding(o); end
|
1610
1646
|
|
1611
|
-
# source://psych//psych/visitors/yaml_tree.rb#358
|
1647
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#358
|
1612
1648
|
def visit_Enumerator(o); end
|
1613
1649
|
|
1614
|
-
# source://psych//psych/visitors/yaml_tree.rb#182
|
1650
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#182
|
1615
1651
|
def visit_Exception(o); end
|
1616
1652
|
|
1617
|
-
# source://psych//psych/visitors/yaml_tree.rb#233
|
1653
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#233
|
1618
1654
|
def visit_FalseClass(o); end
|
1619
1655
|
|
1620
|
-
# source://psych//psych/visitors/yaml_tree.rb#239
|
1656
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#239
|
1621
1657
|
def visit_Float(o); end
|
1622
1658
|
|
1623
|
-
# source://psych//psych/visitors/yaml_tree.rb#326
|
1659
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#326
|
1624
1660
|
def visit_Hash(o); end
|
1625
1661
|
|
1626
|
-
# source://psych//psych/visitors/yaml_tree.rb#233
|
1662
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#233
|
1627
1663
|
def visit_Integer(o); end
|
1628
1664
|
|
1629
1665
|
# @raise [TypeError]
|
1630
1666
|
#
|
1631
|
-
# source://psych//psych/visitors/yaml_tree.rb#308
|
1667
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#308
|
1632
1668
|
def visit_Module(o); end
|
1633
1669
|
|
1634
|
-
# source://psych//psych/visitors/yaml_tree.rb#186
|
1670
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#186
|
1635
1671
|
def visit_NameError(o); end
|
1636
1672
|
|
1637
|
-
# source://psych//psych/visitors/yaml_tree.rb#364
|
1673
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#364
|
1638
1674
|
def visit_NilClass(o); end
|
1639
1675
|
|
1640
|
-
# source://psych//psych/visitors/yaml_tree.rb#152
|
1676
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#152
|
1641
1677
|
def visit_Object(o); end
|
1642
1678
|
|
1643
|
-
# source://psych//psych/visitors/yaml_tree.rb#139
|
1679
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#139
|
1644
1680
|
def visit_Psych_Omap(o); end
|
1645
1681
|
|
1646
|
-
# source://psych//psych/visitors/yaml_tree.rb#339
|
1682
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#339
|
1647
1683
|
def visit_Psych_Set(o); end
|
1648
1684
|
|
1649
|
-
# source://psych//psych/visitors/yaml_tree.rb#318
|
1685
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#318
|
1650
1686
|
def visit_Range(o); end
|
1651
1687
|
|
1652
|
-
# source://psych//psych/visitors/yaml_tree.rb#210
|
1688
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#210
|
1653
1689
|
def visit_Rational(o); end
|
1654
1690
|
|
1655
|
-
# source://psych//psych/visitors/yaml_tree.rb#190
|
1691
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#190
|
1656
1692
|
def visit_Regexp(o); end
|
1657
1693
|
|
1658
|
-
# source://psych//psych/visitors/yaml_tree.rb#254
|
1694
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#254
|
1659
1695
|
def visit_String(o); end
|
1660
1696
|
|
1661
|
-
# source://psych//psych/visitors/yaml_tree.rb#168
|
1697
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#168
|
1662
1698
|
def visit_Struct(o); end
|
1663
1699
|
|
1664
|
-
# source://psych//psych/visitors/yaml_tree.rb#368
|
1700
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#368
|
1665
1701
|
def visit_Symbol(o); end
|
1666
1702
|
|
1667
|
-
# source://psych//psych/visitors/yaml_tree.rb#205
|
1703
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#205
|
1668
1704
|
def visit_Time(o); end
|
1669
1705
|
|
1670
|
-
# source://psych//psych/visitors/yaml_tree.rb#233
|
1706
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#233
|
1671
1707
|
def visit_TrueClass(o); end
|
1672
1708
|
|
1673
1709
|
private
|
1674
1710
|
|
1675
1711
|
# @return [Boolean]
|
1676
1712
|
#
|
1677
|
-
# source://psych//psych/visitors/yaml_tree.rb#390
|
1713
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#390
|
1678
1714
|
def binary?(string); end
|
1679
1715
|
|
1680
|
-
# source://psych//psych/visitors/yaml_tree.rb#497
|
1716
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#497
|
1681
1717
|
def dump_coder(o); end
|
1682
1718
|
|
1683
|
-
# source://psych//psych/visitors/yaml_tree.rb#466
|
1719
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#466
|
1684
1720
|
def dump_exception(o, msg); end
|
1685
1721
|
|
1686
|
-
# source://psych//psych/visitors/yaml_tree.rb#532
|
1722
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#532
|
1687
1723
|
def dump_ivars(target); end
|
1688
1724
|
|
1689
|
-
# source://psych//psych/visitors/yaml_tree.rb#463
|
1725
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#463
|
1690
1726
|
def dump_list(o); end
|
1691
1727
|
|
1692
|
-
# source://psych//psych/visitors/yaml_tree.rb#510
|
1728
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#510
|
1693
1729
|
def emit_coder(c, o); end
|
1694
1730
|
|
1695
|
-
# source://psych//psych/visitors/yaml_tree.rb#484
|
1731
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#484
|
1696
1732
|
def format_time(time, utc = T.unsafe(nil)); end
|
1697
1733
|
|
1698
|
-
# source://psych//psych/visitors/yaml_tree.rb#492
|
1734
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#492
|
1699
1735
|
def register(target, yaml_obj); end
|
1700
1736
|
|
1701
|
-
# source://psych//psych/visitors/yaml_tree.rb#394
|
1737
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#394
|
1702
1738
|
def visit_array_subclass(o); end
|
1703
1739
|
|
1704
|
-
# source://psych//psych/visitors/yaml_tree.rb#425
|
1740
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#425
|
1705
1741
|
def visit_hash_subclass(o); end
|
1706
1742
|
|
1707
1743
|
class << self
|
1708
|
-
# source://psych//psych/visitors/yaml_tree.rb#48
|
1744
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#48
|
1709
1745
|
def create(options = T.unsafe(nil), emitter = T.unsafe(nil)); end
|
1710
1746
|
end
|
1711
1747
|
end
|
1712
1748
|
|
1749
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#16
|
1713
1750
|
class Psych::Visitors::YAMLTree::Registrar
|
1714
1751
|
# @return [Registrar] a new instance of Registrar
|
1715
1752
|
#
|
1716
|
-
# source://psych//psych/visitors/yaml_tree.rb#17
|
1753
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#17
|
1717
1754
|
def initialize; end
|
1718
1755
|
|
1719
|
-
# source://psych//psych/visitors/yaml_tree.rb#35
|
1756
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#35
|
1720
1757
|
def id_for(target); end
|
1721
1758
|
|
1722
1759
|
# @return [Boolean]
|
1723
1760
|
#
|
1724
|
-
# source://psych//psych/visitors/yaml_tree.rb#29
|
1761
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#29
|
1725
1762
|
def key?(target); end
|
1726
1763
|
|
1727
|
-
# source://psych//psych/visitors/yaml_tree.rb#39
|
1764
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#39
|
1728
1765
|
def node_for(target); end
|
1729
1766
|
|
1730
|
-
# source://psych//psych/visitors/yaml_tree.rb#24
|
1767
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#24
|
1731
1768
|
def register(target, node); end
|
1732
1769
|
end
|