to_str()
public
Returns self.
If called on a subclass of String, converts the
receiver to a String object.
Show source
static VALUE
rb_str_to_s(VALUE str)
{
if (rb_obj_class(str) != rb_cString) {
return str_duplicate(rb_cString, str);
}
return str;
}