Package org.jruby

Examples of org.jruby.RubyBoolean$False


        return getRuntime().newBoolean(equals(other));
    }

    @JRubyMethod(name = "accessible?")
    public RubyBoolean isAccessible() {
        return new RubyBoolean(getRuntime(), accessibleObject().isAccessible());
    }
View Full Code Here


       }

    public static String convertToBoolean(Object rubyObject) throws AxisFault {
               try {
                    if(rubyObject instanceof RubyInteger){
                   RubyBoolean boolObject = (RubyBoolean) rubyObject;
                   return boolObject.toString();
                   }
                   return rubyObject.toString();
               } catch (Exception e) {
                   throw new AxisFault("Unable to convert the return value to long");
               }
View Full Code Here

    return (FormCheckbox) new FormCheckbox(name, ((RubyBoolean) RubyHelper.getObj(holder, index)).isTrue())
        .addChangeListener(new FormElementChangeListener() {

          @Override
          public void stateChanged(FormElement form) {
            RubyHelper.setObj(holder, index, new RubyBoolean(RubyHelper.getRunTime(holder, index), Boolean.parseBoolean(form.getContentAsString())));

          }
        });

  }
View Full Code Here

   * @param standard
   *            Value
   */
  protected void addBoolean(final EventCode e, int index, boolean std) {
    if (e.getParameters().size() <= index) {
      e.getParameters().add(new RubyBoolean(e.getObject().getRuntime(), std));
    }
  }
View Full Code Here

                .attributes(AttributesBuilder.attributes().sourceHighlighter("coderay").get()).asMap();

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

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

    }
View Full Code Here

                .attributes(AttributesBuilder.attributes().sourceHighlighter("pygments").get()).asMap();

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

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

    }
View Full Code Here

        Map<String, Object> options = OptionsBuilder.options().eruby("erubis").asMap();

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

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

    }
View Full Code Here

        Map<String, Object> options = OptionsBuilder.options().backend("epub3").asMap();

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

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

    }
View Full Code Here

        Map<String, Object> options = OptionsBuilder.options().eruby("erb").asMap();

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

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

    }
View Full Code Here

        Map<String, Object> options = OptionsBuilder.options().templateDir(new File(".")).asMap();

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

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

    }
View Full Code Here

TOP

Related Classes of org.jruby.RubyBoolean$False

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.