@JRubyMethod public IRubyObject level(ThreadContext context) { return context.runtime.newFixnum(level.longValue()); }
@JRubyMethod public IRubyObject level(ThreadContext context) { return context.runtime.newFixnum(level.longValue()); }
@JRubyMethod public IRubyObject level(ThreadContext context) { return context.runtime.newFixnum(level.longValue()); }
@JRubyMethod public IRubyObject level(ThreadContext context) { return context.runtime.newFixnum(level.longValue()); }
buf .append(" level:") .append(level.longValue()) .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.longValue()) .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()); }