public final String toString() { return description(); } public static SocketLevel valueOf(long value) {
public final String toString() { return description(); } public static SocketLevel valueOf(long value) {
public final String toString() { return description(); } public static SocketLevel valueOf(long value) {
buf .append(" level:") .append(level.description()) .append(' ') .append(noPrefix(option));
@JRubyMethod public IRubyObject inspect(ThreadContext context) { StringBuffer buf = new StringBuffer("#<"); buf .append(metaClass.getRealClass().getName()) .append(" ") .append(noPrefix(family)); if (level == SocketLevel.SOL_SOCKET) { buf .append(" SOCKET ") .append(noPrefix(option)); } else if (family == ProtocolFamily.PF_UNIX) { buf .append(" level:") .append(level.longValue()) .append(" ") .append(noPrefix(option)); } else { buf .append(" level:") .append(level.description()) .append(" ") .append(noPrefix(option)); } buf .append(" ") .append(optionValue()) .append(">"); return context.runtime.newString(buf.toString()); }
buf .append(" level:") .append(level.description()) .append(' ') .append(noPrefix(option));
@JRubyMethod public IRubyObject inspect(ThreadContext context) { StringBuffer buf = new StringBuffer("#<"); buf .append(metaClass.getRealClass().getName()) .append(" ") .append(noPrefix(family)); if (level == SocketLevel.SOL_SOCKET) { buf .append(" SOCKET ") .append(noPrefix(option)); } else if (family == ProtocolFamily.PF_UNIX) { buf .append(" level:") .append(level.longValue()) .append(" ") .append(noPrefix(option)); } else { buf .append(" level:") .append(level.description()) .append(" ") .append(noPrefix(option)); } buf .append(" ") .append(optionValue()) .append(">"); return context.runtime.newString(buf.toString()); }