Examples of newString()


Examples of org.jruby.Ruby.newString()

    }

    private IRubyObject addrFor(ThreadContext context, InetSocketAddress addr) {
        Ruby r = context.getRuntime();
        IRubyObject[] ret = new IRubyObject[4];
        ret[0] = r.newString("AF_INET");
        ret[1] = r.newFixnum(addr.getPort());
        String hostAddress = addr.getAddress().getHostAddress();
        if (doNotReverseLookup(context)) {
            ret[2] = r.newString(hostAddress);
        } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.