﻿Type.registerNamespace("Renters");

Renters.StringBuffer = function() {
    this.buffer = [];
};

Renters.StringBuffer.prototype = {

    append: function(string) {
        this.buffer.push(string);
        return this;
    },

    addToFront: function(string) {
        this.buffer.unshift(string);
        return this;
    },

    toString: function() {
        return this.buffer.join("");
    },

    clear: function() {
        this.buffer = [];
    }
};

Renters.StringBuffer.registerClass('Renters.StringBuffer');

if (typeof (Sys) !== "undefined") { Sys.Application.notifyScriptLoaded(); }

