mangrove 0.18.0 → 0.19.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/mangrove/result.rb +92 -3
- data/lib/mangrove/version.rb +1 -1
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1 -5
- data/sorbet/rbi/gems/docile@1.4.0.rbi +376 -0
- data/sorbet/rbi/gems/json@2.6.3.rbi +73 -65
- data/sorbet/rbi/gems/prism@0.15.1.rbi +23916 -2
- data/sorbet/rbi/gems/rake@13.0.6.rbi +1 -141
- data/sorbet/rbi/gems/{rbi@0.1.1.rbi → rbi@0.1.3.rbi} +53 -57
- data/sorbet/rbi/gems/regexp_parser@2.8.2.rbi +37 -37
- data/sorbet/rbi/gems/rexml@3.2.6.rbi +2 -2
- data/sorbet/rbi/gems/rspec-core@3.12.2.rbi +8 -39
- data/sorbet/rbi/gems/rspec-expectations@3.12.3.rbi +25 -25
- data/sorbet/rbi/gems/rspec-mocks@3.12.6.rbi +4 -8
- data/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi +2 -2
- data/sorbet/rbi/gems/rspec-support@3.12.1.rbi +2 -2
- data/sorbet/rbi/gems/rspec@3.12.0.rbi +1 -1
- data/sorbet/rbi/gems/rubocop-ast@1.29.0.rbi +263 -176
- data/sorbet/rbi/gems/rubocop@1.57.1.rbi +1019 -719
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +5 -5
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +216 -0
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +2135 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.2.4.rbi +15 -15
- data/sorbet/rbi/gems/{tapioca@0.11.9.rbi → tapioca@0.11.10.rbi} +40 -29
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +1 -1
- data/sorbet/rbi/gems/yard@0.9.34.rbi +46 -50
- data/sorbet/tapioca/require.rb +6 -1
- metadata +9 -34
- data/docs/Mangrove/ControlFlow/ControlSignal.html +0 -223
- data/docs/Mangrove/ControlFlow/Handler/ClassMethods.html +0 -563
- data/docs/Mangrove/ControlFlow/Handler.html +0 -139
- data/docs/Mangrove/ControlFlow/Rewriter.html +0 -331
- data/docs/Mangrove/ControlFlow.html +0 -115
- data/docs/Mangrove/Option/ControlSignal.html +0 -434
- data/docs/Mangrove/Option/None.html +0 -1085
- data/docs/Mangrove/Option/Some.html +0 -1202
- data/docs/Mangrove/Option.html +0 -1145
- data/docs/Mangrove/Result/ControlSignal.html +0 -434
- data/docs/Mangrove/Result/Err.html +0 -2254
- data/docs/Mangrove/Result/Ok.html +0 -2219
- data/docs/Mangrove/Result.html +0 -2475
- data/docs/Mangrove.html +0 -144
- data/docs/_index.html +0 -225
- data/docs/class_list.html +0 -51
- data/docs/css/common.css +0 -1
- data/docs/css/full_list.css +0 -58
- data/docs/css/style.css +0 -497
- data/docs/file.README.html +0 -245
- data/docs/file_list.html +0 -56
- data/docs/frames.html +0 -17
- data/docs/index.html +0 -245
- data/docs/js/app.js +0 -314
- data/docs/js/full_list.js +0 -216
- data/docs/js/jquery.js +0 -4
- data/docs/method_list.html +0 -939
- data/docs/top-level-namespace.html +0 -110
- data/sorbet/rbi/gems/yarp@0.13.0.rbi +0 -21646
- data/sorbet/rbi/shims/mangrove/option.rbi +0 -15
- data/sorbet/rbi/shims/mangrove/result.rbi +0 -15
@@ -5,6 +5,8 @@
|
|
5
5
|
# Please instead update this file by running `bin/tapioca gem json`.
|
6
6
|
|
7
7
|
# Extends any Class to include _json_creatable?_ method.
|
8
|
+
#
|
9
|
+
# source://json//lib/json/common.rb#695
|
8
10
|
class Class < ::Module
|
9
11
|
# Returns true if this class can be used to create an instance
|
10
12
|
# from a serialised JSON string. The class has to implement a class
|
@@ -13,7 +15,7 @@ class Class < ::Module
|
|
13
15
|
#
|
14
16
|
# @return [Boolean]
|
15
17
|
#
|
16
|
-
# source://json//json/common.rb#700
|
18
|
+
# source://json//lib/json/common.rb#700
|
17
19
|
def json_creatable?; end
|
18
20
|
end
|
19
21
|
|
@@ -586,6 +588,8 @@ end
|
|
586
588
|
# Parsed JSON:
|
587
589
|
# Without custom addition: "#<Foo:0x0000000006534e80>" (String)
|
588
590
|
# With custom addition: #<Foo:0x0000000006473bb8 @bar=0, @baz=1> (Foo)
|
591
|
+
#
|
592
|
+
# source://json//lib/json/version.rb#2
|
589
593
|
module JSON
|
590
594
|
private
|
591
595
|
|
@@ -617,7 +621,7 @@ module JSON
|
|
617
621
|
# Output:
|
618
622
|
# {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"}
|
619
623
|
#
|
620
|
-
# source://json//json/common.rb#631
|
624
|
+
# source://json//lib/json/common.rb#631
|
621
625
|
def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil)); end
|
622
626
|
|
623
627
|
# :call-seq:
|
@@ -634,13 +638,13 @@ module JSON
|
|
634
638
|
# # Raises SystemStackError (stack level too deep):
|
635
639
|
# JSON.fast_generate(a)
|
636
640
|
#
|
637
|
-
# source://json//json/common.rb#335
|
641
|
+
# source://json//lib/json/common.rb#335
|
638
642
|
def fast_generate(obj, opts = T.unsafe(nil)); end
|
639
643
|
|
640
644
|
# :stopdoc:
|
641
645
|
# I want to deprecate these later, so I'll first be silent about them, and later delete them.
|
642
646
|
#
|
643
|
-
# source://json//json/common.rb#335
|
647
|
+
# source://json//lib/json/common.rb#335
|
644
648
|
def fast_unparse(obj, opts = T.unsafe(nil)); end
|
645
649
|
|
646
650
|
# :call-seq:
|
@@ -679,7 +683,7 @@ module JSON
|
|
679
683
|
# # Raises JSON::NestingError (nesting of 100 is too deep):
|
680
684
|
# JSON.generate(a)
|
681
685
|
#
|
682
|
-
# source://json//json/common.rb#296
|
686
|
+
# source://json//lib/json/common.rb#296
|
683
687
|
def generate(obj, opts = T.unsafe(nil)); end
|
684
688
|
|
685
689
|
# :call-seq:
|
@@ -810,7 +814,7 @@ module JSON
|
|
810
814
|
# #<Admin:0x00000000064c41f8
|
811
815
|
# @attributes={"type"=>"Admin", "password"=>"0wn3d"}>}
|
812
816
|
#
|
813
|
-
# source://json//json/common.rb#557
|
817
|
+
# source://json//lib/json/common.rb#557
|
814
818
|
def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
|
815
819
|
|
816
820
|
# :call-seq:
|
@@ -821,7 +825,7 @@ module JSON
|
|
821
825
|
#
|
822
826
|
# See method #parse.
|
823
827
|
#
|
824
|
-
# source://json//json/common.rb#245
|
828
|
+
# source://json//lib/json/common.rb#245
|
825
829
|
def load_file(filespec, opts = T.unsafe(nil)); end
|
826
830
|
|
827
831
|
# :call-seq:
|
@@ -832,7 +836,7 @@ module JSON
|
|
832
836
|
#
|
833
837
|
# See method #parse!
|
834
838
|
#
|
835
|
-
# source://json//json/common.rb#256
|
839
|
+
# source://json//lib/json/common.rb#256
|
836
840
|
def load_file!(filespec, opts = T.unsafe(nil)); end
|
837
841
|
|
838
842
|
# :call-seq:
|
@@ -883,7 +887,7 @@ module JSON
|
|
883
887
|
# # Raises JSON::ParserError (783: unexpected token at ''):
|
884
888
|
# JSON.parse('')
|
885
889
|
#
|
886
|
-
# source://json//json/common.rb#215
|
890
|
+
# source://json//lib/json/common.rb#215
|
887
891
|
def parse(source, opts = T.unsafe(nil)); end
|
888
892
|
|
889
893
|
# :call-seq:
|
@@ -898,7 +902,7 @@ module JSON
|
|
898
902
|
# which disables checking for nesting depth.
|
899
903
|
# - Option +allow_nan+, if not provided, defaults to +true+.
|
900
904
|
#
|
901
|
-
# source://json//json/common.rb#230
|
905
|
+
# source://json//lib/json/common.rb#230
|
902
906
|
def parse!(source, opts = T.unsafe(nil)); end
|
903
907
|
|
904
908
|
# :call-seq:
|
@@ -931,28 +935,28 @@ module JSON
|
|
931
935
|
# }
|
932
936
|
# }
|
933
937
|
#
|
934
|
-
# source://json//json/common.rb#390
|
938
|
+
# source://json//lib/json/common.rb#390
|
935
939
|
def pretty_generate(obj, opts = T.unsafe(nil)); end
|
936
940
|
|
937
941
|
# :stopdoc:
|
938
942
|
# I want to deprecate these later, so I'll first be silent about them, and later delete them.
|
939
943
|
#
|
940
|
-
# source://json//json/common.rb#390
|
944
|
+
# source://json//lib/json/common.rb#390
|
941
945
|
def pretty_unparse(obj, opts = T.unsafe(nil)); end
|
942
946
|
|
943
947
|
# Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_
|
944
948
|
#
|
945
|
-
# source://json//json/common.rb#575
|
949
|
+
# source://json//lib/json/common.rb#575
|
946
950
|
def recurse_proc(result, &proc); end
|
947
951
|
|
948
|
-
# source://json//json/common.rb#557
|
952
|
+
# source://json//lib/json/common.rb#557
|
949
953
|
def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
|
950
954
|
|
951
955
|
# :stopdoc:
|
952
956
|
# I want to deprecate these later, so I'll first be silent about them, and
|
953
957
|
# later delete them.
|
954
958
|
#
|
955
|
-
# source://json//json/common.rb#296
|
959
|
+
# source://json//lib/json/common.rb#296
|
956
960
|
def unparse(obj, opts = T.unsafe(nil)); end
|
957
961
|
|
958
962
|
class << self
|
@@ -968,26 +972,26 @@ module JSON
|
|
968
972
|
# ruby = [0, 1, nil]
|
969
973
|
# JSON[ruby] # => '[0,1,null]'
|
970
974
|
#
|
971
|
-
# source://json//json/common.rb#18
|
975
|
+
# source://json//lib/json/common.rb#18
|
972
976
|
def [](object, opts = T.unsafe(nil)); end
|
973
977
|
|
974
|
-
# source://json//json/common.rb#81
|
978
|
+
# source://json//lib/json/common.rb#81
|
975
979
|
def create_fast_state; end
|
976
980
|
|
977
981
|
# Returns the current create identifier.
|
978
982
|
# See also JSON.create_id=.
|
979
983
|
#
|
980
|
-
# source://json//json/common.rb#126
|
984
|
+
# source://json//lib/json/common.rb#126
|
981
985
|
def create_id; end
|
982
986
|
|
983
987
|
# Sets create identifier, which is used to decide if the _json_create_
|
984
988
|
# hook of a class should be called; initial value is +json_class+:
|
985
989
|
# JSON.create_id # => 'json_class'
|
986
990
|
#
|
987
|
-
# source://json//json/common.rb#120
|
991
|
+
# source://json//lib/json/common.rb#120
|
988
992
|
def create_id=(new_value); end
|
989
993
|
|
990
|
-
# source://json//json/common.rb#91
|
994
|
+
# source://json//lib/json/common.rb#91
|
991
995
|
def create_pretty_state; end
|
992
996
|
|
993
997
|
# Return the constant located at _path_. The format of _path_ has to be
|
@@ -995,7 +999,7 @@ module JSON
|
|
995
999
|
# level (absolute namespace path?). If there doesn't exist a constant at
|
996
1000
|
# the given path, an ArgumentError is raised.
|
997
1001
|
#
|
998
|
-
# source://json//json/common.rb#42
|
1002
|
+
# source://json//lib/json/common.rb#42
|
999
1003
|
def deep_const_get(path); end
|
1000
1004
|
|
1001
1005
|
# :call-seq:
|
@@ -1026,7 +1030,7 @@ module JSON
|
|
1026
1030
|
# Output:
|
1027
1031
|
# {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"}
|
1028
1032
|
#
|
1029
|
-
# source://json//json/common.rb#631
|
1033
|
+
# source://json//lib/json/common.rb#631
|
1030
1034
|
def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil)); end
|
1031
1035
|
|
1032
1036
|
# Sets or returns the default options for the JSON.dump method.
|
@@ -1034,7 +1038,7 @@ module JSON
|
|
1034
1038
|
# opts = JSON.dump_default_options
|
1035
1039
|
# opts # => {:max_nesting=>false, :allow_nan=>true, :escape_slash=>false}
|
1036
1040
|
#
|
1037
|
-
# source://json//json/common.rb#596
|
1041
|
+
# source://json//lib/json/common.rb#596
|
1038
1042
|
def dump_default_options; end
|
1039
1043
|
|
1040
1044
|
# Sets or returns the default options for the JSON.dump method.
|
@@ -1042,7 +1046,7 @@ module JSON
|
|
1042
1046
|
# opts = JSON.dump_default_options
|
1043
1047
|
# opts # => {:max_nesting=>false, :allow_nan=>true, :escape_slash=>false}
|
1044
1048
|
#
|
1045
|
-
# source://json//json/common.rb#596
|
1049
|
+
# source://json//lib/json/common.rb#596
|
1046
1050
|
def dump_default_options=(_arg0); end
|
1047
1051
|
|
1048
1052
|
# :call-seq:
|
@@ -1059,13 +1063,13 @@ module JSON
|
|
1059
1063
|
# # Raises SystemStackError (stack level too deep):
|
1060
1064
|
# JSON.fast_generate(a)
|
1061
1065
|
#
|
1062
|
-
# source://json//json/common.rb#335
|
1066
|
+
# source://json//lib/json/common.rb#335
|
1063
1067
|
def fast_generate(obj, opts = T.unsafe(nil)); end
|
1064
1068
|
|
1065
1069
|
# :stopdoc:
|
1066
1070
|
# I want to deprecate these later, so I'll first be silent about them, and later delete them.
|
1067
1071
|
#
|
1068
|
-
# source://json//json/common.rb#335
|
1072
|
+
# source://json//lib/json/common.rb#335
|
1069
1073
|
def fast_unparse(obj, opts = T.unsafe(nil)); end
|
1070
1074
|
|
1071
1075
|
# :call-seq:
|
@@ -1104,24 +1108,24 @@ module JSON
|
|
1104
1108
|
# # Raises JSON::NestingError (nesting of 100 is too deep):
|
1105
1109
|
# JSON.generate(a)
|
1106
1110
|
#
|
1107
|
-
# source://json//json/common.rb#296
|
1111
|
+
# source://json//lib/json/common.rb#296
|
1108
1112
|
def generate(obj, opts = T.unsafe(nil)); end
|
1109
1113
|
|
1110
1114
|
# Returns the JSON generator module that is used by JSON. This is
|
1111
1115
|
# either JSON::Ext::Generator or JSON::Pure::Generator:
|
1112
1116
|
# JSON.generator # => JSON::Ext::Generator
|
1113
1117
|
#
|
1114
|
-
# source://json//json/common.rb#103
|
1118
|
+
# source://json//lib/json/common.rb#103
|
1115
1119
|
def generator; end
|
1116
1120
|
|
1117
1121
|
# Set the module _generator_ to be used by JSON.
|
1118
1122
|
#
|
1119
|
-
# source://json//json/common.rb#58
|
1123
|
+
# source://json//lib/json/common.rb#58
|
1120
1124
|
def generator=(generator); end
|
1121
1125
|
|
1122
1126
|
# Encodes string using String.encode.
|
1123
1127
|
#
|
1124
|
-
# source://json//json/common.rb#653
|
1128
|
+
# source://json//lib/json/common.rb#653
|
1125
1129
|
def iconv(to, from, string); end
|
1126
1130
|
|
1127
1131
|
# :call-seq:
|
@@ -1252,7 +1256,7 @@ module JSON
|
|
1252
1256
|
# #<Admin:0x00000000064c41f8
|
1253
1257
|
# @attributes={"type"=>"Admin", "password"=>"0wn3d"}>}
|
1254
1258
|
#
|
1255
|
-
# source://json//json/common.rb#557
|
1259
|
+
# source://json//lib/json/common.rb#557
|
1256
1260
|
def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
|
1257
1261
|
|
1258
1262
|
# Sets or returns default options for the JSON.load method.
|
@@ -1260,7 +1264,7 @@ module JSON
|
|
1260
1264
|
# opts = JSON.load_default_options
|
1261
1265
|
# opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true}
|
1262
1266
|
#
|
1263
|
-
# source://json//json/common.rb#420
|
1267
|
+
# source://json//lib/json/common.rb#420
|
1264
1268
|
def load_default_options; end
|
1265
1269
|
|
1266
1270
|
# Sets or returns default options for the JSON.load method.
|
@@ -1268,7 +1272,7 @@ module JSON
|
|
1268
1272
|
# opts = JSON.load_default_options
|
1269
1273
|
# opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true}
|
1270
1274
|
#
|
1271
|
-
# source://json//json/common.rb#420
|
1275
|
+
# source://json//lib/json/common.rb#420
|
1272
1276
|
def load_default_options=(_arg0); end
|
1273
1277
|
|
1274
1278
|
# :call-seq:
|
@@ -1279,7 +1283,7 @@ module JSON
|
|
1279
1283
|
#
|
1280
1284
|
# See method #parse.
|
1281
1285
|
#
|
1282
|
-
# source://json//json/common.rb#245
|
1286
|
+
# source://json//lib/json/common.rb#245
|
1283
1287
|
def load_file(filespec, opts = T.unsafe(nil)); end
|
1284
1288
|
|
1285
1289
|
# :call-seq:
|
@@ -1290,7 +1294,7 @@ module JSON
|
|
1290
1294
|
#
|
1291
1295
|
# See method #parse!
|
1292
1296
|
#
|
1293
|
-
# source://json//json/common.rb#256
|
1297
|
+
# source://json//lib/json/common.rb#256
|
1294
1298
|
def load_file!(filespec, opts = T.unsafe(nil)); end
|
1295
1299
|
|
1296
1300
|
# :call-seq:
|
@@ -1341,7 +1345,7 @@ module JSON
|
|
1341
1345
|
# # Raises JSON::ParserError (783: unexpected token at ''):
|
1342
1346
|
# JSON.parse('')
|
1343
1347
|
#
|
1344
|
-
# source://json//json/common.rb#215
|
1348
|
+
# source://json//lib/json/common.rb#215
|
1345
1349
|
def parse(source, opts = T.unsafe(nil)); end
|
1346
1350
|
|
1347
1351
|
# :call-seq:
|
@@ -1356,19 +1360,19 @@ module JSON
|
|
1356
1360
|
# which disables checking for nesting depth.
|
1357
1361
|
# - Option +allow_nan+, if not provided, defaults to +true+.
|
1358
1362
|
#
|
1359
|
-
# source://json//json/common.rb#230
|
1363
|
+
# source://json//lib/json/common.rb#230
|
1360
1364
|
def parse!(source, opts = T.unsafe(nil)); end
|
1361
1365
|
|
1362
1366
|
# Returns the JSON parser class that is used by JSON. This is either
|
1363
1367
|
# JSON::Ext::Parser or JSON::Pure::Parser:
|
1364
1368
|
# JSON.parser # => JSON::Ext::Parser
|
1365
1369
|
#
|
1366
|
-
# source://json//json/common.rb#29
|
1370
|
+
# source://json//lib/json/common.rb#29
|
1367
1371
|
def parser; end
|
1368
1372
|
|
1369
1373
|
# Set the JSON parser class _parser_ to be used by JSON.
|
1370
1374
|
#
|
1371
|
-
# source://json//json/common.rb#32
|
1375
|
+
# source://json//lib/json/common.rb#32
|
1372
1376
|
def parser=(parser); end
|
1373
1377
|
|
1374
1378
|
# :call-seq:
|
@@ -1401,111 +1405,115 @@ module JSON
|
|
1401
1405
|
# }
|
1402
1406
|
# }
|
1403
1407
|
#
|
1404
|
-
# source://json//json/common.rb#390
|
1408
|
+
# source://json//lib/json/common.rb#390
|
1405
1409
|
def pretty_generate(obj, opts = T.unsafe(nil)); end
|
1406
1410
|
|
1407
1411
|
# :stopdoc:
|
1408
1412
|
# I want to deprecate these later, so I'll first be silent about them, and later delete them.
|
1409
1413
|
#
|
1410
|
-
# source://json//json/common.rb#390
|
1414
|
+
# source://json//lib/json/common.rb#390
|
1411
1415
|
def pretty_unparse(obj, opts = T.unsafe(nil)); end
|
1412
1416
|
|
1413
1417
|
# Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_
|
1414
1418
|
#
|
1415
|
-
# source://json//json/common.rb#575
|
1419
|
+
# source://json//lib/json/common.rb#575
|
1416
1420
|
def recurse_proc(result, &proc); end
|
1417
1421
|
|
1418
|
-
# source://json//json/common.rb#557
|
1422
|
+
# source://json//lib/json/common.rb#557
|
1419
1423
|
def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
|
1420
1424
|
|
1421
1425
|
# Sets or Returns the JSON generator state class that is used by JSON. This is
|
1422
1426
|
# either JSON::Ext::Generator::State or JSON::Pure::Generator::State:
|
1423
1427
|
# JSON.state # => JSON::Ext::Generator::State
|
1424
1428
|
#
|
1425
|
-
# source://json//json/common.rb#108
|
1429
|
+
# source://json//lib/json/common.rb#108
|
1426
1430
|
def state; end
|
1427
1431
|
|
1428
1432
|
# Sets or Returns the JSON generator state class that is used by JSON. This is
|
1429
1433
|
# either JSON::Ext::Generator::State or JSON::Pure::Generator::State:
|
1430
1434
|
# JSON.state # => JSON::Ext::Generator::State
|
1431
1435
|
#
|
1432
|
-
# source://json//json/common.rb#108
|
1436
|
+
# source://json//lib/json/common.rb#108
|
1433
1437
|
def state=(_arg0); end
|
1434
1438
|
|
1435
1439
|
# :stopdoc:
|
1436
1440
|
# I want to deprecate these later, so I'll first be silent about them, and
|
1437
1441
|
# later delete them.
|
1438
1442
|
#
|
1439
|
-
# source://json//json/common.rb#296
|
1443
|
+
# source://json//lib/json/common.rb#296
|
1440
1444
|
def unparse(obj, opts = T.unsafe(nil)); end
|
1441
1445
|
end
|
1442
1446
|
end
|
1443
1447
|
|
1444
|
-
# source://json//json/common.rb#114
|
1448
|
+
# source://json//lib/json/common.rb#114
|
1445
1449
|
JSON::CREATE_ID_TLS_KEY = T.let(T.unsafe(nil), String)
|
1446
1450
|
|
1447
|
-
# source://json//json/common.rb#111
|
1451
|
+
# source://json//lib/json/common.rb#111
|
1448
1452
|
JSON::DEFAULT_CREATE_ID = T.let(T.unsafe(nil), String)
|
1449
1453
|
|
1454
|
+
# source://json//lib/json/generic_object.rb#5
|
1450
1455
|
class JSON::GenericObject < ::OpenStruct
|
1451
|
-
# source://json//json/generic_object.rb#63
|
1456
|
+
# source://json//lib/json/generic_object.rb#63
|
1452
1457
|
def as_json(*_arg0); end
|
1453
1458
|
|
1454
|
-
# source://json//json/generic_object.rb#47
|
1459
|
+
# source://json//lib/json/generic_object.rb#47
|
1455
1460
|
def to_hash; end
|
1456
1461
|
|
1457
|
-
# source://json//json/generic_object.rb#67
|
1462
|
+
# source://json//lib/json/generic_object.rb#67
|
1458
1463
|
def to_json(*a); end
|
1459
1464
|
|
1460
|
-
# source://json//json/generic_object.rb#59
|
1465
|
+
# source://json//lib/json/generic_object.rb#59
|
1461
1466
|
def |(other); end
|
1462
1467
|
|
1463
1468
|
class << self
|
1464
|
-
# source://json//json/generic_object.rb#41
|
1469
|
+
# source://json//lib/json/generic_object.rb#41
|
1465
1470
|
def dump(obj, *args); end
|
1466
1471
|
|
1467
|
-
# source://json//json/generic_object.rb#21
|
1472
|
+
# source://json//lib/json/generic_object.rb#21
|
1468
1473
|
def from_hash(object); end
|
1469
1474
|
|
1470
1475
|
# Sets the attribute json_creatable
|
1471
1476
|
#
|
1472
1477
|
# @param value the value to set the attribute json_creatable to.
|
1473
1478
|
#
|
1474
|
-
# source://json//json/generic_object.rb#13
|
1479
|
+
# source://json//lib/json/generic_object.rb#13
|
1475
1480
|
def json_creatable=(_arg0); end
|
1476
1481
|
|
1477
1482
|
# @return [Boolean]
|
1478
1483
|
#
|
1479
|
-
# source://json//json/generic_object.rb#9
|
1484
|
+
# source://json//lib/json/generic_object.rb#9
|
1480
1485
|
def json_creatable?; end
|
1481
1486
|
|
1482
|
-
# source://json//json/generic_object.rb#15
|
1487
|
+
# source://json//lib/json/generic_object.rb#15
|
1483
1488
|
def json_create(data); end
|
1484
1489
|
|
1485
|
-
# source://json//json/generic_object.rb#36
|
1490
|
+
# source://json//lib/json/generic_object.rb#36
|
1486
1491
|
def load(source, proc = T.unsafe(nil), opts = T.unsafe(nil)); end
|
1487
1492
|
end
|
1488
1493
|
end
|
1489
1494
|
|
1490
1495
|
# The base exception for JSON errors.
|
1496
|
+
#
|
1497
|
+
# source://json//lib/json/common.rb#137
|
1491
1498
|
class JSON::JSONError < ::StandardError
|
1492
1499
|
class << self
|
1493
|
-
# source://json//json/common.rb#138
|
1500
|
+
# source://json//lib/json/common.rb#138
|
1494
1501
|
def wrap(exception); end
|
1495
1502
|
end
|
1496
1503
|
end
|
1497
1504
|
|
1498
|
-
# source://json//json/common.rb#35
|
1505
|
+
# source://json//lib/json/common.rb#35
|
1499
1506
|
JSON::Parser = JSON::Ext::Parser
|
1500
1507
|
|
1501
|
-
# source://json//json/common.rb#73
|
1508
|
+
# source://json//lib/json/common.rb#73
|
1502
1509
|
JSON::State = JSON::Ext::Generator::State
|
1503
1510
|
|
1504
1511
|
# For backwards compatibility
|
1505
1512
|
#
|
1506
|
-
# source://json//json/common.rb#159
|
1513
|
+
# source://json//lib/json/common.rb#159
|
1507
1514
|
JSON::UnparserError = JSON::GeneratorError
|
1508
1515
|
|
1516
|
+
# source://json//lib/json/common.rb#658
|
1509
1517
|
module Kernel
|
1510
1518
|
private
|
1511
1519
|
|
@@ -1516,18 +1524,18 @@ module Kernel
|
|
1516
1524
|
# The _opts_ argument is passed through to generate/parse respectively. See
|
1517
1525
|
# generate and parse for their documentation.
|
1518
1526
|
#
|
1519
|
-
# source://json//json/common.rb#685
|
1527
|
+
# source://json//lib/json/common.rb#685
|
1520
1528
|
def JSON(object, *args); end
|
1521
1529
|
|
1522
1530
|
# Outputs _objs_ to STDOUT as JSON strings in the shortest form, that is in
|
1523
1531
|
# one line.
|
1524
1532
|
#
|
1525
|
-
# source://json//json/common.rb#663
|
1533
|
+
# source://json//lib/json/common.rb#663
|
1526
1534
|
def j(*objs); end
|
1527
1535
|
|
1528
1536
|
# Outputs _objs_ to STDOUT as JSON strings in a pretty format, with
|
1529
1537
|
# indentation and over many lines.
|
1530
1538
|
#
|
1531
|
-
# source://json//json/common.rb#672
|
1539
|
+
# source://json//lib/json/common.rb#672
|
1532
1540
|
def jj(*objs); end
|
1533
1541
|
end
|