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