// @RubyLevelMethod(name="intern", alias="to_sym") public RubySymbol intern() { if (this.sb_.length() <= 0) { throw new RubyException(RubyRuntime.ArgumentErrorClass, "interning empty string"); } RubyID id = RubyID.intern(this.sb_.toString()); return id.toSymbol(); }
public RubyID toID() { return RubyID.intern(this.sb_.toString()); }