summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/string.c b/string.c
index 5004727b3d..da36213f7c 100644
--- a/string.c
+++ b/string.c
@@ -828,6 +828,11 @@ rb_str_dup(VALUE str)
return str_duplicate(rb_obj_class(str), str);
}
+VALUE
+rb_str_resurrect(VALUE str)
+{
+ return rb_str_replace(str_alloc(rb_cString), str);
+}
/*
* call-seq: