Beispiel #1
0
 public RubyValue clone() {
   //        RubyString s = (RubyString)super.clone();
   //        s.sb_ = new StringBuffer(sb_);
   //        return s;
   RubyString cl = new RubyString(this.sb_);
   cl.sb_ = new StringBuffer(sb_.toString());
   cl.doClone(this);
   return cl;
 }