Package org.jruby.ext.stringio

Examples of org.jruby.ext.stringio.StringIO


        }
    }

    @JRubyMethod(name = "puts", rest = true)
    public IRubyObject puts(ThreadContext context, IRubyObject[] args) {
        StringIO sio = (StringIO) getRuntime().getClass("StringIO").newInstance(context, new IRubyObject[0], Block.NULL_BLOCK);
       
        sio.puts(context, args);
        write(sio.string(context));

        return getRuntime().getNil();
    }
View Full Code Here

TOP

Related Classes of org.jruby.ext.stringio.StringIO

Copyright © 2018 www.massapicom. 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.