core/src/main/java/org/jruby/RubyBasicObject.java
@Override
    public RubyString convertToString() {
        Ruby runtime = metaClass.runtime;
        ThreadContext context = runtime.getCurrentContext();
        BasicObjectSites sites = sites(context);
        return (RubyString) TypeConverter.convertToType(context, this, runtime.getString(), sites.to_str_checked);
    }
/**
     * Tries to convert this object to a Ruby String using the "to_str" method.
     * @return a string representation of this
     */
Tries to convert this object to a Ruby String using the "to_str" method.
@return a string representation of this
Tries to convert this object to a Ruby String using the " to_str " method . @return a string representation of this
@Override
    public RubyString convertToString() {
        Ruby runtime = metaClass.runtime;
        ThreadContext context = runtime.getCurrentContext();
        BasicObjectSites sites = sites(context);
        return (RubyString) TypeConverter.convertToType(context, this, runtime.getString(), sites.to_str_checked);
    }
@ Override public RubyString convertToString ( ) { Ruby runtime = metaClass . runtime ; ThreadContext context = runtime . getCurrentContext ( ) ; BasicObjectSites sites = sites ( context ) ; return ( RubyString ) TypeConverter . convertToType ( context , this , runtime . getString ( ) , sites . to_str_checked ) ; }
Tries to convert this object to a Ruby String using the "to_str" method.
Tries to convert this object to a Ruby String using the " to_str " method .