core/src/main/java/org/jruby/RubyBasicObject.java
@Override
    public RubyString asString() {
        Ruby runtime = metaClass.runtime;
        ThreadContext context = runtime.getCurrentContext();
        BasicObjectSites sites = sites(context);
        IRubyObject str = sites.to_s.call(context, this, this);

        if (!(str instanceof RubyString)) return (RubyString) anyToString();
        if (isTaint()) str.setTaint(true);
        return (RubyString) str;
    }
/** rb_obj_as_string
     *
     * First converts this object into a String using the "to_s"
     * method, infects it with the current taint and returns it. If
     * to_s doesn't return a Ruby String, {@link #anyToString} is used
     * instead.
     */
rb_obj_as_string
First converts this object into a String using the "to_s"
method, infects it with the current taint and returns it. If
to_s doesn't return a Ruby String,  #anyToString is used
instead.
rb_obj_as_string First converts this object into a String using the " to_s " method infects it with the current taint and returns it . If to_s doesn ' t return a Ruby String #anyToString is used instead .
@Override
    public RubyString asString() {
        Ruby runtime = metaClass.runtime;
        ThreadContext context = runtime.getCurrentContext();
        BasicObjectSites sites = sites(context);
        IRubyObject str = sites.to_s.call(context, this, this);
        if (!(str instanceof RubyString)) return (RubyString) anyToString();
        if (isTaint()) str.setTaint(true);
        return (RubyString) str;
    }
@ Override public RubyString asString ( ) { Ruby runtime = metaClass . runtime ; ThreadContext context = runtime . getCurrentContext ( ) ; BasicObjectSites sites = sites ( context ) ; IRubyObject str = sites . to_s . call ( context , this , this ) ; if ( ! ( str instanceof RubyString ) ) return ( RubyString ) anyToString ( ) ; if ( isTaint ( ) ) str . setTaint ( true ) ; return ( RubyString ) str ; }
rb_obj_as_string
 First converts this object into a String using the "to_s"
 method, infects it with the current taint and returns it.
rb_obj_as_string First converts this object into a String using the " to_s " method infects it with the current taint and returns it .