StringBuilder buffer = new StringBuilder("#<Class:");
if (attached != null) { // FIXME: figure out why we getService null sometimes
if(attached instanceof RubyClass || attached instanceof RubyModule){
buffer.append(attached.inspect());
}else{
buffer.append(attached.anyToString());
}
}
buffer.append(">");
return getRuntime().newString(buffer.toString());
}