Blame view

node_modules/stylus/lib/functions/math-prop.js 209 Bytes
ce4c83ff   wxy   初始提交
1
2
3
4
5
6
7
8
9
10
11
12
13
  var nodes = require('../nodes');
  
  /**
   * Get Math `prop`.
   *
   * @param {String} prop
   * @return {Unit}
   * @api private
   */
  
  module.exports = function math(prop){
    return new nodes.Unit(Math[prop.string]);
  };