252253254255256257258259260261262
case STRING: case NIL: exactTypeError(runtime, v); default: tmp = v.callMethod(runtime.getCurrentContext(), "to_r"); if(!tmp.eql(UNDEF)) { if(v.respondsTo("to_str")) { exactTypeError(runtime, v); } v = tmp; break;