source: trip-planner-front/node_modules/postcss-values-parser/lib/number.js@ 571e0df

Last change on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 444 bytes
Line 
1'use strict';
2
3const Container = require('./container');
4const Node = require('./node');
5
6class NumberNode extends Node {
7 constructor (opts) {
8 super(opts);
9 this.type = 'number';
10 this.unit = Object(opts).unit || '';
11 }
12
13 toString () {
14 return [
15 this.raws.before,
16 String(this.value),
17 this.unit,
18 this.raws.after
19 ].join('');
20 }
21};
22
23Container.registerWalker(NumberNode);
24
25module.exports = NumberNode;
Note: See TracBrowser for help on using the repository browser.