sorbet-result 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.standard.yml +1 -1
  4. data/.tool-versions +1 -1
  5. data/CHANGELOG.md +11 -0
  6. data/Gemfile +1 -1
  7. data/Gemfile.lock +52 -57
  8. data/README.md +3 -3
  9. data/lib/typed/result.rb +32 -2
  10. data/sorbet/rbi/gems/ast@2.4.2.rbi +1 -0
  11. data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.0.rbi} +20 -15
  12. data/sorbet/rbi/gems/io-console@0.7.2.rbi +1 -0
  13. data/sorbet/rbi/gems/{json@2.7.1.rbi → json@2.7.5.rbi} +148 -72
  14. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +1 -0
  15. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +1 -0
  16. data/sorbet/rbi/gems/{minitest@5.22.2.rbi → minitest@5.25.1.rbi} +252 -241
  17. data/sorbet/rbi/gems/netrc@0.11.0.rbi +1 -0
  18. data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +32 -21
  19. data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.5.1.rbi} +233 -186
  20. data/sorbet/rbi/gems/prism@1.2.0.rbi +39085 -0
  21. data/sorbet/rbi/gems/psych@5.1.2.rbi +1 -0
  22. data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +38 -33
  23. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +1 -0
  24. data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.2.1.rbi} +56 -55
  25. data/sorbet/rbi/gems/rbi@0.2.1.rbi +4535 -0
  26. data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.9.2.rbi} +3 -2
  27. data/sorbet/rbi/gems/{reline@0.4.2.rbi → reline@0.5.10.rbi} +1 -0
  28. data/sorbet/rbi/gems/{rubocop-ast@1.30.0.rbi → rubocop-ast@1.33.1.rbi} +1143 -671
  29. data/sorbet/rbi/gems/{rubocop-performance@1.20.2.rbi → rubocop-performance@1.22.1.rbi} +1 -0
  30. data/sorbet/rbi/gems/{rubocop-sorbet@0.7.7.rbi → rubocop-sorbet@0.7.8.rbi} +1 -0
  31. data/sorbet/rbi/gems/{rubocop@1.60.2.rbi → rubocop@1.66.1.rbi} +3312 -2415
  32. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1 -0
  33. data/sorbet/rbi/gems/{spoom@1.2.4.rbi → spoom@1.5.0.rbi} +2009 -854
  34. data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +1 -0
  35. data/sorbet/rbi/gems/{standard-performance@1.3.1.rbi → standard-performance@1.5.0.rbi} +1 -0
  36. data/sorbet/rbi/gems/standard-sorbet@0.0.2.rbi +1 -0
  37. data/sorbet/rbi/gems/{standard@1.34.0.rbi → standard@1.41.1.rbi} +171 -95
  38. data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.1.rbi} +1 -0
  39. data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.16.3.rbi} +357 -257
  40. data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.2.rbi} +114 -81
  41. data/sorbet/rbi/gems/{unicode-display_width@2.5.0.rbi → unicode-display_width@2.6.0.rbi} +1 -0
  42. data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
  43. data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.37.rbi} +430 -270
  44. metadata +28 -45
  45. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
  46. data/sorbet/rbi/gems/prism@0.24.0.rbi +0 -31040
  47. data/sorbet/rbi/gems/rbi@0.1.9.rbi +0 -3006
  48. data/sorbet/rbi/gems/rexml@3.2.6.rbi +0 -4781
  49. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23133
@@ -4,7 +4,10 @@
4
4
  # This is an autogenerated file for types exported from the `json` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem json`.
6
6
 
7
+
7
8
  # Extends any Class to include _json_creatable?_ method.
9
+ #
10
+ # source://json//lib/json/common.rb#726
8
11
  class Class < ::Module
9
12
  # Returns true if this class can be used to create an instance
10
13
  # from a serialised JSON string. The class has to implement a class
@@ -13,7 +16,7 @@ class Class < ::Module
13
16
  #
14
17
  # @return [Boolean]
15
18
  #
16
- # source://json//json/common.rb#694
19
+ # source://json//lib/json/common.rb#731
17
20
  def json_creatable?; end
18
21
  end
19
22
 
@@ -595,6 +598,8 @@ end
595
598
  # Parsed JSON:
596
599
  # Without custom addition: "#<Foo:0x0000000006534e80>" (String)
597
600
  # With custom addition: #<Foo:0x0000000006473bb8 @bar=0, @baz=1> (Foo)
601
+ #
602
+ # source://json//lib/json/version.rb#3
598
603
  module JSON
599
604
  private
600
605
 
@@ -626,7 +631,7 @@ module JSON
626
631
  # Output:
627
632
  # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"}
628
633
  #
629
- # source://json//json/common.rb#614
634
+ # source://json//lib/json/common.rb#630
630
635
  def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end
631
636
 
632
637
  # :call-seq:
@@ -643,13 +648,13 @@ module JSON
643
648
  # # Raises SystemStackError (stack level too deep):
644
649
  # JSON.fast_generate(a)
645
650
  #
646
- # source://json//json/common.rb#328
651
+ # source://json//lib/json/common.rb#337
647
652
  def fast_generate(obj, opts = T.unsafe(nil)); end
648
653
 
649
654
  # :stopdoc:
650
655
  # I want to deprecate these later, so I'll first be silent about them, and later delete them.
651
656
  #
652
- # source://json//json/common.rb#328
657
+ # source://json//lib/json/common.rb#337
653
658
  def fast_unparse(obj, opts = T.unsafe(nil)); end
654
659
 
655
660
  # :call-seq:
@@ -688,7 +693,7 @@ module JSON
688
693
  # # Raises JSON::NestingError (nesting of 100 is too deep):
689
694
  # JSON.generate(a)
690
695
  #
691
- # source://json//json/common.rb#299
696
+ # source://json//lib/json/common.rb#308
692
697
  def generate(obj, opts = T.unsafe(nil)); end
693
698
 
694
699
  # :call-seq:
@@ -819,7 +824,7 @@ module JSON
819
824
  # #<Admin:0x00000000064c41f8
820
825
  # @attributes={"type"=>"Admin", "password"=>"0wn3d"}>}
821
826
  #
822
- # source://json//json/common.rb#540
827
+ # source://json//lib/json/common.rb#549
823
828
  def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
824
829
 
825
830
  # :call-seq:
@@ -830,7 +835,7 @@ module JSON
830
835
  #
831
836
  # See method #parse.
832
837
  #
833
- # source://json//json/common.rb#248
838
+ # source://json//lib/json/common.rb#257
834
839
  def load_file(filespec, opts = T.unsafe(nil)); end
835
840
 
836
841
  # :call-seq:
@@ -841,10 +846,10 @@ module JSON
841
846
  #
842
847
  # See method #parse!
843
848
  #
844
- # source://json//json/common.rb#259
849
+ # source://json//lib/json/common.rb#268
845
850
  def load_file!(filespec, opts = T.unsafe(nil)); end
846
851
 
847
- # source://json//json/common.rb#642
852
+ # source://json//lib/json/common.rb#674
848
853
  def merge_dump_options(opts, strict: T.unsafe(nil)); end
849
854
 
850
855
  # :call-seq:
@@ -895,7 +900,7 @@ module JSON
895
900
  # # Raises JSON::ParserError (783: unexpected token at ''):
896
901
  # JSON.parse('')
897
902
  #
898
- # source://json//json/common.rb#218
903
+ # source://json//lib/json/common.rb#218
899
904
  def parse(source, opts = T.unsafe(nil)); end
900
905
 
901
906
  # :call-seq:
@@ -910,7 +915,7 @@ module JSON
910
915
  # which disables checking for nesting depth.
911
916
  # - Option +allow_nan+, if not provided, defaults to +true+.
912
917
  #
913
- # source://json//json/common.rb#233
918
+ # source://json//lib/json/common.rb#242
914
919
  def parse!(source, opts = T.unsafe(nil)); end
915
920
 
916
921
  # :call-seq:
@@ -943,28 +948,28 @@ module JSON
943
948
  # }
944
949
  # }
945
950
  #
946
- # source://json//json/common.rb#373
951
+ # source://json//lib/json/common.rb#382
947
952
  def pretty_generate(obj, opts = T.unsafe(nil)); end
948
953
 
949
954
  # :stopdoc:
950
955
  # I want to deprecate these later, so I'll first be silent about them, and later delete them.
951
956
  #
952
- # source://json//json/common.rb#373
957
+ # source://json//lib/json/common.rb#382
953
958
  def pretty_unparse(obj, opts = T.unsafe(nil)); end
954
959
 
955
960
  # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_
956
961
  #
957
- # source://json//json/common.rb#558
962
+ # source://json//lib/json/common.rb#575
958
963
  def recurse_proc(result, &proc); end
959
964
 
960
- # source://json//json/common.rb#540
965
+ # source://json//lib/json/common.rb#549
961
966
  def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
962
967
 
963
968
  # :stopdoc:
964
969
  # I want to deprecate these later, so I'll first be silent about them, and
965
970
  # later delete them.
966
971
  #
967
- # source://json//json/common.rb#299
972
+ # source://json//lib/json/common.rb#308
968
973
  def unparse(obj, opts = T.unsafe(nil)); end
969
974
 
970
975
  class << self
@@ -980,26 +985,26 @@ module JSON
980
985
  # ruby = [0, 1, nil]
981
986
  # JSON[ruby] # => '[0,1,null]'
982
987
  #
983
- # source://json//json/common.rb#21
988
+ # source://json//lib/json/common.rb#22
984
989
  def [](object, opts = T.unsafe(nil)); end
985
990
 
986
- # source://json//json/common.rb#84
991
+ # source://json//lib/json/common.rb#90
987
992
  def create_fast_state; end
988
993
 
989
994
  # Returns the current create identifier.
990
995
  # See also JSON.create_id=.
991
996
  #
992
- # source://json//json/common.rb#129
997
+ # source://json//lib/json/common.rb#129
993
998
  def create_id; end
994
999
 
995
1000
  # Sets create identifier, which is used to decide if the _json_create_
996
1001
  # hook of a class should be called; initial value is +json_class+:
997
1002
  # JSON.create_id # => 'json_class'
998
1003
  #
999
- # source://json//json/common.rb#123
1004
+ # source://json//lib/json/common.rb#123
1000
1005
  def create_id=(new_value); end
1001
1006
 
1002
- # source://json//json/common.rb#94
1007
+ # source://json//lib/json/common.rb#100
1003
1008
  def create_pretty_state; end
1004
1009
 
1005
1010
  # Return the constant located at _path_. The format of _path_ has to be
@@ -1007,7 +1012,7 @@ module JSON
1007
1012
  # level (absolute namespace path?). If there doesn't exist a constant at
1008
1013
  # the given path, an ArgumentError is raised.
1009
1014
  #
1010
- # source://json//json/common.rb#45
1015
+ # source://json//lib/json/common.rb#51
1011
1016
  def deep_const_get(path); end
1012
1017
 
1013
1018
  # :call-seq:
@@ -1038,23 +1043,23 @@ module JSON
1038
1043
  # Output:
1039
1044
  # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"}
1040
1045
  #
1041
- # source://json//json/common.rb#614
1046
+ # source://json//lib/json/common.rb#630
1042
1047
  def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end
1043
1048
 
1044
1049
  # Sets or returns the default options for the JSON.dump method.
1045
1050
  # Initially:
1046
1051
  # opts = JSON.dump_default_options
1047
- # opts # => {:max_nesting=>false, :allow_nan=>true, :script_safe=>false}
1052
+ # opts # => {:max_nesting=>false, :allow_nan=>true}
1048
1053
  #
1049
- # source://json//json/common.rb#579
1054
+ # source://json//lib/json/common.rb#596
1050
1055
  def dump_default_options; end
1051
1056
 
1052
1057
  # Sets or returns the default options for the JSON.dump method.
1053
1058
  # Initially:
1054
1059
  # opts = JSON.dump_default_options
1055
- # opts # => {:max_nesting=>false, :allow_nan=>true, :script_safe=>false}
1060
+ # opts # => {:max_nesting=>false, :allow_nan=>true}
1056
1061
  #
1057
- # source://json//json/common.rb#579
1062
+ # source://json//lib/json/common.rb#596
1058
1063
  def dump_default_options=(_arg0); end
1059
1064
 
1060
1065
  # :call-seq:
@@ -1071,13 +1076,13 @@ module JSON
1071
1076
  # # Raises SystemStackError (stack level too deep):
1072
1077
  # JSON.fast_generate(a)
1073
1078
  #
1074
- # source://json//json/common.rb#328
1079
+ # source://json//lib/json/common.rb#337
1075
1080
  def fast_generate(obj, opts = T.unsafe(nil)); end
1076
1081
 
1077
1082
  # :stopdoc:
1078
1083
  # I want to deprecate these later, so I'll first be silent about them, and later delete them.
1079
1084
  #
1080
- # source://json//json/common.rb#328
1085
+ # source://json//lib/json/common.rb#337
1081
1086
  def fast_unparse(obj, opts = T.unsafe(nil)); end
1082
1087
 
1083
1088
  # :call-seq:
@@ -1116,24 +1121,24 @@ module JSON
1116
1121
  # # Raises JSON::NestingError (nesting of 100 is too deep):
1117
1122
  # JSON.generate(a)
1118
1123
  #
1119
- # source://json//json/common.rb#299
1124
+ # source://json//lib/json/common.rb#308
1120
1125
  def generate(obj, opts = T.unsafe(nil)); end
1121
1126
 
1122
1127
  # Returns the JSON generator module that is used by JSON. This is
1123
1128
  # either JSON::Ext::Generator or JSON::Pure::Generator:
1124
1129
  # JSON.generator # => JSON::Ext::Generator
1125
1130
  #
1126
- # source://json//json/common.rb#106
1131
+ # source://json//lib/json/common.rb#112
1127
1132
  def generator; end
1128
1133
 
1129
1134
  # Set the module _generator_ to be used by JSON.
1130
1135
  #
1131
- # source://json//json/common.rb#61
1136
+ # source://json//lib/json/common.rb#67
1132
1137
  def generator=(generator); end
1133
1138
 
1134
1139
  # Encodes string using String.encode.
1135
1140
  #
1136
- # source://json//json/common.rb#638
1141
+ # source://json//lib/json/common.rb#670
1137
1142
  def iconv(to, from, string); end
1138
1143
 
1139
1144
  # :call-seq:
@@ -1264,7 +1269,7 @@ module JSON
1264
1269
  # #<Admin:0x00000000064c41f8
1265
1270
  # @attributes={"type"=>"Admin", "password"=>"0wn3d"}>}
1266
1271
  #
1267
- # source://json//json/common.rb#540
1272
+ # source://json//lib/json/common.rb#549
1268
1273
  def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
1269
1274
 
1270
1275
  # Sets or returns default options for the JSON.load method.
@@ -1272,7 +1277,7 @@ module JSON
1272
1277
  # opts = JSON.load_default_options
1273
1278
  # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true}
1274
1279
  #
1275
- # source://json//json/common.rb#403
1280
+ # source://json//lib/json/common.rb#412
1276
1281
  def load_default_options; end
1277
1282
 
1278
1283
  # Sets or returns default options for the JSON.load method.
@@ -1280,7 +1285,7 @@ module JSON
1280
1285
  # opts = JSON.load_default_options
1281
1286
  # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true}
1282
1287
  #
1283
- # source://json//json/common.rb#403
1288
+ # source://json//lib/json/common.rb#412
1284
1289
  def load_default_options=(_arg0); end
1285
1290
 
1286
1291
  # :call-seq:
@@ -1291,7 +1296,7 @@ module JSON
1291
1296
  #
1292
1297
  # See method #parse.
1293
1298
  #
1294
- # source://json//json/common.rb#248
1299
+ # source://json//lib/json/common.rb#257
1295
1300
  def load_file(filespec, opts = T.unsafe(nil)); end
1296
1301
 
1297
1302
  # :call-seq:
@@ -1302,7 +1307,7 @@ module JSON
1302
1307
  #
1303
1308
  # See method #parse!
1304
1309
  #
1305
- # source://json//json/common.rb#259
1310
+ # source://json//lib/json/common.rb#268
1306
1311
  def load_file!(filespec, opts = T.unsafe(nil)); end
1307
1312
 
1308
1313
  # :call-seq:
@@ -1353,7 +1358,7 @@ module JSON
1353
1358
  # # Raises JSON::ParserError (783: unexpected token at ''):
1354
1359
  # JSON.parse('')
1355
1360
  #
1356
- # source://json//json/common.rb#218
1361
+ # source://json//lib/json/common.rb#218
1357
1362
  def parse(source, opts = T.unsafe(nil)); end
1358
1363
 
1359
1364
  # :call-seq:
@@ -1368,19 +1373,19 @@ module JSON
1368
1373
  # which disables checking for nesting depth.
1369
1374
  # - Option +allow_nan+, if not provided, defaults to +true+.
1370
1375
  #
1371
- # source://json//json/common.rb#233
1376
+ # source://json//lib/json/common.rb#242
1372
1377
  def parse!(source, opts = T.unsafe(nil)); end
1373
1378
 
1374
1379
  # Returns the JSON parser class that is used by JSON. This is either
1375
1380
  # JSON::Ext::Parser or JSON::Pure::Parser:
1376
1381
  # JSON.parser # => JSON::Ext::Parser
1377
1382
  #
1378
- # source://json//json/common.rb#32
1383
+ # source://json//lib/json/common.rb#38
1379
1384
  def parser; end
1380
1385
 
1381
1386
  # Set the JSON parser class _parser_ to be used by JSON.
1382
1387
  #
1383
- # source://json//json/common.rb#35
1388
+ # source://json//lib/json/common.rb#41
1384
1389
  def parser=(parser); end
1385
1390
 
1386
1391
  # :call-seq:
@@ -1413,119 +1418,190 @@ module JSON
1413
1418
  # }
1414
1419
  # }
1415
1420
  #
1416
- # source://json//json/common.rb#373
1421
+ # source://json//lib/json/common.rb#382
1417
1422
  def pretty_generate(obj, opts = T.unsafe(nil)); end
1418
1423
 
1419
1424
  # :stopdoc:
1420
1425
  # I want to deprecate these later, so I'll first be silent about them, and later delete them.
1421
1426
  #
1422
- # source://json//json/common.rb#373
1427
+ # source://json//lib/json/common.rb#382
1423
1428
  def pretty_unparse(obj, opts = T.unsafe(nil)); end
1424
1429
 
1425
1430
  # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_
1426
1431
  #
1427
- # source://json//json/common.rb#558
1432
+ # source://json//lib/json/common.rb#575
1428
1433
  def recurse_proc(result, &proc); end
1429
1434
 
1430
- # source://json//json/common.rb#540
1435
+ # source://json//lib/json/common.rb#549
1431
1436
  def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
1432
1437
 
1433
1438
  # Sets or Returns the JSON generator state class that is used by JSON. This is
1434
1439
  # either JSON::Ext::Generator::State or JSON::Pure::Generator::State:
1435
1440
  # JSON.state # => JSON::Ext::Generator::State
1436
1441
  #
1437
- # source://json//json/common.rb#111
1442
+ # source://json//lib/json/common.rb#117
1438
1443
  def state; end
1439
1444
 
1440
1445
  # Sets or Returns the JSON generator state class that is used by JSON. This is
1441
1446
  # either JSON::Ext::Generator::State or JSON::Pure::Generator::State:
1442
1447
  # JSON.state # => JSON::Ext::Generator::State
1443
1448
  #
1444
- # source://json//json/common.rb#111
1449
+ # source://json//lib/json/common.rb#117
1445
1450
  def state=(_arg0); end
1446
1451
 
1447
1452
  # :stopdoc:
1448
1453
  # I want to deprecate these later, so I'll first be silent about them, and
1449
1454
  # later delete them.
1450
1455
  #
1451
- # source://json//json/common.rb#299
1456
+ # source://json//lib/json/common.rb#308
1452
1457
  def unparse(obj, opts = T.unsafe(nil)); end
1453
1458
 
1454
1459
  private
1455
1460
 
1456
- # source://json//json/common.rb#642
1461
+ # source://json//lib/json/common.rb#674
1457
1462
  def merge_dump_options(opts, strict: T.unsafe(nil)); end
1458
1463
  end
1459
1464
  end
1460
1465
 
1461
- # source://json//json/common.rb#117
1462
- JSON::CREATE_ID_TLS_KEY = T.let(T.unsafe(nil), String)
1466
+ # source://json//lib/json/ext/generator/state.rb#6
1467
+ class JSON::Ext::Generator::State
1468
+ # call-seq: new(opts = {})
1469
+ #
1470
+ # Instantiates a new State object, configured by _opts_.
1471
+ #
1472
+ # _opts_ can have the following keys:
1473
+ #
1474
+ # * *indent*: a string used to indent levels (default: ''),
1475
+ # * *space*: a string that is put after, a : or , delimiter (default: ''),
1476
+ # * *space_before*: a string that is put before a : pair delimiter (default: ''),
1477
+ # * *object_nl*: a string that is put at the end of a JSON object (default: ''),
1478
+ # * *array_nl*: a string that is put at the end of a JSON array (default: ''),
1479
+ # * *allow_nan*: true if NaN, Infinity, and -Infinity should be
1480
+ # generated, otherwise an exception is thrown, if these values are
1481
+ # encountered. This options defaults to false.
1482
+ # * *ascii_only*: true if only ASCII characters should be generated. This
1483
+ # option defaults to false.
1484
+ # * *buffer_initial_length*: sets the initial length of the generator's
1485
+ # internal buffer.
1486
+ #
1487
+ # @return [State] a new instance of State
1488
+ #
1489
+ # source://json//lib/json/ext/generator/state.rb#25
1490
+ def initialize(opts = T.unsafe(nil)); end
1491
+
1492
+ # call-seq: [](name)
1493
+ #
1494
+ # Returns the value returned by method +name+.
1495
+ #
1496
+ # source://json//lib/json/ext/generator/state.rb#113
1497
+ def [](name); end
1498
+
1499
+ # call-seq: []=(name, value)
1500
+ #
1501
+ # Sets the attribute name to value.
1502
+ #
1503
+ # source://json//lib/json/ext/generator/state.rb#125
1504
+ def []=(name, value); end
1505
+
1506
+ # call-seq: configure(opts)
1507
+ #
1508
+ # Configure this State instance with the Hash _opts_, and return
1509
+ # itself.
1510
+ #
1511
+ # source://json//lib/json/ext/generator/state.rb#35
1512
+ def configure(opts); end
1513
+
1514
+ # call-seq: configure(opts)
1515
+ #
1516
+ # Configure this State instance with the Hash _opts_, and return
1517
+ # itself.
1518
+ #
1519
+ # source://json//lib/json/ext/generator/state.rb#35
1520
+ def merge(opts); end
1521
+
1522
+ # call-seq: to_h
1523
+ #
1524
+ # Returns the configuration instance variables as a hash, that can be
1525
+ # passed to the configure method.
1526
+ #
1527
+ # source://json//lib/json/ext/generator/state.rb#84
1528
+ def to_h; end
1463
1529
 
1464
- # source://json//json/common.rb#114
1465
- JSON::DEFAULT_CREATE_ID = T.let(T.unsafe(nil), String)
1530
+ # call-seq: to_h
1531
+ #
1532
+ # Returns the configuration instance variables as a hash, that can be
1533
+ # passed to the configure method.
1534
+ #
1535
+ # source://json//lib/json/ext/generator/state.rb#84
1536
+ def to_hash; end
1537
+ end
1466
1538
 
1539
+ # source://json//lib/json/generic_object.rb#9
1467
1540
  class JSON::GenericObject < ::OpenStruct
1468
- # source://json//json/generic_object.rb#63
1541
+ # source://json//lib/json/generic_object.rb#67
1469
1542
  def as_json(*_arg0); end
1470
1543
 
1471
- # source://json//json/generic_object.rb#47
1544
+ # source://json//lib/json/generic_object.rb#51
1472
1545
  def to_hash; end
1473
1546
 
1474
- # source://json//json/generic_object.rb#67
1547
+ # source://json//lib/json/generic_object.rb#71
1475
1548
  def to_json(*a); end
1476
1549
 
1477
- # source://json//json/generic_object.rb#59
1550
+ # source://json//lib/json/generic_object.rb#63
1478
1551
  def |(other); end
1479
1552
 
1480
1553
  class << self
1481
- # source://json//json/generic_object.rb#41
1554
+ # source://json//lib/json/generic_object.rb#45
1482
1555
  def dump(obj, *args); end
1483
1556
 
1484
- # source://json//json/generic_object.rb#21
1557
+ # source://json//lib/json/generic_object.rb#25
1485
1558
  def from_hash(object); end
1486
1559
 
1487
1560
  # Sets the attribute json_creatable
1488
1561
  #
1489
1562
  # @param value the value to set the attribute json_creatable to.
1490
1563
  #
1491
- # source://json//json/generic_object.rb#13
1564
+ # source://json//lib/json/generic_object.rb#17
1492
1565
  def json_creatable=(_arg0); end
1493
1566
 
1494
1567
  # @return [Boolean]
1495
1568
  #
1496
- # source://json//json/generic_object.rb#9
1569
+ # source://json//lib/json/generic_object.rb#13
1497
1570
  def json_creatable?; end
1498
1571
 
1499
- # source://json//json/generic_object.rb#15
1572
+ # source://json//lib/json/generic_object.rb#19
1500
1573
  def json_create(data); end
1501
1574
 
1502
- # source://json//json/generic_object.rb#36
1575
+ # source://json//lib/json/generic_object.rb#40
1503
1576
  def load(source, proc = T.unsafe(nil), opts = T.unsafe(nil)); end
1504
1577
  end
1505
1578
  end
1506
1579
 
1507
1580
  # The base exception for JSON errors.
1581
+ #
1582
+ # source://json//lib/json/common.rb#140
1508
1583
  class JSON::JSONError < ::StandardError
1509
1584
  class << self
1510
- # source://json//json/common.rb#141
1585
+ # source://json//lib/json/common.rb#141
1511
1586
  def wrap(exception); end
1512
1587
  end
1513
1588
  end
1514
1589
 
1515
- # source://json//json/common.rb#6
1590
+ # source://json//lib/json/common.rb#7
1516
1591
  JSON::NOT_SET = T.let(T.unsafe(nil), Object)
1517
1592
 
1518
- # source://json//json/common.rb#38
1593
+ # source://json//lib/json/common.rb#44
1519
1594
  JSON::Parser = JSON::Ext::Parser
1520
1595
 
1521
- # source://json//json/common.rb#76
1596
+ # source://json//lib/json/common.rb#82
1522
1597
  JSON::State = JSON::Ext::Generator::State
1523
1598
 
1524
1599
  # For backwards compatibility
1525
1600
  #
1526
- # source://json//json/common.rb#162
1601
+ # source://json//lib/json/common.rb#162
1527
1602
  JSON::UnparserError = JSON::GeneratorError
1528
1603
 
1604
+ # source://json//lib/json/common.rb#684
1529
1605
  module Kernel
1530
1606
  private
1531
1607
 
@@ -1536,18 +1612,18 @@ module Kernel
1536
1612
  # The _opts_ argument is passed through to generate/parse respectively. See
1537
1613
  # generate and parse for their documentation.
1538
1614
  #
1539
- # source://json//json/common.rb#679
1615
+ # source://json//lib/json/common.rb#711
1540
1616
  def JSON(object, *args); end
1541
1617
 
1542
1618
  # Outputs _objs_ to STDOUT as JSON strings in the shortest form, that is in
1543
1619
  # one line.
1544
1620
  #
1545
- # source://json//json/common.rb#657
1621
+ # source://json//lib/json/common.rb#689
1546
1622
  def j(*objs); end
1547
1623
 
1548
1624
  # Outputs _objs_ to STDOUT as JSON strings in a pretty format, with
1549
1625
  # indentation and over many lines.
1550
1626
  #
1551
- # source://json//json/common.rb#666
1627
+ # source://json//lib/json/common.rb#698
1552
1628
  def jj(*objs); end
1553
1629
  end
@@ -4,6 +4,7 @@
4
4
  # This is an autogenerated file for types exported from the `language_server-protocol` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem language_server-protocol`.
6
6
 
7
+
7
8
  # source://language_server-protocol//lib/language_server/protocol/version.rb#1
8
9
  module LanguageServer; end
9
10
 
@@ -4,6 +4,7 @@
4
4
  # This is an autogenerated file for types exported from the `lint_roller` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem lint_roller`.
6
6
 
7
+
7
8
  # source://lint_roller//lib/lint_roller/version.rb#1
8
9
  module LintRoller; end
9
10