Package org.jruby

Examples of org.jruby.CompatVersion


        ScriptingContainer instance = new ScriptingContainer(LocalContextScope.THREADSAFE);
        instance.setError(pstream);
        instance.setOutput(pstream);
        instance.setWriter(writer);
        instance.setErrorWriter(writer);
        CompatVersion expResult = CompatVersion.RUBY1_8;
        CompatVersion result = instance.getCompatVersion();
        assertEquals(expResult, result);

        instance = null;
    }
View Full Code Here


     * Test of setCompatVersion method, of class ScriptingContainer.
     */
    @Test
    public void testSetCompatVersion() {
        logger1.info("setCompatVersion");
        CompatVersion version = null;
        ScriptingContainer instance = new ScriptingContainer(LocalContextScope.SINGLETHREAD);
        instance.setError(pstream);
        instance.setOutput(pstream);
        instance.setWriter(writer);
        instance.setErrorWriter(writer);
View Full Code Here

                tar.shutdown();
            }
        });

        final RubyInstanceConfig config = new RubyInstanceConfig() {{
            CompatVersion compat = CompatVersion.RUBY1_8;
            if (args.length > 0) {
                if (args[0].equals("1.8")) {
                    list.remove(0);
                } else if (args[0].equals("1.9")) {
                    compat = CompatVersion.RUBY1_9;
View Full Code Here

TOP

Related Classes of org.jruby.CompatVersion

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.