Change CONFIG to CFG

last minute thought I had, in order to try and avoid
conflicts with any other global constants that happen
to be called "CONFIG". Also looks nice next to "ENV".
This commit is contained in:
Struma 2022-07-05 03:25:13 -04:00
parent 0131abd4dd
commit 8f018fdb30

View file

@ -250,7 +250,7 @@ static void mriBindingInit() {
_rb_define_method(rb_cString, "to_utf8", mkxpStringToUTF8);
_rb_define_method(rb_cString, "to_utf8!", mkxpStringToUTF8Bang);
VALUE cmod = rb_define_module("CONFIG");
VALUE cmod = rb_define_module("CFG");
_rb_define_module_function(cmod, "[]", mkxpGetJSONSetting);
_rb_define_module_function(cmod, "[]=", mkxpSetJSONSetting);
_rb_define_module_function(cmod, "to_hash", mkxpGetAllJSONSettings);