    /*
     *  call-seq:
     *     token_stream.text = text -> text
     *
     *  Set the text attribute of the TokenStream to the text you wish to be
     *  tokenized. For example, you may do this;
     *
     *      token_stream.text = File.read(file_name)
     */
    static VALUE
    frt_ts_set_text(VALUE self, VALUE rtext)
    {
        TokenStream *ts;
        Data_Get_Struct(self, TokenStream, ts);
        StringValue(rtext);
        ts->reset(ts, RSTRING(rtext)->ptr);
        object_set(&ts->text, rtext);

        return rtext;
    }