summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/string.c b/string.c
index 70e188611e..b760301137 100644
--- a/string.c
+++ b/string.c
@@ -139,6 +139,13 @@ rb_str_to_str(str)
return rb_convert_type(str, T_STRING, "String", "to_str");
}
+VALUE
+rb_string_value(ptr)
+ VALUE *ptr;
+{
+ return *ptr = rb_str_to_str(*ptr);
+}
+
static void
rb_str_become(str, str2)
VALUE str, str2;