RubyValue getRetValue() { RubyValue ret = RubyConstant.QNIL; if (isNoThreadedMode()) { ret = ObjectFactory.createString(getSyncEngine().getNotify().getNotifyBody()); getSyncEngine().getNotify().cleanNotifyBody(); } return ret; }
// @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); }
public void addBacktrace(String strTrace) { backTrace.add(ObjectFactory.createString(strTrace)); }