Package org.jruby

Examples of org.jruby.RubyBoolean$True


                .attributes(AttributesBuilder.attributes().dataUri(true).get()).asMap();

        JRubyAsciidoctor asciidoctor = (JRubyAsciidoctor) JRubyAsciidoctor.create();

        asciidoctor.rubyGemsPreloader.preloadRequiredLibraries(options);
        RubyBoolean evalScriptlet = (RubyBoolean) asciidoctor.rubyRuntime.evalScriptlet("require 'base64'");
        assertThat(evalScriptlet.isFalse(), is(true));

    }
View Full Code Here


    @JRubyMethod(name = "==", required = 1)
   
    @Override
    public IRubyObject op_equal(ThreadContext context, IRubyObject other) {
        Vec3 v = (other instanceof Vec3) ? (Vec3) other.toJava(Vec3.class) : null;
        RubyBoolean result = (v == null) ? RubyBoolean.newBoolean(context.runtime, false)
        : (Math.abs(jx - v.jx) > Vec3.EPSILON)
        ? RubyBoolean.newBoolean(context.runtime, false)
        : (Math.abs(jy - v.jy) > Vec3.EPSILON)
        ? RubyBoolean.newBoolean(context.runtime, false)
        : (Math.abs(jz - v.jz) > Vec3.EPSILON)
View Full Code Here

    @JRubyMethod(name = "==", required = 1)

    @Override
    public IRubyObject op_equal(ThreadContext context, IRubyObject other) {
        Vec2 v = (other instanceof Vec2) ? (Vec2) other.toJava(Vec2.class) : null;
        RubyBoolean result = (v == null) ? RubyBoolean.newBoolean(context.getRuntime(), false)
        : (Math.abs(jx - v.jx) > Vec2.EPSILON)
        ? RubyBoolean.newBoolean(context.getRuntime(), false)
        : (Math.abs(jy - v.jy) > Vec2.EPSILON)
        ? RubyBoolean.newBoolean(context.getRuntime(), false)
        : RubyBoolean.newBoolean(context.getRuntime(), true);
View Full Code Here

TOP

Related Classes of org.jruby.RubyBoolean$True

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.