不要怂,就是干,撸起袖子干!

attribute.js 260 Bytes
'use strict';

class Attribute {
  constructor(options) {
    if (options.type === undefined) options = {type: options};
    this.type = options.type;
  }
}

module.exports = Attribute;
module.exports.Attribute = Attribute;
module.exports.default = Attribute;