Пример #1
0
  RubyValue getRetValue() {
    RubyValue ret = RubyConstant.QNIL;
    if (isNoThreadedMode()) {
      ret = ObjectFactory.createString(getSyncEngine().getNotify().getNotifyBody());
      getSyncEngine().getNotify().cleanNotifyBody();
    }

    return ret;
  }
Пример #2
0
  // @RubyLevelMethod(name="to_s", alias={"message", "to_str"})
  public RubyString to_s() {

    String res = this.message_;

    if (res == null || res.length() == 0) res = this.getRubyClass().getName();

    if (res == null || res.length() == 0) res = this.getClass().getName();

    return ObjectFactory.createString(res);
  }
Пример #3
0
 public void addBacktrace(String strTrace) {
   backTrace.add(ObjectFactory.createString(strTrace));
 }