Skip to content

Commit dd95c68

Browse files
committed
Alias load to parse
1 parent 75ba79e commit dd95c68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/rapidjson/cext.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Init_rapidjson(void)
4949
rb_define_module_function(rb_mRapidjson, "dump", encode, 1);
5050

5151
rb_define_module_function(rb_mRapidjson, "parse", parse, 1);
52+
rb_define_module_function(rb_mRapidjson, "load", parse, 1);
5253

5354
rb_eParseError = rb_define_class_under(rb_mRapidjson, "ParseError", rb_eStandardError);
5455
rb_eEncodeError = rb_define_class_under(rb_mRapidjson, "EncodeError", rb_eStandardError);

0 commit comments

Comments
 (0)