Method: String#+@
- Defined in:
- string.c
permalink #+ ⇒ self
Returns self
if self
is not frozen.
Otherwise. returns self.dup
, which is not frozen.
2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 |
# File 'string.c', line 2757
static VALUE
str_uplus(VALUE str)
{
if (OBJ_FROZEN(str)) {
return rb_str_dup(str);
}
else {
return str;
}
}
|