Sha256: 3d21bf1e0eaee7f3f4dee1d25b3d8917672fdd637adf1bf18a13abbcd64e1edf
Contents?: true
Size: 444 Bytes
Versions: 26
Compression:
Stored size: 444 Bytes
Contents
'use strict'; const Container = require('./container'); const Node = require('./node'); class NumberNode extends Node { constructor (opts) { super(opts); this.type = 'number'; this.unit = Object(opts).unit || ''; } toString () { return [ this.raws.before, String(this.value), this.unit, this.raws.after ].join(''); } }; Container.registerWalker(NumberNode); module.exports = NumberNode;
Version data entries
26 entries across 25 versions & 8 rubygems