diff options
-rw-r--r-- | variable.c | 82 |
1 files changed, 80 insertions, 2 deletions
@@ -166,6 +166,80 @@ is_constant_path(VALUE name) return true; } /* * call-seq: * mod.set_temporary_name(string) -> self @@ -224,7 +298,9 @@ rb_mod_set_temporary_name(VALUE mod, VALUE name) if (NIL_P(name)) { // Set the temporary classpath to NULL (anonymous): - RCLASS_SET_CLASSPATH(mod, 0, FALSE); } else { // Ensure the name is a string: @@ -241,7 +317,9 @@ rb_mod_set_temporary_name(VALUE mod, VALUE name) name = rb_str_new_frozen(name); // Set the temporary classpath to the given name: - RCLASS_SET_CLASSPATH(mod, name, FALSE); } return mod; |