carto/lib/mess/tree/quoted.js
2011-01-05 14:23:28 -05:00

18 lines
343 B
JavaScript

(function (tree) {
tree.Quoted = function (str, content) {
this.value = content || '';
this.quote = str.charAt(0);
this.is = 'string';
};
tree.Quoted.prototype = {
toCSS: function () {
return this.quote + this.value + this.quote;
},
eval: function () {
return this;
}
};
})(require('mess/tree'));