mangrove 0.30.1 → 0.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +107 -43
- data/lib/mangrove/result.rb +78 -0
- data/lib/mangrove/version.rb +1 -1
- data/lib/tapioca/dsl/compilers/mangrove_enum.rb +7 -1
- data/sorbet/config +1 -0
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
- data/sorbet/rbi/gems/date@3.4.1.rbi +75 -0
- data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +2 -1
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +26 -17
- data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.9.1.rbi} +516 -134
- data/sorbet/rbi/gems/logger@1.6.5.rbi +940 -0
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +31 -21
- data/sorbet/rbi/gems/{parser@3.3.2.0.rbi → parser@3.3.7.0.rbi} +23 -1736
- data/sorbet/rbi/gems/{prism@0.29.0.rbi → prism@1.3.0.rbi} +13817 -10401
- data/sorbet/rbi/gems/{psych@5.1.2.rbi → psych@5.2.3.rbi} +289 -236
- data/sorbet/rbi/gems/{racc@1.8.0.rbi → racc@1.8.1.rbi} +0 -4
- data/sorbet/rbi/gems/rbi@0.2.3.rbi +4542 -0
- data/sorbet/rbi/gems/rbs@3.8.1.rbi +6882 -0
- data/sorbet/rbi/gems/{rdoc@6.7.0.rbi → rdoc@6.11.0.rbi} +1115 -1058
- data/sorbet/rbi/gems/{regexp_parser@2.9.2.rbi → regexp_parser@2.10.0.rbi} +193 -170
- data/sorbet/rbi/gems/{rspec-core@3.13.0.rbi → rspec-core@3.13.2.rbi} +146 -280
- data/sorbet/rbi/gems/{rspec-expectations@3.13.0.rbi → rspec-expectations@3.13.3.rbi} +323 -294
- data/sorbet/rbi/gems/{rspec-mocks@3.13.1.rbi → rspec-mocks@3.13.2.rbi} +46 -46
- data/sorbet/rbi/gems/{rspec-support@3.13.1.rbi → rspec-support@3.13.2.rbi} +22 -22
- data/sorbet/rbi/gems/ruboclean@0.7.1.rbi +473 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.31.3.rbi → rubocop-ast@1.37.0.rbi} +1293 -745
- data/sorbet/rbi/gems/{rubocop-rspec@2.30.0.rbi → rubocop-rspec@3.4.0.rbi} +341 -1073
- data/sorbet/rbi/gems/{rubocop@1.64.1.rbi → rubocop@1.70.0.rbi} +5693 -3796
- data/sorbet/rbi/gems/{simplecov-html@0.12.3.rbi → simplecov-html@0.13.1.rbi} +77 -68
- data/sorbet/rbi/gems/{spoom@1.3.2.rbi → spoom@1.5.1.rbi} +2306 -1701
- data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.2.rbi} +1 -0
- data/sorbet/rbi/gems/{tapioca@0.14.3.rbi → tapioca@0.16.8.rbi} +411 -332
- data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.3.2.rbi} +57 -31
- 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
- data/sorbet/rbi/gems/{webrick@1.8.1.rbi → webrick@1.9.1.rbi} +92 -72
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
- data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +393 -235
- metadata +39 -42
- data/sorbet/rbi/gems/rbi@0.1.13.rbi +0 -3078
- data/sorbet/rbi/gems/rexml@3.2.8.rbi +0 -4794
- data/sorbet/rbi/gems/ruboclean@0.6.0.rbi +0 -315
- data/sorbet/rbi/gems/rubocop-capybara@2.20.0.rbi +0 -1208
- data/sorbet/rbi/gems/rubocop-factory_bot@2.25.1.rbi +0 -928
- data/sorbet/rbi/gems/rubocop-rspec_rails@2.28.3.rbi +0 -911
- data/sorbet/rbi/gems/strscan@3.1.0.rbi +0 -9
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
- /data/sorbet/rbi/gems/{io-console@0.7.2.rbi → io-console@0.8.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{reline@0.5.8.rbi → reline@0.6.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{ruby-lsp@0.17.2.rbi → ruby-lsp@0.23.6.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#700
|
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#694
|
235
238
|
def add_domain_type(domain, type_tag, &block); end
|
236
239
|
|
237
|
-
# source://psych//psych.rb#
|
240
|
+
# source://psych//lib/psych.rb#710
|
238
241
|
def add_tag(tag, klass); end
|
239
242
|
|
240
|
-
# source://psych//psych.rb#
|
243
|
+
# source://psych//lib/psych.rb#726
|
241
244
|
def config; end
|
242
245
|
|
243
|
-
# source://psych//psych.rb#
|
246
|
+
# source://psych//lib/psych.rb#738
|
244
247
|
def domain_types; end
|
245
248
|
|
246
|
-
# source://psych//psych.rb#
|
249
|
+
# source://psych//lib/psych.rb#750
|
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#515
|
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#613
|
301
312
|
def dump_stream(*objects); end
|
302
313
|
|
303
|
-
# source://psych//psych.rb#
|
314
|
+
# source://psych//lib/psych.rb#734
|
304
315
|
def dump_tags; end
|
305
316
|
|
306
|
-
# source://psych//psych.rb#
|
317
|
+
# source://psych//lib/psych.rb#746
|
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#370
|
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#687
|
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#644
|
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#730
|
367
378
|
def load_tags; end
|
368
379
|
|
369
|
-
# source://psych//psych.rb#
|
380
|
+
# source://psych//lib/psych.rb#742
|
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#400
|
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#412
|
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#454
|
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#421
|
436
447
|
def parser; end
|
437
448
|
|
438
|
-
# source://psych//psych.rb#
|
449
|
+
# source://psych//lib/psych.rb#706
|
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#596
|
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,20 @@ 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#324
|
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#676
|
559
578
|
def safe_load_file(filename, **kwargs); end
|
560
579
|
|
561
580
|
# Dump Ruby +object+ to a JSON string.
|
562
581
|
#
|
563
|
-
# source://psych//psych.rb#
|
582
|
+
# source://psych//lib/psych.rb#623
|
564
583
|
def to_json(object); end
|
565
584
|
|
566
585
|
# Load +yaml+ in to a Ruby data structure. If multiple documents are
|
@@ -595,7 +614,7 @@ module Psych
|
|
595
614
|
# YAML documents that are supplied via user input. Instead, please use the
|
596
615
|
# load method or the safe_load method.
|
597
616
|
#
|
598
|
-
# source://psych//psych.rb#
|
617
|
+
# source://psych//lib/psych.rb#273
|
599
618
|
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
619
|
|
601
620
|
# Load the document contained in +filename+. Returns the yaml contained in
|
@@ -606,99 +625,105 @@ module Psych
|
|
606
625
|
# YAML documents that are supplied via user input. Instead, please use the
|
607
626
|
# safe_load_file method.
|
608
627
|
#
|
609
|
-
# source://psych//psych.rb#
|
628
|
+
# source://psych//lib/psych.rb#665
|
610
629
|
def unsafe_load_file(filename, **kwargs); end
|
611
630
|
end
|
612
631
|
end
|
613
632
|
|
614
633
|
# Subclasses `BadAlias` for backwards compatibility
|
634
|
+
#
|
635
|
+
# source://psych//lib/psych/exception.rb#10
|
615
636
|
class Psych::AliasesNotEnabled < ::Psych::BadAlias
|
616
637
|
# @return [AliasesNotEnabled] a new instance of AliasesNotEnabled
|
617
638
|
#
|
618
|
-
# source://psych//psych/exception.rb#11
|
639
|
+
# source://psych//lib/psych/exception.rb#11
|
619
640
|
def initialize; end
|
620
641
|
end
|
621
642
|
|
622
643
|
# Subclasses `BadAlias` for backwards compatibility
|
644
|
+
#
|
645
|
+
# source://psych//lib/psych/exception.rb#17
|
623
646
|
class Psych::AnchorNotDefined < ::Psych::BadAlias
|
624
647
|
# @return [AnchorNotDefined] a new instance of AnchorNotDefined
|
625
648
|
#
|
626
|
-
# source://psych//psych/exception.rb#18
|
649
|
+
# source://psych//lib/psych/exception.rb#18
|
627
650
|
def initialize(anchor_name); end
|
628
651
|
end
|
629
652
|
|
653
|
+
# source://psych//lib/psych/class_loader.rb#6
|
630
654
|
class Psych::ClassLoader
|
631
655
|
# @return [ClassLoader] a new instance of ClassLoader
|
632
656
|
#
|
633
|
-
# source://psych//psych/class_loader.rb#21
|
657
|
+
# source://psych//lib/psych/class_loader.rb#21
|
634
658
|
def initialize; end
|
635
659
|
|
636
|
-
# source://psych//psych/class_loader.rb#39
|
660
|
+
# source://psych//lib/psych/class_loader.rb#39
|
637
661
|
def big_decimal; end
|
638
662
|
|
639
|
-
# source://psych//psych/class_loader.rb#39
|
663
|
+
# source://psych//lib/psych/class_loader.rb#39
|
640
664
|
def complex; end
|
641
665
|
|
642
|
-
# source://psych//psych/class_loader.rb#39
|
666
|
+
# source://psych//lib/psych/class_loader.rb#39
|
643
667
|
def date; end
|
644
668
|
|
645
|
-
# source://psych//psych/class_loader.rb#39
|
669
|
+
# source://psych//lib/psych/class_loader.rb#39
|
646
670
|
def date_time; end
|
647
671
|
|
648
|
-
# source://psych//psych/class_loader.rb#39
|
672
|
+
# source://psych//lib/psych/class_loader.rb#39
|
649
673
|
def exception; end
|
650
674
|
|
651
|
-
# source://psych//psych/class_loader.rb#25
|
675
|
+
# source://psych//lib/psych/class_loader.rb#25
|
652
676
|
def load(klassname); end
|
653
677
|
|
654
|
-
# source://psych//psych/class_loader.rb#39
|
678
|
+
# source://psych//lib/psych/class_loader.rb#39
|
655
679
|
def object; end
|
656
680
|
|
657
|
-
# source://psych//psych/class_loader.rb#39
|
681
|
+
# source://psych//lib/psych/class_loader.rb#39
|
658
682
|
def psych_omap; end
|
659
683
|
|
660
|
-
# source://psych//psych/class_loader.rb#39
|
684
|
+
# source://psych//lib/psych/class_loader.rb#39
|
661
685
|
def psych_set; end
|
662
686
|
|
663
|
-
# source://psych//psych/class_loader.rb#39
|
687
|
+
# source://psych//lib/psych/class_loader.rb#39
|
664
688
|
def range; end
|
665
689
|
|
666
|
-
# source://psych//psych/class_loader.rb#39
|
690
|
+
# source://psych//lib/psych/class_loader.rb#39
|
667
691
|
def rational; end
|
668
692
|
|
669
|
-
# source://psych//psych/class_loader.rb#39
|
693
|
+
# source://psych//lib/psych/class_loader.rb#39
|
670
694
|
def regexp; end
|
671
695
|
|
672
|
-
# source://psych//psych/class_loader.rb#39
|
696
|
+
# source://psych//lib/psych/class_loader.rb#39
|
673
697
|
def struct; end
|
674
698
|
|
675
|
-
# source://psych//psych/class_loader.rb#39
|
699
|
+
# source://psych//lib/psych/class_loader.rb#39
|
676
700
|
def symbol; end
|
677
701
|
|
678
|
-
# source://psych//psych/class_loader.rb#31
|
702
|
+
# source://psych//lib/psych/class_loader.rb#31
|
679
703
|
def symbolize(sym); end
|
680
704
|
|
681
705
|
private
|
682
706
|
|
683
|
-
# source://psych//psych/class_loader.rb#47
|
707
|
+
# source://psych//lib/psych/class_loader.rb#47
|
684
708
|
def find(klassname); end
|
685
709
|
|
686
|
-
# source://psych//psych/class_loader.rb#51
|
710
|
+
# source://psych//lib/psych/class_loader.rb#51
|
687
711
|
def resolve(klassname); end
|
688
712
|
end
|
689
713
|
|
714
|
+
# source://psych//lib/psych/class_loader.rb#76
|
690
715
|
class Psych::ClassLoader::Restricted < ::Psych::ClassLoader
|
691
716
|
# @return [Restricted] a new instance of Restricted
|
692
717
|
#
|
693
|
-
# source://psych//psych/class_loader.rb#77
|
718
|
+
# source://psych//lib/psych/class_loader.rb#77
|
694
719
|
def initialize(classes, symbols); end
|
695
720
|
|
696
|
-
# source://psych//psych/class_loader.rb#83
|
721
|
+
# source://psych//lib/psych/class_loader.rb#83
|
697
722
|
def symbolize(sym); end
|
698
723
|
|
699
724
|
private
|
700
725
|
|
701
|
-
# source://psych//psych/class_loader.rb#95
|
726
|
+
# source://psych//lib/psych/class_loader.rb#95
|
702
727
|
def find(klassname); end
|
703
728
|
end
|
704
729
|
|
@@ -707,31 +732,33 @@ end
|
|
707
732
|
# automatically assumes a Psych::Nodes::Mapping is being emitted. Other
|
708
733
|
# objects like Sequence and Scalar may be emitted if +seq=+ or +scalar=+ are
|
709
734
|
# called, respectively.
|
735
|
+
#
|
736
|
+
# source://psych//lib/psych/coder.rb#9
|
710
737
|
class Psych::Coder
|
711
738
|
# @return [Coder] a new instance of Coder
|
712
739
|
#
|
713
|
-
# source://psych//psych/coder.rb#13
|
740
|
+
# source://psych//lib/psych/coder.rb#13
|
714
741
|
def initialize(tag); end
|
715
742
|
|
716
|
-
# source://psych//psych/coder.rb#84
|
743
|
+
# source://psych//lib/psych/coder.rb#84
|
717
744
|
def [](k); end
|
718
745
|
|
719
|
-
# source://psych//psych/coder.rb#78
|
746
|
+
# source://psych//lib/psych/coder.rb#78
|
720
747
|
def []=(k, v); end
|
721
748
|
|
722
|
-
# source://psych//psych/coder.rb#78
|
749
|
+
# source://psych//lib/psych/coder.rb#78
|
723
750
|
def add(k, v); end
|
724
751
|
|
725
752
|
# Returns the value of attribute implicit.
|
726
753
|
#
|
727
|
-
# source://psych//psych/coder.rb#10
|
754
|
+
# source://psych//lib/psych/coder.rb#10
|
728
755
|
def implicit; end
|
729
756
|
|
730
757
|
# Sets the attribute implicit
|
731
758
|
#
|
732
759
|
# @param value the value to set the attribute implicit to.
|
733
760
|
#
|
734
|
-
# source://psych//psych/coder.rb#10
|
761
|
+
# source://psych//lib/psych/coder.rb#10
|
735
762
|
def implicit=(_arg0); end
|
736
763
|
|
737
764
|
# Emit a map. The coder will be yielded to the block.
|
@@ -739,98 +766,99 @@ class Psych::Coder
|
|
739
766
|
# @yield [_self]
|
740
767
|
# @yieldparam _self [Psych::Coder] the object that the method was called on
|
741
768
|
#
|
742
|
-
# source://psych//psych/coder.rb#34
|
769
|
+
# source://psych//lib/psych/coder.rb#34
|
743
770
|
def map(tag = T.unsafe(nil), style = T.unsafe(nil)); end
|
744
771
|
|
745
772
|
# Emit a map with +value+
|
746
773
|
#
|
747
|
-
# source://psych//psych/coder.rb#73
|
774
|
+
# source://psych//lib/psych/coder.rb#73
|
748
775
|
def map=(map); end
|
749
776
|
|
750
777
|
# Returns the value of attribute object.
|
751
778
|
#
|
752
|
-
# source://psych//psych/coder.rb#10
|
779
|
+
# source://psych//lib/psych/coder.rb#10
|
753
780
|
def object; end
|
754
781
|
|
755
782
|
# Sets the attribute object
|
756
783
|
#
|
757
784
|
# @param value the value to set the attribute object to.
|
758
785
|
#
|
759
|
-
# source://psych//psych/coder.rb#10
|
786
|
+
# source://psych//lib/psych/coder.rb#10
|
760
787
|
def object=(_arg0); end
|
761
788
|
|
762
789
|
# Emit a sequence with +map+ and +tag+
|
763
790
|
#
|
764
|
-
# source://psych//psych/coder.rb#54
|
791
|
+
# source://psych//lib/psych/coder.rb#54
|
765
792
|
def represent_map(tag, map); end
|
766
793
|
|
767
794
|
# Emit an arbitrary object +obj+ and +tag+
|
768
795
|
#
|
769
|
-
# source://psych//psych/coder.rb#60
|
796
|
+
# source://psych//lib/psych/coder.rb#60
|
770
797
|
def represent_object(tag, obj); end
|
771
798
|
|
772
799
|
# Emit a scalar with +value+ and +tag+
|
773
800
|
#
|
774
|
-
# source://psych//psych/coder.rb#42
|
801
|
+
# source://psych//lib/psych/coder.rb#42
|
775
802
|
def represent_scalar(tag, value); end
|
776
803
|
|
777
804
|
# Emit a sequence with +list+ and +tag+
|
778
805
|
#
|
779
|
-
# source://psych//psych/coder.rb#48
|
806
|
+
# source://psych//lib/psych/coder.rb#48
|
780
807
|
def represent_seq(tag, list); end
|
781
808
|
|
782
|
-
# source://psych//psych/coder.rb#24
|
809
|
+
# source://psych//lib/psych/coder.rb#24
|
783
810
|
def scalar(*args); end
|
784
811
|
|
785
812
|
# Emit a scalar with +value+
|
786
813
|
#
|
787
|
-
# source://psych//psych/coder.rb#67
|
814
|
+
# source://psych//lib/psych/coder.rb#67
|
788
815
|
def scalar=(value); end
|
789
816
|
|
790
817
|
# Returns the value of attribute seq.
|
791
818
|
#
|
792
|
-
# source://psych//psych/coder.rb#11
|
819
|
+
# source://psych//lib/psych/coder.rb#11
|
793
820
|
def seq; end
|
794
821
|
|
795
822
|
# Emit a sequence of +list+
|
796
823
|
#
|
797
|
-
# source://psych//psych/coder.rb#90
|
824
|
+
# source://psych//lib/psych/coder.rb#90
|
798
825
|
def seq=(list); end
|
799
826
|
|
800
827
|
# Returns the value of attribute style.
|
801
828
|
#
|
802
|
-
# source://psych//psych/coder.rb#10
|
829
|
+
# source://psych//lib/psych/coder.rb#10
|
803
830
|
def style; end
|
804
831
|
|
805
832
|
# Sets the attribute style
|
806
833
|
#
|
807
834
|
# @param value the value to set the attribute style to.
|
808
835
|
#
|
809
|
-
# source://psych//psych/coder.rb#10
|
836
|
+
# source://psych//lib/psych/coder.rb#10
|
810
837
|
def style=(_arg0); end
|
811
838
|
|
812
839
|
# Returns the value of attribute tag.
|
813
840
|
#
|
814
|
-
# source://psych//psych/coder.rb#10
|
841
|
+
# source://psych//lib/psych/coder.rb#10
|
815
842
|
def tag; end
|
816
843
|
|
817
844
|
# Sets the attribute tag
|
818
845
|
#
|
819
846
|
# @param value the value to set the attribute tag to.
|
820
847
|
#
|
821
|
-
# source://psych//psych/coder.rb#10
|
848
|
+
# source://psych//lib/psych/coder.rb#10
|
822
849
|
def tag=(_arg0); end
|
823
850
|
|
824
851
|
# Returns the value of attribute type.
|
825
852
|
#
|
826
|
-
# source://psych//psych/coder.rb#11
|
853
|
+
# source://psych//lib/psych/coder.rb#11
|
827
854
|
def type; end
|
828
855
|
end
|
829
856
|
|
857
|
+
# source://psych//lib/psych/exception.rb#23
|
830
858
|
class Psych::DisallowedClass < ::Psych::Exception
|
831
859
|
# @return [DisallowedClass] a new instance of DisallowedClass
|
832
860
|
#
|
833
|
-
# source://psych//psych/exception.rb#24
|
861
|
+
# source://psych//lib/psych/exception.rb#24
|
834
862
|
def initialize(action, klass_name); end
|
835
863
|
end
|
836
864
|
|
@@ -843,6 +871,8 @@ end
|
|
843
871
|
# event handlers.
|
844
872
|
#
|
845
873
|
# See Psych::Parser for more details
|
874
|
+
#
|
875
|
+
# source://psych//lib/psych/handler.rb#13
|
846
876
|
class Psych::Handler
|
847
877
|
# Called when an alias is found to +anchor+. +anchor+ will be the name
|
848
878
|
# of the anchor found.
|
@@ -858,13 +888,13 @@ class Psych::Handler
|
|
858
888
|
# &ponies is the anchor, *ponies is the alias. In this case, alias is
|
859
889
|
# called with "ponies".
|
860
890
|
#
|
861
|
-
# source://psych//psych/handler.rb#110
|
891
|
+
# source://psych//lib/psych/handler.rb#110
|
862
892
|
def alias(anchor); end
|
863
893
|
|
864
894
|
# Called when an empty event happens. (Which, as far as I can tell, is
|
865
895
|
# never).
|
866
896
|
#
|
867
|
-
# source://psych//psych/handler.rb#236
|
897
|
+
# source://psych//lib/psych/handler.rb#236
|
868
898
|
def empty; end
|
869
899
|
|
870
900
|
# Called with the document ends. +implicit+ is a boolean value indicating
|
@@ -885,27 +915,27 @@ class Psych::Handler
|
|
885
915
|
#
|
886
916
|
# +implicit+ will be false.
|
887
917
|
#
|
888
|
-
# source://psych//psych/handler.rb#93
|
918
|
+
# source://psych//lib/psych/handler.rb#93
|
889
919
|
def end_document(implicit); end
|
890
920
|
|
891
921
|
# Called when a map ends
|
892
922
|
#
|
893
|
-
# source://psych//psych/handler.rb#230
|
923
|
+
# source://psych//lib/psych/handler.rb#230
|
894
924
|
def end_mapping; end
|
895
925
|
|
896
926
|
# Called when a sequence ends.
|
897
927
|
#
|
898
|
-
# source://psych//psych/handler.rb#191
|
928
|
+
# source://psych//lib/psych/handler.rb#191
|
899
929
|
def end_sequence; end
|
900
930
|
|
901
931
|
# Called when the YAML stream ends
|
902
932
|
#
|
903
|
-
# source://psych//psych/handler.rb#241
|
933
|
+
# source://psych//lib/psych/handler.rb#241
|
904
934
|
def end_stream; end
|
905
935
|
|
906
936
|
# Called before each event with line/column information.
|
907
937
|
#
|
908
|
-
# source://psych//psych/handler.rb#246
|
938
|
+
# source://psych//lib/psych/handler.rb#246
|
909
939
|
def event_location(start_line, start_column, end_line, end_column); end
|
910
940
|
|
911
941
|
# Called when a scalar +value+ is found. The scalar may have an
|
@@ -944,7 +974,7 @@ class Psych::Handler
|
|
944
974
|
# ["many lines", nil, nil, true, false, 1 ]
|
945
975
|
# ["many\nnewlines\n", nil, nil, false, true, 4 ]
|
946
976
|
#
|
947
|
-
# source://psych//psych/handler.rb#150
|
977
|
+
# source://psych//lib/psych/handler.rb#150
|
948
978
|
def scalar(value, anchor, tag, plain, quoted, style); end
|
949
979
|
|
950
980
|
# Called when the document starts with the declared +version+,
|
@@ -969,7 +999,7 @@ class Psych::Handler
|
|
969
999
|
# tag_directives # => [["!", "tag:tenderlovemaking.com,2009:"]]
|
970
1000
|
# implicit # => false
|
971
1001
|
#
|
972
|
-
# source://psych//psych/handler.rb#72
|
1002
|
+
# source://psych//lib/psych/handler.rb#72
|
973
1003
|
def start_document(version, tag_directives, implicit); end
|
974
1004
|
|
975
1005
|
# Called when a map starts.
|
@@ -1002,7 +1032,7 @@ class Psych::Handler
|
|
1002
1032
|
# [nil, "tag:yaml.org,2002:map", false, 2 ]
|
1003
1033
|
# ["pewpew", nil, true, 1 ]
|
1004
1034
|
#
|
1005
|
-
# source://psych//psych/handler.rb#225
|
1035
|
+
# source://psych//lib/psych/handler.rb#225
|
1006
1036
|
def start_mapping(anchor, tag, implicit, style); end
|
1007
1037
|
|
1008
1038
|
# Called when a sequence is started.
|
@@ -1037,7 +1067,7 @@ class Psych::Handler
|
|
1037
1067
|
# [nil, "tag:yaml.org,2002:seq", false, 2 ]
|
1038
1068
|
# ["pewpew", nil, true, 1 ]
|
1039
1069
|
#
|
1040
|
-
# source://psych//psych/handler.rb#186
|
1070
|
+
# source://psych//lib/psych/handler.rb#186
|
1041
1071
|
def start_sequence(anchor, tag, implicit, style); end
|
1042
1072
|
|
1043
1073
|
# Called with +encoding+ when the YAML stream starts. This method is
|
@@ -1045,61 +1075,64 @@ class Psych::Handler
|
|
1045
1075
|
#
|
1046
1076
|
# See the constants in Psych::Parser for the possible values of +encoding+.
|
1047
1077
|
#
|
1048
|
-
# source://psych//psych/handler.rb#47
|
1078
|
+
# source://psych//lib/psych/handler.rb#47
|
1049
1079
|
def start_stream(encoding); end
|
1050
1080
|
|
1051
1081
|
# Is this handler a streaming handler?
|
1052
1082
|
#
|
1053
1083
|
# @return [Boolean]
|
1054
1084
|
#
|
1055
|
-
# source://psych//psych/handler.rb#251
|
1085
|
+
# source://psych//lib/psych/handler.rb#251
|
1056
1086
|
def streaming?; end
|
1057
1087
|
end
|
1058
1088
|
|
1059
1089
|
# Configuration options for dumping YAML.
|
1090
|
+
#
|
1091
|
+
# source://psych//lib/psych/handler.rb#16
|
1060
1092
|
class Psych::Handler::DumperOptions
|
1061
1093
|
# @return [DumperOptions] a new instance of DumperOptions
|
1062
1094
|
#
|
1063
|
-
# source://psych//psych/handler.rb#19
|
1095
|
+
# source://psych//lib/psych/handler.rb#19
|
1064
1096
|
def initialize; end
|
1065
1097
|
|
1066
1098
|
# Returns the value of attribute canonical.
|
1067
1099
|
#
|
1068
|
-
# source://psych//psych/handler.rb#17
|
1100
|
+
# source://psych//lib/psych/handler.rb#17
|
1069
1101
|
def canonical; end
|
1070
1102
|
|
1071
1103
|
# Sets the attribute canonical
|
1072
1104
|
#
|
1073
1105
|
# @param value the value to set the attribute canonical to.
|
1074
1106
|
#
|
1075
|
-
# source://psych//psych/handler.rb#17
|
1107
|
+
# source://psych//lib/psych/handler.rb#17
|
1076
1108
|
def canonical=(_arg0); end
|
1077
1109
|
|
1078
1110
|
# Returns the value of attribute indentation.
|
1079
1111
|
#
|
1080
|
-
# source://psych//psych/handler.rb#17
|
1112
|
+
# source://psych//lib/psych/handler.rb#17
|
1081
1113
|
def indentation; end
|
1082
1114
|
|
1083
1115
|
# Sets the attribute indentation
|
1084
1116
|
#
|
1085
1117
|
# @param value the value to set the attribute indentation to.
|
1086
1118
|
#
|
1087
|
-
# source://psych//psych/handler.rb#17
|
1119
|
+
# source://psych//lib/psych/handler.rb#17
|
1088
1120
|
def indentation=(_arg0); end
|
1089
1121
|
|
1090
1122
|
# Returns the value of attribute line_width.
|
1091
1123
|
#
|
1092
|
-
# source://psych//psych/handler.rb#17
|
1124
|
+
# source://psych//lib/psych/handler.rb#17
|
1093
1125
|
def line_width; end
|
1094
1126
|
|
1095
1127
|
# Sets the attribute line_width
|
1096
1128
|
#
|
1097
1129
|
# @param value the value to set the attribute line_width to.
|
1098
1130
|
#
|
1099
|
-
# source://psych//psych/handler.rb#17
|
1131
|
+
# source://psych//lib/psych/handler.rb#17
|
1100
1132
|
def line_width=(_arg0); end
|
1101
1133
|
end
|
1102
1134
|
|
1135
|
+
# source://psych//lib/psych/json/stream.rb#7
|
1103
1136
|
class Psych::JSON::Stream < ::Psych::Visitors::JSONTree
|
1104
1137
|
include ::Psych::Streaming
|
1105
1138
|
extend ::Psych::Streaming::ClassMethods
|
@@ -1133,28 +1166,30 @@ end
|
|
1133
1166
|
#
|
1134
1167
|
# Psych uses Psych::Parser in combination with Psych::TreeBuilder to
|
1135
1168
|
# construct an AST of the parsed YAML document.
|
1169
|
+
#
|
1170
|
+
# source://psych//lib/psych/parser.rb#33
|
1136
1171
|
class Psych::Parser
|
1137
1172
|
# Creates a new Psych::Parser instance with +handler+. YAML events will
|
1138
1173
|
# be called on +handler+. See Psych::Parser for more details.
|
1139
1174
|
#
|
1140
1175
|
# @return [Parser] a new instance of Parser
|
1141
1176
|
#
|
1142
|
-
# source://psych//psych/parser.rb#47
|
1177
|
+
# source://psych//lib/psych/parser.rb#47
|
1143
1178
|
def initialize(handler = T.unsafe(nil)); end
|
1144
1179
|
|
1145
1180
|
# Set the encoding for this parser to +encoding+
|
1146
1181
|
#
|
1147
|
-
# source://psych//psych/parser.rb#41
|
1182
|
+
# source://psych//lib/psych/parser.rb#41
|
1148
1183
|
def external_encoding=(_arg0); end
|
1149
1184
|
|
1150
1185
|
# The handler on which events will be called
|
1151
1186
|
#
|
1152
|
-
# source://psych//psych/parser.rb#38
|
1187
|
+
# source://psych//lib/psych/parser.rb#38
|
1153
1188
|
def handler; end
|
1154
1189
|
|
1155
1190
|
# The handler on which events will be called
|
1156
1191
|
#
|
1157
|
-
# source://psych//psych/parser.rb#38
|
1192
|
+
# source://psych//lib/psych/parser.rb#38
|
1158
1193
|
def handler=(_arg0); end
|
1159
1194
|
|
1160
1195
|
# call-seq:
|
@@ -1165,49 +1200,51 @@ class Psych::Parser
|
|
1165
1200
|
#
|
1166
1201
|
# See Psych::Parser and Psych::Parser#handler
|
1167
1202
|
#
|
1168
|
-
# source://psych//psych/parser.rb#61
|
1203
|
+
# source://psych//lib/psych/parser.rb#61
|
1169
1204
|
def parse(yaml, path = T.unsafe(nil)); end
|
1170
1205
|
end
|
1171
1206
|
|
1172
1207
|
# Scan scalars for built in types
|
1208
|
+
#
|
1209
|
+
# source://psych//lib/psych/scalar_scanner.rb#6
|
1173
1210
|
class Psych::ScalarScanner
|
1174
1211
|
# Create a new scanner
|
1175
1212
|
#
|
1176
1213
|
# @return [ScalarScanner] a new instance of ScalarScanner
|
1177
1214
|
#
|
1178
|
-
# source://psych//psych/scalar_scanner.rb#30
|
1215
|
+
# source://psych//lib/psych/scalar_scanner.rb#30
|
1179
1216
|
def initialize(class_loader, strict_integer: T.unsafe(nil)); end
|
1180
1217
|
|
1181
1218
|
# Returns the value of attribute class_loader.
|
1182
1219
|
#
|
1183
|
-
# source://psych//psych/scalar_scanner.rb#27
|
1220
|
+
# source://psych//lib/psych/scalar_scanner.rb#27
|
1184
1221
|
def class_loader; end
|
1185
1222
|
|
1186
1223
|
# Parse and return an int from +string+
|
1187
1224
|
#
|
1188
|
-
# source://psych//psych/scalar_scanner.rb#
|
1225
|
+
# source://psych//lib/psych/scalar_scanner.rb#108
|
1189
1226
|
def parse_int(string); end
|
1190
1227
|
|
1191
1228
|
# Parse and return a Time from +string+
|
1192
1229
|
#
|
1193
|
-
# source://psych//psych/scalar_scanner.rb#
|
1230
|
+
# source://psych//lib/psych/scalar_scanner.rb#114
|
1194
1231
|
def parse_time(string); end
|
1195
1232
|
|
1196
1233
|
# Tokenize +string+ returning the Ruby object
|
1197
1234
|
#
|
1198
|
-
# source://psych//psych/scalar_scanner.rb#37
|
1235
|
+
# source://psych//lib/psych/scalar_scanner.rb#37
|
1199
1236
|
def tokenize(string); end
|
1200
1237
|
end
|
1201
1238
|
|
1202
1239
|
# Same as above, but allows commas.
|
1203
1240
|
# Not to YML spec, but kept for backwards compatibility
|
1204
1241
|
#
|
1205
|
-
# source://psych//psych/scalar_scanner.rb#22
|
1242
|
+
# source://psych//lib/psych/scalar_scanner.rb#22
|
1206
1243
|
Psych::ScalarScanner::INTEGER_LEGACY = T.let(T.unsafe(nil), Regexp)
|
1207
1244
|
|
1208
|
-
# Taken from http://yaml.org/type/int.html
|
1245
|
+
# Taken from http://yaml.org/type/int.html and modified to ensure at least one numerical symbol exists
|
1209
1246
|
#
|
1210
|
-
# source://psych//psych/scalar_scanner.rb#15
|
1247
|
+
# source://psych//lib/psych/scalar_scanner.rb#15
|
1211
1248
|
Psych::ScalarScanner::INTEGER_STRICT = T.let(T.unsafe(nil), Regexp)
|
1212
1249
|
|
1213
1250
|
# Psych::Stream is a streaming YAML emitter. It will not buffer your YAML,
|
@@ -1229,75 +1266,81 @@ Psych::ScalarScanner::INTEGER_STRICT = T.let(T.unsafe(nil), Regexp)
|
|
1229
1266
|
# stream.start do |em|
|
1230
1267
|
# em.push(:foo => 'bar')
|
1231
1268
|
# end
|
1269
|
+
#
|
1270
|
+
# source://psych//lib/psych/stream.rb#24
|
1232
1271
|
class Psych::Stream < ::Psych::Visitors::YAMLTree
|
1233
1272
|
include ::Psych::Streaming
|
1234
1273
|
extend ::Psych::Streaming::ClassMethods
|
1235
1274
|
end
|
1236
1275
|
|
1276
|
+
# source://psych//lib/psych/stream.rb#25
|
1237
1277
|
class Psych::Stream::Emitter < ::Psych::Emitter
|
1238
|
-
# source://psych//psych/stream.rb#26
|
1278
|
+
# source://psych//lib/psych/stream.rb#26
|
1239
1279
|
def end_document(implicit_end = T.unsafe(nil)); end
|
1240
1280
|
|
1241
1281
|
# @return [Boolean]
|
1242
1282
|
#
|
1243
|
-
# source://psych//psych/stream.rb#30
|
1283
|
+
# source://psych//lib/psych/stream.rb#30
|
1244
1284
|
def streaming?; end
|
1245
1285
|
end
|
1246
1286
|
|
1287
|
+
# source://psych//lib/psych/streaming.rb#3
|
1247
1288
|
module Psych::Streaming
|
1248
1289
|
# Start streaming using +encoding+
|
1249
1290
|
#
|
1250
|
-
# source://psych//psych/streaming.rb#18
|
1291
|
+
# source://psych//lib/psych/streaming.rb#18
|
1251
1292
|
def start(encoding = T.unsafe(nil)); end
|
1252
1293
|
|
1253
1294
|
private
|
1254
1295
|
|
1255
|
-
# source://psych//psych/streaming.rb#25
|
1296
|
+
# source://psych//lib/psych/streaming.rb#25
|
1256
1297
|
def register(target, obj); end
|
1257
1298
|
end
|
1258
1299
|
|
1300
|
+
# source://psych//lib/psych/streaming.rb#4
|
1259
1301
|
module Psych::Streaming::ClassMethods
|
1260
1302
|
# Create a new streaming emitter. Emitter will print to +io+. See
|
1261
1303
|
# Psych::Stream for an example.
|
1262
1304
|
#
|
1263
|
-
# source://psych//psych/streaming.rb#8
|
1305
|
+
# source://psych//lib/psych/streaming.rb#8
|
1264
1306
|
def new(io); end
|
1265
1307
|
end
|
1266
1308
|
|
1309
|
+
# source://psych//lib/psych/syntax_error.rb#5
|
1267
1310
|
class Psych::SyntaxError < ::Psych::Exception
|
1268
1311
|
# @return [SyntaxError] a new instance of SyntaxError
|
1269
1312
|
#
|
1270
|
-
# source://psych//psych/syntax_error.rb#8
|
1313
|
+
# source://psych//lib/psych/syntax_error.rb#8
|
1271
1314
|
def initialize(file, line, col, offset, problem, context); end
|
1272
1315
|
|
1273
1316
|
# Returns the value of attribute column.
|
1274
1317
|
#
|
1275
|
-
# source://psych//psych/syntax_error.rb#6
|
1318
|
+
# source://psych//lib/psych/syntax_error.rb#6
|
1276
1319
|
def column; end
|
1277
1320
|
|
1278
1321
|
# Returns the value of attribute context.
|
1279
1322
|
#
|
1280
|
-
# source://psych//psych/syntax_error.rb#6
|
1323
|
+
# source://psych//lib/psych/syntax_error.rb#6
|
1281
1324
|
def context; end
|
1282
1325
|
|
1283
1326
|
# Returns the value of attribute file.
|
1284
1327
|
#
|
1285
|
-
# source://psych//psych/syntax_error.rb#6
|
1328
|
+
# source://psych//lib/psych/syntax_error.rb#6
|
1286
1329
|
def file; end
|
1287
1330
|
|
1288
1331
|
# Returns the value of attribute line.
|
1289
1332
|
#
|
1290
|
-
# source://psych//psych/syntax_error.rb#6
|
1333
|
+
# source://psych//lib/psych/syntax_error.rb#6
|
1291
1334
|
def line; end
|
1292
1335
|
|
1293
1336
|
# Returns the value of attribute offset.
|
1294
1337
|
#
|
1295
|
-
# source://psych//psych/syntax_error.rb#6
|
1338
|
+
# source://psych//lib/psych/syntax_error.rb#6
|
1296
1339
|
def offset; end
|
1297
1340
|
|
1298
1341
|
# Returns the value of attribute problem.
|
1299
1342
|
#
|
1300
|
-
# source://psych//psych/syntax_error.rb#6
|
1343
|
+
# source://psych//lib/psych/syntax_error.rb#6
|
1301
1344
|
def problem; end
|
1302
1345
|
end
|
1303
1346
|
|
@@ -1312,15 +1355,17 @@ end
|
|
1312
1355
|
#
|
1313
1356
|
# See Psych::Handler for documentation on the event methods used in this
|
1314
1357
|
# class.
|
1358
|
+
#
|
1359
|
+
# source://psych//lib/psych/tree_builder.rb#17
|
1315
1360
|
class Psych::TreeBuilder < ::Psych::Handler
|
1316
1361
|
# Create a new TreeBuilder instance
|
1317
1362
|
#
|
1318
1363
|
# @return [TreeBuilder] a new instance of TreeBuilder
|
1319
1364
|
#
|
1320
|
-
# source://psych//psych/tree_builder.rb#22
|
1365
|
+
# source://psych//lib/psych/tree_builder.rb#22
|
1321
1366
|
def initialize; end
|
1322
1367
|
|
1323
|
-
# source://psych//psych/tree_builder.rb#103
|
1368
|
+
# source://psych//lib/psych/tree_builder.rb#103
|
1324
1369
|
def alias(anchor); end
|
1325
1370
|
|
1326
1371
|
# Handles end_document events with +version+, +tag_directives+,
|
@@ -1328,27 +1373,27 @@ class Psych::TreeBuilder < ::Psych::Handler
|
|
1328
1373
|
#
|
1329
1374
|
# See Psych::Handler#start_document
|
1330
1375
|
#
|
1331
|
-
# source://psych//psych/tree_builder.rb#77
|
1376
|
+
# source://psych//lib/psych/tree_builder.rb#77
|
1332
1377
|
def end_document(implicit_end = T.unsafe(nil)); end
|
1333
1378
|
|
1334
|
-
# source://psych//psych/tree_builder.rb#52
|
1379
|
+
# source://psych//lib/psych/tree_builder.rb#52
|
1335
1380
|
def end_mapping; end
|
1336
1381
|
|
1337
|
-
# source://psych//psych/tree_builder.rb#52
|
1382
|
+
# source://psych//lib/psych/tree_builder.rb#52
|
1338
1383
|
def end_sequence; end
|
1339
1384
|
|
1340
|
-
# source://psych//psych/tree_builder.rb#90
|
1385
|
+
# source://psych//lib/psych/tree_builder.rb#90
|
1341
1386
|
def end_stream; end
|
1342
1387
|
|
1343
|
-
# source://psych//psych/tree_builder.rb#33
|
1388
|
+
# source://psych//lib/psych/tree_builder.rb#33
|
1344
1389
|
def event_location(start_line, start_column, end_line, end_column); end
|
1345
1390
|
|
1346
1391
|
# Returns the root node for the built tree
|
1347
1392
|
#
|
1348
|
-
# source://psych//psych/tree_builder.rb#19
|
1393
|
+
# source://psych//lib/psych/tree_builder.rb#19
|
1349
1394
|
def root; end
|
1350
1395
|
|
1351
|
-
# source://psych//psych/tree_builder.rb#96
|
1396
|
+
# source://psych//lib/psych/tree_builder.rb#96
|
1352
1397
|
def scalar(value, anchor, tag, plain, quoted, style); end
|
1353
1398
|
|
1354
1399
|
# Handles start_document events with +version+, +tag_directives+,
|
@@ -1356,176 +1401,181 @@ class Psych::TreeBuilder < ::Psych::Handler
|
|
1356
1401
|
#
|
1357
1402
|
# See Psych::Handler#start_document
|
1358
1403
|
#
|
1359
|
-
# source://psych//psych/tree_builder.rb#65
|
1404
|
+
# source://psych//lib/psych/tree_builder.rb#65
|
1360
1405
|
def start_document(version, tag_directives, implicit); end
|
1361
1406
|
|
1362
|
-
# source://psych//psych/tree_builder.rb#45
|
1407
|
+
# source://psych//lib/psych/tree_builder.rb#45
|
1363
1408
|
def start_mapping(anchor, tag, implicit, style); end
|
1364
1409
|
|
1365
|
-
# source://psych//psych/tree_builder.rb#45
|
1410
|
+
# source://psych//lib/psych/tree_builder.rb#45
|
1366
1411
|
def start_sequence(anchor, tag, implicit, style); end
|
1367
1412
|
|
1368
|
-
# source://psych//psych/tree_builder.rb#84
|
1413
|
+
# source://psych//lib/psych/tree_builder.rb#84
|
1369
1414
|
def start_stream(encoding); end
|
1370
1415
|
|
1371
1416
|
private
|
1372
1417
|
|
1373
|
-
# source://psych//psych/tree_builder.rb#116
|
1418
|
+
# source://psych//lib/psych/tree_builder.rb#116
|
1374
1419
|
def pop; end
|
1375
1420
|
|
1376
|
-
# source://psych//psych/tree_builder.rb#111
|
1421
|
+
# source://psych//lib/psych/tree_builder.rb#111
|
1377
1422
|
def push(value); end
|
1378
1423
|
|
1379
|
-
# source://psych//psych/tree_builder.rb#132
|
1424
|
+
# source://psych//lib/psych/tree_builder.rb#132
|
1380
1425
|
def set_end_location(node); end
|
1381
1426
|
|
1382
|
-
# source://psych//psych/tree_builder.rb#122
|
1427
|
+
# source://psych//lib/psych/tree_builder.rb#122
|
1383
1428
|
def set_location(node); end
|
1384
1429
|
|
1385
|
-
# source://psych//psych/tree_builder.rb#127
|
1430
|
+
# source://psych//lib/psych/tree_builder.rb#127
|
1386
1431
|
def set_start_location(node); end
|
1387
1432
|
end
|
1388
1433
|
|
1389
1434
|
# The version of Psych you are using
|
1390
1435
|
#
|
1391
|
-
# source://psych//psych/versions.rb#5
|
1436
|
+
# source://psych//lib/psych/versions.rb#5
|
1392
1437
|
Psych::VERSION = T.let(T.unsafe(nil), String)
|
1393
1438
|
|
1439
|
+
# source://psych//lib/psych/visitors/depth_first.rb#4
|
1394
1440
|
class Psych::Visitors::DepthFirst < ::Psych::Visitors::Visitor
|
1395
1441
|
# @return [DepthFirst] a new instance of DepthFirst
|
1396
1442
|
#
|
1397
|
-
# source://psych//psych/visitors/depth_first.rb#5
|
1443
|
+
# source://psych//lib/psych/visitors/depth_first.rb#5
|
1398
1444
|
def initialize(block); end
|
1399
1445
|
|
1400
1446
|
private
|
1401
1447
|
|
1402
|
-
# source://psych//psych/visitors/depth_first.rb#11
|
1448
|
+
# source://psych//lib/psych/visitors/depth_first.rb#11
|
1403
1449
|
def nary(o); end
|
1404
1450
|
|
1405
|
-
# source://psych//psych/visitors/depth_first.rb#20
|
1451
|
+
# source://psych//lib/psych/visitors/depth_first.rb#20
|
1406
1452
|
def terminal(o); end
|
1407
1453
|
|
1408
|
-
# source://psych//psych/visitors/depth_first.rb#20
|
1454
|
+
# source://psych//lib/psych/visitors/depth_first.rb#20
|
1409
1455
|
def visit_Psych_Nodes_Alias(o); end
|
1410
1456
|
|
1411
|
-
# source://psych//psych/visitors/depth_first.rb#11
|
1457
|
+
# source://psych//lib/psych/visitors/depth_first.rb#11
|
1412
1458
|
def visit_Psych_Nodes_Document(o); end
|
1413
1459
|
|
1414
|
-
# source://psych//psych/visitors/depth_first.rb#11
|
1460
|
+
# source://psych//lib/psych/visitors/depth_first.rb#11
|
1415
1461
|
def visit_Psych_Nodes_Mapping(o); end
|
1416
1462
|
|
1417
|
-
# source://psych//psych/visitors/depth_first.rb#20
|
1463
|
+
# source://psych//lib/psych/visitors/depth_first.rb#20
|
1418
1464
|
def visit_Psych_Nodes_Scalar(o); end
|
1419
1465
|
|
1420
|
-
# source://psych//psych/visitors/depth_first.rb#11
|
1466
|
+
# source://psych//lib/psych/visitors/depth_first.rb#11
|
1421
1467
|
def visit_Psych_Nodes_Sequence(o); end
|
1422
1468
|
|
1423
|
-
# source://psych//psych/visitors/depth_first.rb#11
|
1469
|
+
# source://psych//lib/psych/visitors/depth_first.rb#11
|
1424
1470
|
def visit_Psych_Nodes_Stream(o); end
|
1425
1471
|
end
|
1426
1472
|
|
1473
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#537
|
1427
1474
|
class Psych::Visitors::RestrictedYAMLTree < ::Psych::Visitors::YAMLTree
|
1428
1475
|
# @return [RestrictedYAMLTree] a new instance of RestrictedYAMLTree
|
1429
1476
|
#
|
1430
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1477
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#549
|
1431
1478
|
def initialize(emitter, ss, options); end
|
1432
1479
|
|
1433
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1480
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#562
|
1434
1481
|
def accept(target); end
|
1435
1482
|
|
1436
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1483
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#574
|
1437
1484
|
def visit_Symbol(sym); end
|
1438
1485
|
end
|
1439
1486
|
|
1440
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1487
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#538
|
1441
1488
|
Psych::Visitors::RestrictedYAMLTree::DEFAULT_PERMITTED_CLASSES = T.let(T.unsafe(nil), Hash)
|
1442
1489
|
|
1443
1490
|
# This class walks a YAML AST, converting each node to Ruby
|
1491
|
+
#
|
1492
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#14
|
1444
1493
|
class Psych::Visitors::ToRuby < ::Psych::Visitors::Visitor
|
1445
1494
|
# @return [ToRuby] a new instance of ToRuby
|
1446
1495
|
#
|
1447
|
-
# source://psych//psych/visitors/to_ruby.rb#23
|
1496
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#23
|
1448
1497
|
def initialize(ss, class_loader, symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil)); end
|
1449
1498
|
|
1450
|
-
# source://psych//psych/visitors/to_ruby.rb#34
|
1499
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#34
|
1451
1500
|
def accept(target); end
|
1452
1501
|
|
1453
1502
|
# Returns the value of attribute class_loader.
|
1454
1503
|
#
|
1455
|
-
# source://psych//psych/visitors/to_ruby.rb#21
|
1504
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#21
|
1456
1505
|
def class_loader; end
|
1457
1506
|
|
1458
|
-
# source://psych//psych/visitors/to_ruby.rb#
|
1507
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#326
|
1459
1508
|
def visit_Psych_Nodes_Alias(o); end
|
1460
1509
|
|
1461
|
-
# source://psych//psych/visitors/to_ruby.rb#
|
1510
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#318
|
1462
1511
|
def visit_Psych_Nodes_Document(o); end
|
1463
1512
|
|
1464
|
-
# source://psych//psych/visitors/to_ruby.rb#
|
1513
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#164
|
1465
1514
|
def visit_Psych_Nodes_Mapping(o); end
|
1466
1515
|
|
1467
|
-
# source://psych//psych/visitors/to_ruby.rb#
|
1516
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#128
|
1468
1517
|
def visit_Psych_Nodes_Scalar(o); end
|
1469
1518
|
|
1470
|
-
# source://psych//psych/visitors/to_ruby.rb#
|
1519
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#132
|
1471
1520
|
def visit_Psych_Nodes_Sequence(o); end
|
1472
1521
|
|
1473
|
-
# source://psych//psych/visitors/to_ruby.rb#
|
1522
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#322
|
1474
1523
|
def visit_Psych_Nodes_Stream(o); end
|
1475
1524
|
|
1476
1525
|
private
|
1477
1526
|
|
1478
|
-
# source://psych//psych/visitors/to_ruby.rb#
|
1527
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#394
|
1479
1528
|
def deduplicate(key); end
|
1480
1529
|
|
1481
|
-
# source://psych//psych/visitors/to_ruby.rb#51
|
1530
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#51
|
1482
1531
|
def deserialize(o); end
|
1483
1532
|
|
1484
|
-
# source://psych//psych/visitors/to_ruby.rb#
|
1533
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#411
|
1485
1534
|
def init_with(o, h, node); end
|
1486
1535
|
|
1487
|
-
# source://psych//psych/visitors/to_ruby.rb#
|
1536
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#403
|
1488
1537
|
def merge_key(hash, key, val); end
|
1489
1538
|
|
1490
|
-
# source://psych//psych/visitors/to_ruby.rb#
|
1539
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#332
|
1491
1540
|
def register(node, object); end
|
1492
1541
|
|
1493
|
-
# source://psych//psych/visitors/to_ruby.rb#
|
1542
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#337
|
1494
1543
|
def register_empty(object); end
|
1495
1544
|
|
1496
1545
|
# Convert +klassname+ to a Class
|
1497
1546
|
#
|
1498
|
-
# source://psych//psych/visitors/to_ruby.rb#
|
1547
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#424
|
1499
1548
|
def resolve_class(klassname); end
|
1500
1549
|
|
1501
|
-
# source://psych//psych/visitors/to_ruby.rb#
|
1550
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#406
|
1502
1551
|
def revive(klass, node); end
|
1503
1552
|
|
1504
|
-
# source://psych//psych/visitors/to_ruby.rb#
|
1553
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#343
|
1505
1554
|
def revive_hash(hash, o, tagged = T.unsafe(nil)); end
|
1506
1555
|
|
1507
1556
|
class << self
|
1508
|
-
# source://psych//psych/visitors/to_ruby.rb#15
|
1557
|
+
# source://psych//lib/psych/visitors/to_ruby.rb#15
|
1509
1558
|
def create(symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end
|
1510
1559
|
end
|
1511
1560
|
end
|
1512
1561
|
|
1562
|
+
# source://psych//lib/psych/visitors/visitor.rb#4
|
1513
1563
|
class Psych::Visitors::Visitor
|
1514
|
-
# source://psych//psych/visitors/visitor.rb#5
|
1564
|
+
# source://psych//lib/psych/visitors/visitor.rb#5
|
1515
1565
|
def accept(target); end
|
1516
1566
|
|
1517
1567
|
private
|
1518
1568
|
|
1519
|
-
# source://psych//psych/visitors/visitor.rb#19
|
1569
|
+
# source://psych//lib/psych/visitors/visitor.rb#19
|
1520
1570
|
def dispatch; end
|
1521
1571
|
|
1522
|
-
# source://psych//psych/visitors/visitor.rb#29
|
1572
|
+
# source://psych//lib/psych/visitors/visitor.rb#29
|
1523
1573
|
def visit(target); end
|
1524
1574
|
|
1525
1575
|
class << self
|
1526
1576
|
# @api private
|
1527
1577
|
#
|
1528
|
-
# source://psych//psych/visitors/visitor.rb#12
|
1578
|
+
# source://psych//lib/psych/visitors/visitor.rb#12
|
1529
1579
|
def dispatch_cache; end
|
1530
1580
|
end
|
1531
1581
|
end
|
@@ -1535,198 +1585,201 @@ end
|
|
1535
1585
|
# builder = Psych::Visitors::YAMLTree.new
|
1536
1586
|
# builder << { :foo => 'bar' }
|
1537
1587
|
# builder.tree # => #<Psych::Nodes::Stream .. }
|
1588
|
+
#
|
1589
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#15
|
1538
1590
|
class Psych::Visitors::YAMLTree < ::Psych::Visitors::Visitor
|
1539
1591
|
# @return [YAMLTree] a new instance of YAMLTree
|
1540
1592
|
#
|
1541
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1593
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#51
|
1542
1594
|
def initialize(emitter, ss, options); end
|
1543
1595
|
|
1544
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1596
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#99
|
1545
1597
|
def <<(object); end
|
1546
1598
|
|
1547
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1599
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#119
|
1548
1600
|
def accept(target); end
|
1549
1601
|
|
1550
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1602
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#88
|
1551
1603
|
def finish; end
|
1552
1604
|
|
1553
1605
|
# Returns the value of attribute finished.
|
1554
1606
|
#
|
1555
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1607
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#40
|
1556
1608
|
def finished; end
|
1557
1609
|
|
1558
1610
|
# Returns the value of attribute finished.
|
1559
1611
|
#
|
1560
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1612
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#40
|
1561
1613
|
def finished?; end
|
1562
1614
|
|
1563
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1615
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#99
|
1564
1616
|
def push(object); end
|
1565
1617
|
|
1566
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1618
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#82
|
1567
1619
|
def start(encoding = T.unsafe(nil)); end
|
1568
1620
|
|
1569
1621
|
# Returns the value of attribute started.
|
1570
1622
|
#
|
1571
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1623
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#40
|
1572
1624
|
def started; end
|
1573
1625
|
|
1574
1626
|
# Returns the value of attribute started.
|
1575
1627
|
#
|
1576
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1628
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#40
|
1577
1629
|
def started?; end
|
1578
1630
|
|
1579
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1631
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#94
|
1580
1632
|
def tree; end
|
1581
1633
|
|
1582
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1634
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#347
|
1583
1635
|
def visit_Array(o); end
|
1584
1636
|
|
1585
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1637
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#373
|
1586
1638
|
def visit_BasicObject(o); end
|
1587
1639
|
|
1588
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1640
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#247
|
1589
1641
|
def visit_BigDecimal(o); end
|
1590
1642
|
|
1591
1643
|
# @raise [TypeError]
|
1592
1644
|
#
|
1593
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1645
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#310
|
1594
1646
|
def visit_Class(o); end
|
1595
1647
|
|
1596
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1648
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#220
|
1597
1649
|
def visit_Complex(o); end
|
1598
1650
|
|
1599
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1651
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#191
|
1600
1652
|
def visit_Date(o); end
|
1601
1653
|
|
1602
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1654
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#195
|
1603
1655
|
def visit_DateTime(o); end
|
1604
1656
|
|
1605
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1657
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#149
|
1606
1658
|
def visit_Delegator(o); end
|
1607
1659
|
|
1608
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1660
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#144
|
1609
1661
|
def visit_Encoding(o); end
|
1610
1662
|
|
1611
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1663
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#355
|
1612
1664
|
def visit_Enumerator(o); end
|
1613
1665
|
|
1614
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1666
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#179
|
1615
1667
|
def visit_Exception(o); end
|
1616
1668
|
|
1617
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1669
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#230
|
1618
1670
|
def visit_FalseClass(o); end
|
1619
1671
|
|
1620
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1672
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#236
|
1621
1673
|
def visit_Float(o); end
|
1622
1674
|
|
1623
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1675
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#323
|
1624
1676
|
def visit_Hash(o); end
|
1625
1677
|
|
1626
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1678
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#230
|
1627
1679
|
def visit_Integer(o); end
|
1628
1680
|
|
1629
1681
|
# @raise [TypeError]
|
1630
1682
|
#
|
1631
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1683
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#305
|
1632
1684
|
def visit_Module(o); end
|
1633
1685
|
|
1634
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1686
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#183
|
1635
1687
|
def visit_NameError(o); end
|
1636
1688
|
|
1637
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1689
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#361
|
1638
1690
|
def visit_NilClass(o); end
|
1639
1691
|
|
1640
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1692
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#149
|
1641
1693
|
def visit_Object(o); end
|
1642
1694
|
|
1643
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1695
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#136
|
1644
1696
|
def visit_Psych_Omap(o); end
|
1645
1697
|
|
1646
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1698
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#336
|
1647
1699
|
def visit_Psych_Set(o); end
|
1648
1700
|
|
1649
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1701
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#315
|
1650
1702
|
def visit_Range(o); end
|
1651
1703
|
|
1652
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1704
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#207
|
1653
1705
|
def visit_Rational(o); end
|
1654
1706
|
|
1655
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1707
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#187
|
1656
1708
|
def visit_Regexp(o); end
|
1657
1709
|
|
1658
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1710
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#251
|
1659
1711
|
def visit_String(o); end
|
1660
1712
|
|
1661
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1713
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#165
|
1662
1714
|
def visit_Struct(o); end
|
1663
1715
|
|
1664
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1716
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#365
|
1665
1717
|
def visit_Symbol(o); end
|
1666
1718
|
|
1667
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1719
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#202
|
1668
1720
|
def visit_Time(o); end
|
1669
1721
|
|
1670
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1722
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#230
|
1671
1723
|
def visit_TrueClass(o); end
|
1672
1724
|
|
1673
1725
|
private
|
1674
1726
|
|
1675
1727
|
# @return [Boolean]
|
1676
1728
|
#
|
1677
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1729
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#387
|
1678
1730
|
def binary?(string); end
|
1679
1731
|
|
1680
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1732
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#494
|
1681
1733
|
def dump_coder(o); end
|
1682
1734
|
|
1683
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1735
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#463
|
1684
1736
|
def dump_exception(o, msg); end
|
1685
1737
|
|
1686
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1738
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#529
|
1687
1739
|
def dump_ivars(target); end
|
1688
1740
|
|
1689
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1741
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#460
|
1690
1742
|
def dump_list(o); end
|
1691
1743
|
|
1692
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1744
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#507
|
1693
1745
|
def emit_coder(c, o); end
|
1694
1746
|
|
1695
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1747
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#481
|
1696
1748
|
def format_time(time, utc = T.unsafe(nil)); end
|
1697
1749
|
|
1698
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1750
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#489
|
1699
1751
|
def register(target, yaml_obj); end
|
1700
1752
|
|
1701
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1753
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#391
|
1702
1754
|
def visit_array_subclass(o); end
|
1703
1755
|
|
1704
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1756
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#422
|
1705
1757
|
def visit_hash_subclass(o); end
|
1706
1758
|
|
1707
1759
|
class << self
|
1708
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1760
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#44
|
1709
1761
|
def create(options = T.unsafe(nil), emitter = T.unsafe(nil)); end
|
1710
1762
|
end
|
1711
1763
|
end
|
1712
1764
|
|
1765
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#16
|
1713
1766
|
class Psych::Visitors::YAMLTree::Registrar
|
1714
1767
|
# @return [Registrar] a new instance of Registrar
|
1715
1768
|
#
|
1716
|
-
# source://psych//psych/visitors/yaml_tree.rb#17
|
1769
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#17
|
1717
1770
|
def initialize; end
|
1718
1771
|
|
1719
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1772
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#31
|
1720
1773
|
def id_for(target); end
|
1721
1774
|
|
1722
1775
|
# @return [Boolean]
|
1723
1776
|
#
|
1724
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1777
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#27
|
1725
1778
|
def key?(target); end
|
1726
1779
|
|
1727
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1780
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#35
|
1728
1781
|
def node_for(target); end
|
1729
1782
|
|
1730
|
-
# source://psych//psych/visitors/yaml_tree.rb#
|
1783
|
+
# source://psych//lib/psych/visitors/yaml_tree.rb#23
|
1731
1784
|
def register(target, node); end
|
1732
1785
|
end
|