Sha256: ac85eb6e4909d53514529b27c0e268ce6105ff9c40411702ed008e47650d70e2
Contents?: true
Size: 528 Bytes
Versions: 29
Compression:
Stored size: 528 Bytes
Contents
'use strict'; const Container = require('./container'); class AtWord extends Container { constructor (opts) { super(opts); this.type = 'atword'; } toString () { let quote = this.quoted ? this.raws.quote : ''; return [ this.raws.before, '@', // we can't use String() here because it'll try using itself // as the constructor String.prototype.toString.call(this.value), this.raws.after ].join(''); } } Container.registerWalker(AtWord); module.exports = AtWord;
Version data entries
29 entries across 27 versions & 8 rubygems