diff options
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -174,6 +174,16 @@ rb_str_associate(str, add) rb_ary_push(RSTRING(str)->orig, add); } +VALUE +rb_str_associated(str) + VALUE str; +{ + if (!FL_TEST(str, STR_NO_ORIG)) { + return Qfalse; + } + return RSTRING(str)->orig; +} + static ID to_str; VALUE |